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

call custom method just after stretch the column width

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravi kushwaha
Top achievements
Rank 1
Ravi kushwaha asked on 07 Sep 2012, 08:57 AM
Hi,

I have scenario when we stretch the column width, I want to call a custom method just after stretch complete. That method should reapply the ellipsis (call the plug in ) for long text. How can I achieve  this functionality? I have created a fiddle for this with link http://jsfiddle.net/ravisingh/dWbeP/34/ 



1 Answer, 1 is accepted

Sort by
0
Accepted
Nohinn
Top achievements
Rank 1
answered on 07 Sep 2012, 09:18 AM
In your grid definition, set a callback for columnResize (you can call your function there):
$("#grid").kendoGrid({
                        dataSource: dataCountry,
                        groupable: true,
                        sortable: true,
     resizable: true,
      columns: [ { field: "Id"} ,
                 {field: "Name"} ,
                 {field: "Country"}
                        ],
       columnResize: function(e) {
           alert("Resize completed");
       }
      
 });
Tags
Grid
Asked by
Ravi kushwaha
Top achievements
Rank 1
Answers by
Nohinn
Top achievements
Rank 1
Share this question
or