Hello all,
GridLines="none"
at both the grid and band level. When I first start the app the grid lines appear in both the header and in the band. After the first postback the grid lines disappear. I also think that other settings such as row height are behaving the same way.
Anyone have an idea as to what is going on?
TIA,
Patrick
Hi Patrick,
Thanks for giving us your feedback. I did a simple example, setting GridLinesDefault="None" in the DisplayLayout tag of the grid, and GridLines="None", at the band level, and at runtime when the ASPX is loaded, the grid lines do not appear. I used the latest 8.3 build. In your case, if the grid lines disappear only after the first postback, it may well be related to the order of events. Could you post some of your code which manipulates the GridLines settings? Also the exact version that you use would be very helpful to me. I assume that there could have already been a grid lines bug submitted, that is already fixed.
Thanks,
Angel
Hello Angel,
Todd and Hope have a copy of the project if you would like to take a look.
Patrick,
We've received a copy of the sample you've referred to in Developer Support. We're creating a support request for this behavior so that we can investigate.
The previous-reported issue on this thread was caused by a combination of three things: the use of AppStylist, the presence of default settings on the WebGrid instance, and the order in which Internet Explorer applies CSS during normal and asynchronous postbacks.
When AppStylist is used, it refers to CSS stylesheets, which are constructed based on the application style chosen. Similarly, style information can be set directly on the grid, which will render to the page as "inline CSS" underneath the HEAD element of the page.
When the page initially renders, the last CSS element listed in the page "wins." This is normally the inline CSS generated by the control. In the issue originally reported, the grid instance still was set to display grid lines, so the grid lines were displayed when the page was rendered.
When the page is refreshed asynchronously, Internet Explorer instead applies using the CSS referred to by the application style. Since the application style states to use no gridlines, these lines disappear.
The solution to this issue is to clear the unneeded style information from the grid at design-time, so that the application style will take appropriate effect. This can be done in the grid at design-time, by right-clicking the grid and choosing the "Reset Default Styles" menu entry.
Hi Vince,
I recently upgraded to v9.1 and I am having the same issue as Patrick. so the question is was there a resolution to Patricks problem? Thanks.