Apr 04, 2011, 6:22 PM
help with databinding (ext:GridPanel)
aspx
YuiGrid
the same works fine with the below code.. if am using the code project open source extExtender grid control
aspx
<ext:ResourceManager runat="server">
</ext:ResourceManager>
<ext:GridPanel ID="extGrid1" runat="server" Collapsible="true" Width="600" Height="350" Title="Member Search" Frame="true" >
<Store>
<ext:Store ID="Store1" runat="server" GroupField="BEmployeeID" >
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column Header="Name" DataIndex="BLastName" Sortable="false" Width="90" />
<ext:Column Header="Group ID" DataIndex="BGroupID" Sortable="false" Width="90" />
<ext:Column Header="Plan" DataIndex="BEmployeeID" Sortable="false" Width="90" />
</Columns>
</ColumnModel>
</ext:GridPanel>
aspx.csvar mbrColl = MbrList.GetMbrList(param1, param2).ToList(); // this is a business class
Store1.DataSource = mbrColl;
Store1.DataBind();
extGrid1.DataBind();
the page opens fine. but the grid is empty. am not sure where the mistake is.. but the same works fine in YuiGrid. I know they both are different frameworks. but just wanted to tell how i got to ext.net website. basically i started first with the YuiGrid and got an issue and finally ended in Sencha website-->ext.net website in google. The data binding seems to be very easy in YuiGrid. But its a bit complex in ext:GridPanel. just wanted to know the difference between these two..ext:GridPanel has a lot of functionality when compared to the YuiGrid. I really appreciate if some one explains if am going in the right directionYuiGrid
the same works fine with the below code.. if am using the code project open source extExtender grid control
aspx
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:YuiGrid ID="YuiGrid1" AutoGenerateColumns="false" EnableRowSorting="true" EnablePaging="false"
EnableEdit="true" PagingStyle="NavBar" title="Movies" runat="server" Width="600"
AutoHeight="true" GroupingField="BEmployeeID" Visible="false">
<Columns>
<cc1:ColModel header="Subscriber ID" dataIndex="BSubscriberID" sortable="true" width="230"
Editable="false" />
<cc1:ColModel header="Name" dataIndex="BLastName" sortable="false" width="90" />
<cc1:ColModel header="Group ID" dataIndex="BGroupID" sortable="false" width="90" />
<cc1:ColModel header="Plan" dataIndex="BEmployeeID" sortable="false" width="90" />
</Columns>
</cc1:YuiGrid>
aspx.csYuiGrid1.TotalRecords = mbrColl.Count;
YuiGrid1.DataSource = mbrColl;
YuiGrid1.DataBind();