Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
some events(client or server) after sorting in the ultrawebgrid
posted

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">

Parents
  • 49378
    posted

    Hi wobudongta,

    I have created a sample for you using the Northwind DB where the column being sorted is moved to first position in the grid. The display layout settings that you have provided have been employed and the HeaderStyle has been used to modify the colors of the headers for each column.

    Regarding your second question, you can use the ColumnHeaderClickHandler client-side event in order to handle header mouse clicks.

    Please tell me if this helps.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

     

    UltraWebGridColumnColor.zip
Reply Children