3 Answers, 1 is accepted
0
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
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
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
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
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.