Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
How dynamically edit field in kendo grid

I want to change editable property of the field, but this way it doesn't work. How can I fix this?

function changeDescription(rawGrid, isEditableDescription) {
        var grid = rawGrid.data("kendoGrid");
        if (!grid) return;

        if (isEditableDescription) {
            grid.dataSource.options.schema.model.fields["Description"].editable = true;
        }
        else {
            grid.dataSource.options.schema.model.fields["Description"].editable = false;
        }
    }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to call the setOptions method of the grid: https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/setoptions

var grid = $('#grid').data('kendoGrid');
var options = grid.getOptions();
var editable = !options.columns[0].editable || options.columns[0].editable();
options.columns[0].editable = function() { return !editable; };
grid.setOptions(options);

Dojo: https://dojo.telerik.com/APEBuhaN

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!