HI all,
Even I am Having the same Problem (EDIT - as referred to in this thread: http://forums.infragistics.com/forums/t/13966.aspx). i.e. on selection of a Webdropdown i am binding the data to the webdatagrid after that if there is any other post back i am losing the state of the Grid. as there are some Checkbox Perferences which can be changed by the user. i am not abel to get the details of the changes mad.
Can u please send me a sample how to Handle this because i am Binding the Data to the Grid Dynamically. so Based .
the following is the code
<ig:WebDataGrid ID="wdgUPUserPrivilage" runat="server" AutoGenerateColumns="False" Height="400px" Width="400px" EnableDataViewState="True" EnableRelativeLayout="True"> <Columns> <ig:TemplateDataField Key="Catalog" Header-Text="Catalog"> <ItemTemplate> <asp:Label ID="lblUPCatalogID" Visible="false" runat="server" Text='<%# Eval("ID") %>'></asp:Label> <asp:Label ID="lblUPCatalogName" Visible="false" runat="server" Text='<%# Eval("CATALOG_CODE") %>'></asp:Label> <asp:Label ID="lblUPCatalogTitle" runat="server" Text='<%# Eval("CATALOG_DESC") %>'></asp:Label> </ItemTemplate> <Header Text="Catalog" /> </ig:TemplateDataField> <ig:TemplateDataField Key="Printing" Header-Text="Printing" Width="50px"> <ItemTemplate> <asp:CheckBox ID="chkPrinting" runat="server" Checked='<%# Eval("PRINTING") %>' /> </ItemTemplate> <Header Text="Printing" /> </ig:TemplateDataField> <ig:TemplateDataField Key="Inquiry" Header-Text="Inquiry" Width="50px"> <ItemTemplate> <asp:CheckBox ID="chkInquiry" runat="server" Checked='<%# Eval("INQUIRY") %>' /> </ItemTemplate> <Header Text="Inquiry" /> </ig:TemplateDataField> </Columns> <EmptyRowsTemplate> Select user to See the Log Info </EmptyRowsTemplate> </ig:WebDataGrid>
Binding the grid on webdropdown selection. there is a button place to update the changes mad in the grid. i.e. checkbox values to the DB.
Please do the needful
Thanks & regards
BK
In this thread it is demonstrated how to get values from the item templates. And you'll need to upgrade to the latest hot fix as in the RTM version the FindControl method does not work properly.
http://community.infragistics.com/forums/p/25152/92211.aspx#92211