I want each band in the grid to have a default column sort set as soon as it opens. I tried using the Band_initialize event server side with:
e.Band.Behaviors.Sorting.SortedColumns.Add("ActionNo", Infragistics.Web.UI.SortDirection.Ascending);
but I get an error internal to the grid (object not set). Am I doing this incorrectly, and is there a javascript method to do this client side then?
I have a three level grid, and need a specific column sorted in each band.
The same ... I have to click on the column to sort data :-/
But one difference ... when I click, it sort ascending instead of descending.
in the RowislandDataBinding , data is always sorted descending.
I really don't understand :s
Hi UCF user,
Would you test moving this code inside the DataBinding event of the grid?
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
In Code Behind :
protected void hdgLogs_RowIslandDataBinding(object sender, Infragistics.Web.UI.GridControls.RowIslandEventArgs e) {
this.hdgLogs.GridView.Behaviors.Sorting.SortedColumns.Add("DteFin", Infragistics.Web.UI.SortDirection.Descending);
}
It will works if i click on DteFin column but on the first page load the column is not sorted ... even if it seems to be !
it doesn't work because "get_rowIslands" is not recognized.
VS2010 infragistics v4
Thanks, that did the trick.