Hello,
if I am using percentage width of columns in an ultrawebgrid, the header does not appear above the scrollbar if there is one. Is there any way how to cover that area with the header if I do not want to use fixed size columns?
Thank you,
Jakub
(this problem seems to appear in IE8)
Hi Jakub,
Thank you for posting in the community.
The behavior you are experiencing may occur when the grid's StationaryMargins are set to "Header". I suggest trying to turn off stationary margins in order to check whether that makes a difference.
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:
https://help.infragistics.com/Doc/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html
Additional samples demonstrating the features of these grids can be found at:https://ko.infragistics.com/samples/aspnet/
Feel free to contact me if you have any questions.
Stationary Margins solves this issue by making the scrollbar appear all the way on the right side of the grid. That would be fine but then the headers do not stay fixed. How to solve this?
Apologies for the delayed response.
I have researched the matter further and in my tests the behavior is manifested only when the grid does not have its width set. If you are not setting the width already I suggest that you try explicitly setting a value for that property in order to see if that makes a difference.
Alternatively, it may be possible to set the background color of the header row in order to make it "appear" above the scrollbar. This may be done using something similar to:
function UltraWebGrid1_InitializeLayoutHandler(gridName){ igtbl_getGridById("UltraWebGrid1").Rows.getHeaderRow().parentElement.parentElement.style.backgroundColor = "LightGray";}
which should not have any visible effect in any other browser different from IE8.
Hope this helps.
I do have explicitly set width. But it is in percent. If I set it in pixels it works ok. If I set it in percent it makes this weird error. Setting backcolor does not solve this.
Thank you for your reply.
Please let me know which version of .NetAdvantage you are using in your project so that I can check for know issues and test the matter with an identical setup.
this is the version we are using:
UltraWebGrid.v11.1