[CLOSED] Ordered list string created from an html editor appear as unorder list when added in a templated grid.

  1. #1

    [CLOSED] Ordered list string created from an html editor appear as unorder list when added in a templated grid.

    Hi,

    We have a templated grid with records generated from an HTML editor. However when we create an order list from the HTML editor and add it to the grid sore. it renders as an unorder list (bulletted list ).

    Please how can this issue be resolved.


    <ext:GridPanel Title="Steps"
                                                                runat="server" HideHeaders="true" TabIndex="43" ID="gridPanelResolutionguidelinesNewResultSet"
                                                                ScrollDelta="2" Frame="true" StyleHtmlContent="true">
                                                                <View>
                                                                    <ext:GridView runat="server">
                                                                    </ext:GridView>
                                                                </View>
                                                                <Store>
                                                                    <ext:Store runat="server">
                                                                        <Model>
                                                                            <ext:Model runat="server" IDProperty="Identifier">
                                                                                <Fields>
                                                                                    <ext:ModelField Name="Identifier" Type="String" />
                                                                                    <ext:ModelField Name="DisplayName" Type="String" />
                                                                                    <ext:ModelField Name="Index" Type="Int" />
                                                                                    <ext:ModelField Name="Description" Type="String" />
                                                                                </Fields>
                                                                            </ext:Model>
                                                                        </Model>
                                                                    </ext:Store>
                                                                </Store>
                                                                <ColumnModel>
                                                                    <Columns>
                                                                        <ext:TemplateColumn runat="server" Sortable="true" DataIndex="Description" Flex="1">
                                                                            <Template runat="server">
                                                                                <Html>
                                                                                    <div style='padding: 0 5px 5px 5px'>  
                                                                                                <span style='padding: 0 5px 5px 5px; word-wrap: break-word;' class="word_wrapCss">
                                                                                                 {Description:htmlDecode}
                                                                                            </span>                                                  
                                                                                    </div>
                                                                                </Html>
                                                                            </Template>
                                                                        </ext:TemplateColumn>
                                                                    </Columns>
                                                                </ColumnModel>
                                                                <SelectionModel>
                                                                    <ext:RowSelectionModel runat="server">                                                                   
                                                                    </ext:RowSelectionModel>
                                                                </SelectionModel>                                                            
                                                            </ext:GridPanel>
    Data:
    setting the description value to html ordered list below

    <ol >
       <li>Coffee</li>
       <li>Tea</li>
       <li>Milk</li>
     </ol>
    Last edited by Daniil; Mar 04, 2013 at 12:45 PM. Reason: [CLOSED]
  2. #2
    Hello!

    OK, I was able to reproduce it with Ext.NET 2.1. You should use the following CSS rule:

    <style type="text/css">
    	ol li
    	{
    		list-style-type:decimal !important;
    	}
    </style>
  3. #3

Similar Threads

  1. Combobox Partial String Search for List Item
    By GolchK in forum 1.x Help
    Replies: 15
    Last Post: Jun 01, 2017, 11:51 PM
  2. [CLOSED] HTML Bullet List in Ext.Msg.show
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 26, 2012, 10:15 AM
  3. [CLOSED] Templated grid not rendering html tags
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 17, 2012, 8:50 PM
  4. Store with List of String
    By jigpatel06 in forum 1.x Help
    Replies: 0
    Last Post: Apr 06, 2011, 3:05 PM
  5. Replies: 5
    Last Post: Dec 18, 2009, 9:50 AM

Posting Permissions