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

Possible bug? IE 11 Javascript readonly attr doesn't work with IE

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Duke
Top achievements
Rank 1
Duke asked on 30 Mar 2017, 07:31 PM

I have a grid in which I conditionally allow editing of a column.  I do this by conditionally applying the readonly attribute, like so:

$("#my_column_name").attr("readonly", true);

 

Chrome 57.0.2987.98 respects this, and I can't click into the cell to edit it.

IE 11.0.9600.x, however, allows me to click into the cell and prepend values to the cell's existing value.

Thanks,

Duke

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Apr 2017, 08:49 AM
Hello Duke,

Based on the provided information this seems to be related to how the mentioned version of Internet explorer is handling the read-only attributes. As this is Internet Explorer specific the Kendo UI team has no full control over it.

Also, if a column has to be editable based on a condition, I can suggest using the built-in property of the Grid:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.editable

I hope this will help to achieve the desired result.

Regards,
Stefan
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
Duke
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or