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

column header and row data wraps while hiding column from Header Context Menu

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kachy
Top achievements
Rank 1
kachy asked on 28 Mar 2012, 05:12 PM

Hi,

For many grids in our project, there are around 40 columns, so we were trying to use the gridpersister to save the settings for individual user, so that the user can customize the number of columns they want to see everytime.
Saving and loading grid setting works fine. The problem is when the user tries to hide thie column from the header contextmenu, the arrangement of the columns are lost. I have used wrap="false" for Column header and Item properties in the gid. After hiding 1 or 2 column, most of the headers and coluns are wrapped.
The problem is very prominent in IE7, almost all the columns and all the row data are wrapped. I am using the following code for columns. I cannot use fixed width header as my coulmn values vary from 40 to 400 characters and I don't want white space in the column.



<HeaderStyle VerticalAlign="Bottom" HorizontalAlign="Left"  />
<ItemStyle Wrap="False" VerticalAlign="Top" HorizontalAlign="Left"/>
Please suggest what to do.

1 Answer, 1 is accepted

Sort by
0
kachy
Top achievements
Rank 1
answered on 05 Apr 2012, 03:55 PM
I need to have some solution to this problem ASAP. Can somebody please help?

Thanks
Tags
Grid
Asked by
kachy
Top achievements
Rank 1
Answers by
kachy
Top achievements
Rank 1
Share this question
or