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

External editor trouble

1 Answer 162 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 18 Sep 2016, 08:57 AM

I would like to use the External Editor feature of RadDataGrid, as it would better suit my application scenario.

However, there seem to be lots of limitations in the default External editor.

For instance, even if you set CanUserEdit="False" in the column definition, the column is still editable in the External Editor.

For me, the biggest problem is that in the external editor, any column bound to a numeric property can only have values between 0-100. This happened even when I tried to change the column from DataGridNumericalColumn to DataGridTextColumn.

There problems only occur in the external editor, not in the inline editor.

I know there is the possibility to use a custom External Editor, but I didn't find adequate documentation on how to use it. I was able to create a UserControl that implements IGridExternalEditor, but couldn't figure out how to reference that class in the ExternalEditor property of the RadDataGrid. I tried using the name of the usercontrol, which resulted in error message "Cannot assign text value 'MyGridEditor' into property 'ExternalEditor' of type 'IGridExternalEditor'"

Is there a way to fix the issues in the default external editor or does someone have a detailed example on implementing a custom external editor?

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 21 Sep 2016, 11:13 AM
Hi Henry,

You can make the UI of the ExternalEditor as per your needs(it's not required to be a DataForm). I have prepared a sample project to better illustrate this feature. Please, see the attached project.

Indeed, the default ExternalEditor does not take into account the CanUserEdit property. I have logged it and it will be further addressed. Also, the default DataGridFormEditor is public class and you can make some adjustments, but you do not have direct access to the RadDataForm control, so customizing editors cannot be easily achieved. We will definitely think of how to improve this experience.

Thank you for your interest and feedback. I have updated your Telerik points.

Regards,
Ivaylo Gergov
Telerik by Progress
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
DataGrid
Asked by
Henry
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or