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

Editable Column Property Does Not Seem to Function

1 Answer 296 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 23 Feb 2017, 06:01 PM

I have a grid I am using with Angular 1, and I would to have a non-editable column.  The documentation and several examples(non-angular) seem to say setting the editable property to either a function that returns false or setting it to false directly should accomplish this, but for some it does not.  The configuration I am using is pretty basic, and I can't seem figure out what I am doing wrong.  I have put stops on the anonymous function, and it never gets called when that cell goes into editing mode.

 

self.gridConfiguration = {
      dataSource: datasource ,
      toolbar: ["create","save"],
      selectable:true,
      sortable:true,
      editable:true,
      navigatable: true,
      columns: [
          {field: "projectName", title: "Title", editable: function(dataItem){return false;}}
]};

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 24 Feb 2017, 09:47 AM
Hi David,

I have prepared a simple example, using a setup, based to the one, provided in the code snippet:

http://dojo.telerik.com/UcISe

... and it seems to be working as expected. Please compare it to your implementation, and apply the necessary adjustments.

If the issue persists, please send us a similar isolated runnable project where we can observe it, and determine what might be causing it. Thank you in advance.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or