This is a migrated thread and some comments may be shown as answers.

Weird Grid Display Issue

2 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 22 Mar 2013, 08:43 PM
I seem to have stumbled across a weird display issue with the grid control.  On odd page number, the row spacing/column size is appropriate.  However, on even pages, the columns seem to have shrunk and thus seem to have double-spaced each row.  See attached screen shots.

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 27 Mar 2013, 06:08 PM
Hello Mike,

The problem you are facing is caused by the fact that the text in some of the columns is wrapped in two rows and this cause row height to be larger. In your case the text in  Re-Cert Period column is in two lines. You can override this behaviour by setting larger header-style width for these columns, so the text does not wrap. Another option is to prevent the wrapping for column cells content by setting the DataFormatString property for each column to <nobr>{0}</nobr>. For more information about this approach you can refer to the article below:
http://www.telerik.com/help/aspnet-ajax/grid-no-wrap-for-grid-cell-content.html


Give these suggestions a try and let me know about the result.
 
Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Mike
Top achievements
Rank 1
answered on 11 Apr 2013, 04:10 PM
Sorry for the late reply, everything is working now, thanks!
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mike
Top achievements
Rank 1
Share this question
or