Hello all,
I use a custom control to enable the user to hide or show columns. The settings are persisted in a user's profile. When loading the profile server side I use the Display property of a column in C# to set it's initial visibility. This works very well.
The horizontol grid size is larger then the available screen size so RadGrid correclty shows a scrollbar.
When a user wants to show a column that was not visible before then RadGrid does not recalculate the new scroll width required to show all columns. Let me make an example.
V=visible column, X=invisible column
The users profile has those initial column visibility settings:
0 1 2 3 4 5 6 7 8
V V X V X V V V X
So column 2, 4, 8 are invisible on initial load.
The user now wants to make column 2 visible. Client side I call showColumn with no postback to achieve this. RadGrid correclty makes column 2 visible but now column 7 is out of scroll range for the user. If the user goes to a different page by using the pager then RadGrid recalculates the scroll width and everything works as expected. The API doc does not give any hints on calling a method to recalculate the scroll width.
Is this a bug? Is there a workround to make RadGrid recalculate the scroll width? Do you need any further information?
I try Rad Grid 2010.2.713.35
I use the following resizing settings in ClientSettings->Resizing:
AllowColumnResize: True
AllowRowResize: False
ClipCellContentOnResize: False
EnableRealTimeResize: True
ResizeGridOnColumnResize: True
ShowRowIndicatorColumn: True
Michael
I use a custom control to enable the user to hide or show columns. The settings are persisted in a user's profile. When loading the profile server side I use the Display property of a column in C# to set it's initial visibility. This works very well.
The horizontol grid size is larger then the available screen size so RadGrid correclty shows a scrollbar.
When a user wants to show a column that was not visible before then RadGrid does not recalculate the new scroll width required to show all columns. Let me make an example.
V=visible column, X=invisible column
The users profile has those initial column visibility settings:
0 1 2 3 4 5 6 7 8
V V X V X V V V X
So column 2, 4, 8 are invisible on initial load.
The user now wants to make column 2 visible. Client side I call showColumn with no postback to achieve this. RadGrid correclty makes column 2 visible but now column 7 is out of scroll range for the user. If the user goes to a different page by using the pager then RadGrid recalculates the scroll width and everything works as expected. The API doc does not give any hints on calling a method to recalculate the scroll width.
Is this a bug? Is there a workround to make RadGrid recalculate the scroll width? Do you need any further information?
I try Rad Grid 2010.2.713.35
I use the following resizing settings in ClientSettings->Resizing:
AllowColumnResize: True
AllowRowResize: False
ClipCellContentOnResize: False
EnableRealTimeResize: True
ResizeGridOnColumnResize: True
ShowRowIndicatorColumn: True
Michael