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

How to use popup editor to edit cell content?

2 Answers 188 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeffery
Top achievements
Rank 1
Jeffery asked on 15 Mar 2010, 04:57 AM

Hi,

One of my RadGrid column has a lot of data.  In order to allow user to edit it better, I want to open a RadWindow and let user to edit the data there.  I have created a custom GridViewDataColumn, where I can open up a new radWindow in
CreateCellEditElement override.  And I am able to bind the cell content with the radWindow.  However,

RowEditEnded event is fired right after radWindow is shown.

Is there any way that I can keep the curren cell / row in the edit mode until the popup window is closed?  If this is impossible, any suggestion on how to implement something like this?

Thanks in advance,

Jeffery

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 15 Mar 2010, 10:29 AM
Hello Jeffery,

I believe the edit ended event is raised because the newly opened window steals the focus from RadGridView. This triggers the commit edit logic.

So a possible  solution would be to use something ( e.g. a custom user control ) which does not show as modal  and keeps the focus inside the cell.

You may also try the RadGridView.ActionOnLostFocus = None - this may prevent the RadGridView to try committing when the popup is shown.

All the best,
Pavel Pavlov
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Jeffery
Top achievements
Rank 1
answered on 16 Mar 2010, 09:27 PM
I went with ActionOnLostFocus = None approach.  It works very well for us.  Thanks a lot.
Tags
GridView
Asked by
Jeffery
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Jeffery
Top achievements
Rank 1
Share this question
or