Hi all,
I use webdatagrid's sort feature, and one column is TemplateDataField, when I try sort this column, error happened.
the code is as following
<ig:WebDataGrid ID="WebDataGrid2" DataSourceID="ObjectDataSource1" runat="server" EnableAjax="true" Height="400px" Width="825px" AutoGenerateColumns="False" DataKeyFields="Client_id"> <Columns> <ig:TemplateDataField Key="DeleteItm" Width="60px"> <ItemTemplate> <asp:ImageButton runat="server" ID="DeleteItem" AlternateText="<%$ Resources:ChineseLanguage, Client %>" ImageUrl="../../images/WebDataGrid/DeleteIcon.PNG" OnClientClick="DeleteRow(); return false;" /> </ItemTemplate> </ig:TemplateDataField> <ig:BoundDataField DataFieldName="Client_id" Key="Client_id"> <Header Text="<%$ Resources:ChineseLanguage, Client_id %>" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Client" Key="Client"> <Header Text="<%$ Resources:ChineseLanguage, Client %>" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Client_e" Key="Client_e"> <Header Text="<%$ Resources:ChineseLanguage, Client_e %>" /> </ig:BoundDataField> </Columns> <EditorProviders> <ig:TextBoxProvider ID="TextBoxProvider" /> </EditorProviders> <Templates > <asp:Label ID="aa" Text="bbb" runat="server"></asp:Label> </Templates> <Behaviors> <ig:Activation /> <ig:Selection RowSelectType="Multiple" CellClickAction="Row" /> <ig:EditingCore> <Behaviors> <ig:CellEditing Enabled="true" > <EditModeActions EnableF2="true" EnableOnActive="true" MouseClick="Single" /> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="ClientID" ReadOnly="true" /> </ColumnSettings> </ig:CellEditing> <ig:RowDeleting Enabled="true" /> <ig:RowAdding EditModeActions-EnableOnActive="true" EditModeActions-MouseClick="Single" Enabled="true" /> </Behaviors> </ig:EditingCore> <ig:Paging PagerAppearance="Bottom" PageSize="10" Enabled="true" /> <ig:RowSelectors Enabled="true" RowNumbering="true" /> <ig:Sorting SortingMode="Single" Enabled="true" /> <ig:Filtering Alignment="Top" Visibility="Visible" Enabled="true" AnimationEnabled="true" /> </Behaviors> <EditorProviders> <ig:WebTextEditProvider ID="WebTextEditProvider2" /> </EditorProviders> </ig:WebDataGrid>
Hi tradeft ..
Can you tell me how you solved the issue.
Thank You..!!
I'm not sure, but they have enchanged the sorting capabilities in the new 9.1 release. At least there is now possible to sort in server side.
Unfortunately I haven't had any time to play with it...
How did you solve this problem? I have the same issue.
Thanks,
Lee