Hi All,
I am using infragistic 2013 in my application when i am trying to do sorting i am unable to do it.
Grid type i am using.
<ig:WebDataGrid ID="wdGrid_PSTS" runat="server" Height="500px" Width="99%" AutoGenerateColumns="false" EnableDataViewState ="true" >
<ig:BoundDataField DataFieldName="Id" Key="Id" Width="50px"> <Header Text="Id"></Header> </ig:BoundDataField>
<ig:BoundDataField DataFieldName="PSTStatus" Key="PSTStatus" Width="125px"> <Header Text="PSTStatus"></Header> </ig:BoundDataField>
<Behaviors> <ig:Sorting SortingMode="Multi" Enabled="true"> </ig:Sorting> <ig:ColumnResizing Enabled="true"></ig:ColumnResizing> <ig:Selection CellClickAction="Row" RowSelectType="Multiple"></ig:Selection> </Behaviors>
It functionality is not working. Kindly suggest.Its been 2 days and i am still stuck .I am experiencing Infrgistic first time.
Hello Dheeraj,
Thank you for the code-snippet you have provided.
I tested the WebDataGrid's sorting functionality by using the one you have provided and I was unable to reproduce the behavior you have described.
I have attached a sample application that demonstrates the approach from above. Would you please modify it, so the issue is reproduced and send it back to me? Having this information will help me further investigate this matter for you.(Please note that you might have to change the assembly references and the stylesSetPath property in the Web.config so they target your specific version and path for the styles.)
If you have any questions, please let me know.
0410.WebDataGrid_sample.zip
Hi Tacho,
Thanks for your prompt respond.
I have 1 drop down when i select the value from that drop down and click on search button grid is populated.
now i have done some code changes in design side.
function sort() { debugger; var grid = $find("wdGrid_PSTS"); // Sort column by calling sortColumn method and passing in the column and the sort direction // Sort direction is 0, 1, or 2 for none, ascending, or descending. grid.get_behaviors().get_sorting().sortColumn(grid.get_columns().get_columnFromKey("Id"), 1, false); grid.get_behaviors().get_sorting().sortColumn(grid.get_columns().get_columnFromKey("PSTName"), 1, false); grid.get_behaviors().get_sorting().sortColumn(grid.get_columns().get_columnFromKey("UserName"), 1, false); }
Now value is sorting but new issue had occurred which is that when i select other value from the dropdown grid is not getting clear and irrespective any value selecting from drop down same value is pertain until i refresh the page .
Please suggest.