External editor trouble

2 posts, 0 answers
  1. Henry
    Henry avatar
    1 posts
    Member since:
    Aug 2016

    Posted 18 Sep Link to this post

    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?

  2. Ivaylo Gergov
    Ivaylo Gergov avatar
    661 posts

    Posted 21 Sep Link to this post

    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.

    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
  3. DevCraft banner
Back to Top