XmlNodeList Gridpanel

  1. #1

    XmlNodeList Gridpanel

    Hi,
    i have a xml file and i want to bind a store to it.

    .aspx
    <ext:GridPanel ID="lista_righe" runat="server">
                                    <Store>
                                        <ext:Store runat="server">
                                            <Model>
                                                <ext:Model runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="NumeroLinea" />
                                                        <ext:ModelField Name="Descrizione" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <ColumnModel>
                                        <Columns>
                                            <ext:Column ID="col1" runat="server" DataIndex="NumeroLinea" Text="#" />
                                            <ext:Column ID="Column1" runat="server" DataIndex="Descrizione" Text="Descrizione" />
                                        </Columns>
                                    </ColumnModel>
                                </ext:GridPanel>
    .cs
    protected void Page_Load(object sender, EventArgs e)
        {
                XmlDocument doc = new XmlDocument();
                doc.Load(...);
                XmlNodeList righe = doc.SelectNodes(...);
    
                Store s = lista_righe.GetStore();
                s.DataSource = righe;
                s.DataBind();
    
    
         }
    The problem is that grid see the rows but all cell are empty.

    Why?

    Thanks
  2. #2
    Please post a complete (but simplified) code sample demonstrating how to reproduce the issue.

    If we cannot copy+paste your code sample directly into a test project, and run without having to fix unnecessary exceptions, your chances of receiving timely support are diminished.

    Some more details are in our forums guidelines.
    Forum Guidelines For Posting New Topics
    More Information Required

Similar Threads

  1. [CLOSED] Bind GridPanel to XmlNodeList
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 08, 2010, 1:49 PM

Posting Permissions