In IE9 following is happening:
I am using the tag to set the style for column header.
<HeaderStyleDefault HorizontalAlign="Left" BorderStyle="solid" BackColor="buttonface" Font-Bold="false" Height="22px"><BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails></HeaderStyleDefault>
this is working fine.
When i want to change the header style in "mainGrid_ColumnHeaderClickHandler" this event.
by using the following code
var selectedHeader = igtbl_getColumnById(columnId); var colHeaderIndex = selectedHeader.Index;
selectedHeader.HeaderClass="CssClassName".
But it is not working in IE9.
What the behaviour is happening in IE6 we want same in IE6 .
Following is happening in IE6:
With the HeaderStyleDefault tag is only there in IE6 and in "mainGrid_ColumnHeaderClickHandler"
in this event they just activated the column nothing code is there.
When clicking on column the background color is changing to blue. after that it is getting the style which assigned in tag[Headerstyledefault).
please give any peace of code that it may in IE9 same as IE6.
find the attached screen shot from IE9 browser in that when we click on header it has select with blue color same is working fine in IE6.
Hi yashwanth258,
It has been a while since your post, however in case you still need assistance I would be glad to help.
In this scenario you can try applying the styling in your event handler through javascript instead of assignment of CSS classes. For instance:
igtbl_getGridById("UltraWebGrid1").Bands[0].getColumnFromKey("CategoryID").Element.style.backgroundColor = "Blue"
Please feel free to contact me if you have any questions.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support