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

Optimize RadGrid output (visualization)

2 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jesper
Top achievements
Rank 1
Jesper asked on 03 Nov 2011, 10:41 AM
Hi,
how to "configure" RadGrid for having column width always set to max nexessary width for showing a value/text complete? If header text is longer than any value in normal rows than column width should be set to that value and if a value in normal rows is having longest text/value than column width should be set to that rows necessary width for showing that value complete. No unnecessary whitespace is wanted.

Rgds,
Jesper

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Nov 2011, 11:09 AM
Hello,

Radgrid automatically do this thing.

if you still have any issue then try with below code snippet.

<ItemStyle Width="100px" Wrap="false" />
<HeaderStyle Width="100px" Wrap="false" />

Note  : also try with wrap="true".

if you still have any issue then please provide screen shot of your RadGrid and explain the issue.


Thanks,
Jayesh Goyani
0
Jesper
Top achievements
Rank 1
answered on 04 Nov 2011, 10:56 AM
Hi,
but your suggestion set column width to a fixed value, right? I want that column width automatically should be adjusted to that item that has longest value/text.

I don't want to set wrap = true for the items, I always want to show whole value/text for the items. Header text is ok to set wrap = true.

Rgds,
Jesper
Tags
Grid
Asked by
Jesper
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Jesper
Top achievements
Rank 1
Share this question
or