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

Column Resizing not working

9 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Satyaprakash J
Top achievements
Rank 1
Satyaprakash J asked on 01 Jul 2010, 11:19 AM
Hi,
I have a RadGrid in which the following resize settings are set  <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" ClipCellContentOnResize="false" />. The columns in the radgrid also have the "ItemStyle-Width" property set to 7%. Now if I try to resize the columns, it does not resize consistently. Sometimes there is resize and sometimes there is no resize.
I would like to know how column resizing can be made to work consistently.

Thanks
Satyaprakash J

9 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Jul 2010, 01:20 PM
Hello Satyaprakash,

Column widths should be set with HeaderStyle-Width only.

Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Satyaprakash J
Top achievements
Rank 1
answered on 01 Jul 2010, 01:54 PM
Even after changing the "ItemStyle-Width" to "HeaderStyle-Width", column resizing does not work consistently.  If I resize a column it does not get resized.
0
Dimo
Telerik team
answered on 01 Jul 2010, 02:17 PM
Hi Satyaprakash J,

Please compare your implementation to our column resizing online demo and send us a runnable sample i you need further assistance.

http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx

All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mark DeMichele
Top achievements
Rank 1
answered on 14 Aug 2010, 03:24 PM
You demo has many issues with it.  Here are the things I noticed.

1.  Checking/UnChecking the box "Clip Cell Content on Resizing" seems to have no effect.
2.  I turned off real-time resizing so I can get a better sense of where I drop the edge.  Most of the times, when I let go, the column is not sized that way.

Both the above things I guess are not that critical.  However, the one thing that bothers me the most is:

3:  After resizing, if you click the Post back button, the sizes are not maintained.

I suppose all these issues are due to the browsers handling of the Table tag.  However, I think other grid makers have gotten around this somehow.  Do you guys plan on improving this resizing stuff?
0
Dimo
Telerik team
answered on 16 Aug 2010, 04:20 PM
Hello Mark,

When ClipCellContentOnResize="false", the MasterTableView's TableLayout should not be "Fixed". The demo has been updated, thanks for pointing this out.

Indeed, the column widths are set and maintained better if the TableLayout is "Fixed" and real-time resizing and ResizeGridOnColumnResize are enabled. Also, only the widths of the explicitly resized column are persisted. The other columns' widths are set according to the remaining available space and the RadGrid control width. We may research and improve the user experience for other cases in the future, however, I am afraid I cannot provide a specific timeframe.

Sincerely yours,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
shaul
Top achievements
Rank 1
answered on 31 Aug 2010, 03:11 PM
hello,
i have a related question regarding column resize and behavior on postback,
in your example  , when we trigger a postback trough a button clik we can preserve the grid columns size ,
when i am using

<

 

Selecting AllowRowSelect="true" />

with   

 

 <EnablePostBackOnRowClick

 

="true" >

after i resize some column  and then select some grid row , my resize is not saved after the postback

if i initiate a postback from outside the grid my column settings are saved.
what is the cause of this?
is there any solution? 

thanks.

 

0
Dimo
Telerik team
answered on 03 Sep 2010, 10:05 AM
Hi Shaul,

The problem is caused by a client control reference issue that we are familiar with. We will fix the bug for the next version of RadGrid. You can also try the next RadControls internal build, which will be uploaded next week.

All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
shaul
Top achievements
Rank 1
answered on 12 Sep 2010, 01:00 PM
I am using build number 908 , 
is this build should solve my issue or should i wait for a more recent one?

thanks,
shaul.
0
Dimo
Telerik team
answered on 13 Sep 2010, 08:12 AM
Hello Shaul,

Please try the next internal build, which will be uploaded this week (usually on Tuesday).

Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Satyaprakash J
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Satyaprakash J
Top achievements
Rank 1
Mark DeMichele
Top achievements
Rank 1
shaul
Top achievements
Rank 1
Share this question
or