we use FixedHeaderIndicatorDefault="Button" for sorting, some columns will be un-editable with the Gainsboro color, some editable columns will be white color.
when we click the column header in the program for sorting, the clicked column will be moved to the first of the grid, the former columns will each move to the next, the strang thing is some of the columns color will changed to unexcepted one.
for example, there are A, B, C column in 1,2,3 place, A, C is Gainsboro, B is white, when click the C, it will move to the 1 place, and A, B will move to 2, 3 places, however the A's color is white, B's color changed to Gainsboro
some of the displaylayout setting are as follows,
<DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnClient" AllowDeleteDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" Name="dgdTrimResponse" RowHeightDefault="20px" RowSelectorsDefault="No" SelectTypeRowDefault="Single" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False" CellClickActionDefault="Edit" FixedHeaderIndicatorDefault="Button" UseFixedHeaders="True">
Hi Sunil,
My apologies I forgot to mention that you need to set server-side sorting in this case - this is done by setting the AllowSortingDefault property in the grid's DisplayLayout to Yes.
Please let me know if this helps.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
Hi Petar,
OnGroupColumn is working fine for me but OnSortColumn is not. here's the code for sort
Protected Sub uwGrid_SortColumn(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.SortColumnEventArgs) Handles uwGrid.SortColumn
'logic goes here
Sub
I have also defined this event property in the source code.
Is this happening because i have done this
uwGrid.DisplayLayout.AllowSortingDefault = UltraWebGrid.
AllowSorting.OnClient
?
If OnClient is the issue then is there any OnsortColumn event on cilent side ?
Thanks
Regarding sorting there is the SortColumn which is fired when a column is to be sorted.
As for grouping the GroupColumn event is fired when a column has been added to the group area of the grid. There is also the UnGroupColumn event which is fired when the column is ungrouped.
Do tell me the same for Grouping also.
Is there any server side event of sorting? As we have RowFilterApplying for filter applied row. I want to do some server side coding on sort event of the grid. Can you please tell me what is the server side event name for sorting?