Hi,
I am using a templatecolumn with checkbox inside webdatagrid. And for one of the boundcolumns i am setting a dropdown editor provider. But i get HttpException error: Failed to load ViewState, when i do a virtualscroll.
<Columns> <ig:TemplateDataField Key="checkField" Width="50px"> <HeaderTemplate> <div style="text-align: center;"> <input type="checkbox" onclick="selectFirstColumn(event);" /></div> </HeaderTemplate> <ItemTemplate> <div style="text-align: center;"> <asp:CheckBox runat="server" ID="key_" /></div> </ItemTemplate> </ig:TemplateDataField> <ig:BoundDataField DataFieldName="Branch" Key="Branch"> <Header Text="Branch" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Account" Key="Account"> <Header Text="Account" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Description" Key="Description"> <Header Text="Description" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="MISGroup" Key="MISGroup"> <Header Text="MISGroup" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="SkCCY" Key="SkCCY"> <Header Text="SkCCY" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="SkBase" Key="SkBase"> <Header Text="SkBase" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Syncstatus" Key="Syncstatus"> <Header Text="Syncstatus" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="AccountName" Key="AccountName"> <Header Text="AccountName" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="AccountTypeName" Key="AccountTypeID"> <Header Text="AccountTypeName" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="DateImported" Key="DateImported"> <Header Text="DateImported" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ID" Key="ID" Hidden="true"> <Header Text="ID" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="AccountID" Key="AccountID" Hidden="true"> <Header Text="AccountID" /> </ig:BoundDataField> </Columns> <Behaviors> <ig:ColumnResizing Enabled="true" /> <ig:Sorting SortingMode="Single" Enabled="true" /> <ig:VirtualScrolling Enabled="true" ScrollingMode="Virtual" DataFetchDelay="300" RowCacheFactor="1" ThresholdFactor=".25"> </ig:VirtualScrolling> <ig:Selection ColumnSelectType="Single" Enabled="true" /> <ig:Filtering Alignment="Top" Visibility="Visible" Enabled="true" AnimationEnabled="true" /> <ig:EditingCore> <Behaviors> <ig:CellEditing Enabled="true"> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="AccountTypeID" EditorID="AccountsTypeNameProvider" /> <ig:EditingColumnSetting ColumnKey="DateImported" ReadOnly="true" /> </ColumnSettings> </ig:CellEditing> </Behaviors> </ig:EditingCore> </Behaviors> <ClientEvents Initialize="intializeGrid" /> <EditorProviders> <ig:DropDownProvider ID="AccountsTypeNameProvider"> <EditorControl ID="EditorControl1" runat="server" DisplayMode="DropDownList" DataSourceID="sqldsAccountTypes" TextField="AccountTypeName" ValueField="AccountTypeID" /> </ig:DropDownProvider> </EditorProviders>
Thanks....