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

Change Column With Client Side

1 Answer 10 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 04 Dec 2013, 04:53 PM
Is there a way to manually change the width of a column client side? I am setting the width property to something and its registering but it does not display the new width until I do a hide/show column or another grid action. Is there a way to manually trigger this column size refresh?

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 05 Dec 2013, 11:08 AM
Hi Justin,


There is no built in way to achieve this, but a sample approach that you could use would be to get the colgroup elements in the grid wrapper and the col element with the specified index and set their widths. Here is a JS Bin example, which demonstrates this. It shows how to set the width of the first column to the value of the input field.

I hope this information helps. I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Justin
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or