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

Custom UIType Editor for RadGridView Cell

3 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 02 Mar 2015, 02:39 PM
In RadGridView's cell I need to include custom UITypeEditor through which i should be able to edit values in a seperate form. 
Once user clicks ok button in that form the corresponding value should get bind with clicked cell.

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Mar 2015, 10:22 AM
Hi Balaji,

Thank you for writing back.

There are two ways to achieve what you want.
1. You can create an in-place popup to edit the row. Here is how to do that: http://www.telerik.com/support/kb/winforms/gridview/details/create-pop-up-user-control-for-row-editing
2. You can subscribe to the CurrentRowChanged event, which will get triggered when the current row in the grid is changed, and in it, open the desired form of yours by passing the row to it, edit the row cells, and close the form when you are done. 

I hope that this will work for you. Let us know should you have any other questions.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Balaji
Top achievements
Rank 1
answered on 05 Mar 2015, 08:28 AM
Hi Stefan,

Thanks for your solution.  We explored the first option with the sample provided.

1.   If we click out side the editor (user) control then that editor vanishes. We need to include a validation in the editor form itself.  Thus we are expecting editor form needs to be opened as pop up.  Once all validations are completed then we have to update the text in Grid.
2.  If we click the same dropdown button again and again the editor is keep on shrinking.
i.e., click first dropdown editor opens, now click out side the editor.  Repeat this steps.  Observe, in each click,  the editor is getting shrinking.  The size  of the editor should not vary foreach click out side the editor.


Is it possible to use a form as ModalDialog instead of usercontrol as editor?

Regards
Balaji

0
Stefan
Telerik team
answered on 06 Mar 2015, 07:44 AM
Hi Balaji,

You can do that with a modal form as well, as per my second suggestion. Attached you can find a small sample demonstrating the approach.

I hope you find this useful.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Balaji
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Balaji
Top achievements
Rank 1
Share this question
or