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
80
Grid Column Header Color
posted

When i click on Column header  its background color has to change in IE9.

Can you please tell me the code to do this in IE9.

Please find the attached screen shot.

 

  • 49378
    posted

    Hi yashwanth258,

    It has been some time since your post, however in case you still need assistance I would be glad to help.

    You can make use of the ColumnHeaderClick client-side event in order to change the headers background color. Here is a sample implementation:


    function UltraWebGrid1_ColumnHeaderClickHandler(gridName, columnId, button){
        igtbl_getColumnById(columnId).Element.style.backgroundColor =
    "Blue";
    }

    Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:

    http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html

    Additional samples demonstrating the features of these grids can be found at:

    http://samples.infragistics.com/aspnet/

    Please let me know if you have any questions.

    Best Regards,

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