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

How to set the Grid Model property Kendo grid Editable using Jquery

1 Answer 1180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Senthilkumar
Top achievements
Rank 1
Senthilkumar asked on 27 Jun 2015, 05:51 PM

Hi team,

 How to change kendo grid property  using jquery. i want change property of kendo Grid. 

if (Some condition)

{

        var grid = $("#GridGlobalNewRequest").data("kendoGrid");
        grid.dataSource.options.schema.model.fields.StartCompany.editable = true;
        grid.dataSource.options.schema.model.fields.IsRead.editable = true;

}

else

{

         var grid = $("#GridGlobalNewRequest").data("kendoGrid");

        grid.dataSource.options.schema.model.fields.StartCompany.editable = false;

        grid.dataSource.options.schema.model.fields.StartCompany.defaultValue = "9990"; // Default Value

}

 

Thanks

Senthilkumar N

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 01 Jul 2015, 06:54 AM

Hello Senthilkumar,

 

I would suggest using the setOptions method of the Kendo Grid. It allows enabling/disabling a particular feature/option for the Grid. 

 

Regards,
Boyan Dimitrov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Senthilkumar
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or