Custom UIType Editor for RadGridView Cell

4 posts, 0 answers
  1. Balaji
    Balaji avatar
    2 posts
    Member since:
    Dec 2011

    Posted 02 Mar 2015 Link to this post

    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.
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 03 Mar 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Balaji
    Balaji avatar
    2 posts
    Member since:
    Dec 2011

    Posted 05 Mar 2015 in reply to Stefan Link to this post

    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

  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 06 Mar 2015 Link to this post

    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.

     
Back to Top