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

Resize the grid column on column click

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 09 Apr 2010, 09:30 AM
Hi,

I have using the Telerik control Q22009.
I have set the column resizing property of radgrid so it allow to resize the column but in this case we have to drag the column egde to resize the column.

1)Can it possble to resize the column to the largest size of data on coulmn egde double click just like excel . 
i.e In excel when you double click on the column it will expand to the largest piece of data.

I want to resize the column on click insted of dragging the column.

Thanks

 


1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 14 Apr 2010, 01:20 PM
Hi Hrushikesh,

You can handle the OnColumnClick/OnColumnDblClick client-side event of RadGrid and set the desired column size there.
Find more information on RadGrid client-side API in the below articles:

http://www.telerik.com/help/aspnet-ajax/grid_oncolumnclick.html
http://www.telerik.com/help/aspnet-ajax/grid_oncolumndblclick.html
http://www.telerik.com/help/aspnet-ajax/grid_resizecolumn.html

Greetings,
Iana
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
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or