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

Custom Editors

1 Answer 145 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Russell Groover
Top achievements
Rank 1
Russell Groover asked on 06 Feb 2008, 05:05 PM
The feature page for the GridView says the following:

"Ability to use other Telerik controls as editors
You can nest any RadControl or custom element within
RadGridView. This feature gives you extra flexibility in
building functionality into applications and allows you
to add new custom editors (combobox, textbox, listbox, etc). "

I looked through the examples but couldn't find an example of a custom editor.  Does anyone have a sample of using a custom editor that runs inline with the cell?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 07 Feb 2008, 08:01 AM
Hello Russell Groover,

Thank you for writing.

You could read the following KB article that describes how to create a custom editor (row edit form). In order to create your custom editor you should implement the ICellEditor interface and subscribe for grid's EditorRequired event:

private void radGridView1_EditorRequired( object sender, Telerik.WinControls.UI.EditorRequiredEventArgs e )
{
        MyEditor editor = new MyEditor();      
        e.Editor = editor;//replace the original editor
}

I hope this was helpful. Please let me know if you need any further assistance.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Russell Groover
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or