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

How to set grid options on the fly

2 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deej
Top achievements
Rank 1
Deej asked on 16 Oct 2013, 07:16 PM
I've got a grid:
$('#myGrid').kendoGrid({
    ...
    scrollable: false,
    ...
});
and I've tried all of these things to change the scrollable property:
$('#myGrid').data("kendoGrid").options.scrollable = true;
$('#myGrid').data("kendoGrid").refresh();
 
$('#myGrid').data("kendoGrid").scrollable = true;
$('#myGrid').data("kendoGrid").refresh();
 
var MyGrid = $('#myGrid').data("kendoGrid");
MyGrid.options.scrollable = true;
MyGrid.refresh();
 
var MyGrid = $('#myGrid').data("kendoGrid");
MyGrid.scrollable = true;
MyGrid.refresh();
Nothing works. How does one change whether a grid is scrollable on the fly?

2 Answers, 1 is accepted

Sort by
0
Deej
Top achievements
Rank 1
answered on 16 Oct 2013, 09:22 PM
Having the same problem now in a Date Chart, I can't set the template through javascript once it is already set. It lets me set it the first time in javascript if it wasn't initialized in the chart options, but it won't let me re-write it.
0
Vladimir Iliev
Telerik team
answered on 17 Oct 2013, 06:50 AM
Hi Deej,

 
Please note that  changing that option after the Grid initialization is not supported out-of-the-box, however I would suggest to share your idea at KendoUI UserVoice to allow other users vote for it. Most voted ideas are included in next KendoUI releases. 

Kind Regards,
Vladimir Iliev
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
Deej
Top achievements
Rank 1
Answers by
Deej
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or