Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
CheckBox lost state with paging
posted

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