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

How to get column's width via javascript

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
cuong
Top achievements
Rank 1
cuong asked on 12 Jun 2008, 08:09 PM
Hi everybody,

I need to get a column's width in a radgrid. For instance, how can i get column number '1' width via javascript. I read Telerik's client-side API but didn't find a way to do so.

Thanks

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 16 Jun 2008, 11:47 AM
Hi cuong,

You can use code like the following to get the width of the first column:

.Js
 <script type="text/javascript">  
      
     function GridCreated(sender, eventArgs)  
     {       
     var RadGrid1=sender;  
     debugger;  
     }  
      
 </script> 

I hope this helps.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
cuong
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or