Issue update data grid schema editable

1 Answer 90 Views
Grid
Jose
Top achievements
Rank 1
Jose asked on 23 Jan 2024, 01:46 AM

Hi!! I'm having an issue with Kendo UI JQuery.

I'm using the grid, and I have my data source defined with schema inside. All the schema fields have the property editable in false.

At some point, I need to change some of them to editable true, but I'm not able to do it so far.

I tried getting the data from the grid and updating the Datasource object manually and after that read the Datasource and refresh the grid, but is not working.

Also, try setting a completely new Datasource, and after that read the Datasource and refresh the grid, but is not working.

Also, try destroying the grid a generating a new one, but the grid never refreshes and the editable continues in false.

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 25 Jan 2024, 12:28 PM

Hello Jose,

I would suggest using the setDataSource method. As described in the API: - The new dataSource will override the configurations and data of the old one.

Here is a Dojo example where the dataSource is replaced on a button click and the age field is editable afterwards.

I hope this helps.

Regards,
Neli
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Grid
Asked by
Jose
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or