RadContextMenu to duplicate rows of RadGridView

4 posts, 1 answers
  1. Babitha
    Babitha avatar
    7 posts
    Member since:
    May 2018

    Posted 15 Jun 2018 Link to this post

    Is there in option in radcontextmenu as duplicate option? where it duplicates the row n number of times? For example radcontextmenu providing duplicate option and dupicate option in turn again provide options of numbers as how many rows to duplicate? Any help would be much appreciated.
  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2425 posts

    Posted 18 Jun 2018 Link to this post

    Hello Babitha,

    The gridview doesn't provide such option out of the box. However, you can implement this with some custom code. Basically, you can add context menu as shown in the following article. And then you can manually find the item you want to duplicate, copy it (create new instance and set its properties) and insert it in the ItemsSource collection of RadGridView.

    As a side note, I saw that there is a forum that duplicates this one. I removed it so that we can keep this topic in a single thread.

    Regards,
    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Babitha
    Babitha avatar
    7 posts
    Member since:
    May 2018

    Posted 19 Jun 2018 in reply to Martin Ivanov Link to this post

    Thanks Martin, I have implemented the contextmenu and was looking for such options inside the context menu. Possibly are there any samples?

     

  4. Answer
    Martin Ivanov
    Admin
    Martin Ivanov avatar
    2425 posts

    Posted 19 Jun 2018 Link to this post

    Hello Bindiya,

    I attached a small example showing a possible approach. I hope that helps.

    Regards,
    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top