Hi all,
We are using WebGrid 8.3 and WARP in a Web application.
The WARP contains the WebGrid. When we set the StationaryMargins = "Header" from the Grid and the Grid contains only one row, there is unexpected space betwwen the Grid header and the first row - the grid looks very horrible.
But if the grid contains more than one row, it looks well.
When we set the StationaryMargins = "None", it also looks well.
Please help me to resolve this issue.
Thanks in advance,
Nguyen Huu Chu
VNetSoftware, LLC
Thanks you all,
I have found a way to fix this as add code in server side:
if rowcount = 1 then StatinationMargin = none
else
StatinationMargin = Header
It works well now.
I've submitted a bug report on this. Its clearly a problem and seems to involve master pages and possible other components on webform. Pretty annoying...
I can confirm this bug. I'm using NAS 8.2.20082.2038.
The problem occurs when the grid has stationary margins=Header and there is only 1 record bound to the grid. I haven't noticed this in prior versions of NAS (EG: 8.1). Load the grid with 0 or more than 1 records and the formatting works correctly, otherwise the header appears midway within the grid and NO record is displayed.
Partial rendering with an UpdatePanel or WARP panel can be troublesome sometimes, when styles are created dynamically. There are 2 ways to style the grid, one through the use of the CSSClass properties or Application Styling, and the second way is to set styles through the properties of the grid. When using an UpdatePanel or WARP panel, I always recommend styling through CSS and external stylesheets as opposed to the object level "style" properties on the grid. Browsers are much more stable when dealing with an external stylesheet, than when parsing in dynamic inline style tags through an AJAX call.
Try enabling Application Styling and setting your styles through CSS - I expect the rendering glitch will disappear.
Regards,
-Tony