Mixing batch edit mode with pop-up or edit form

6 posts, 1 answers
  1. Andy
    Andy avatar
    54 posts
    Member since:
    Jun 2009

    Posted 03 Mar Link to this post

    Hi!

    Is it possible to have pop-up or edit form show up when adding new records to the grid or when "edit" button is clicked, but still have some cells "editable" in a batch edit mode fashion?

    I was thinking of switching edit mode from code behind, when "Add" or "Edit" buttons are clicked, but when "batch" mode is enabled, there's no callback. Any ideas?

    Thanks!

    Andy

  2. Andy
    Andy avatar
    54 posts
    Member since:
    Jun 2009

    Posted 04 Mar Link to this post

    Ok, I figured it out. The idea is to use custom buttons for init insert and update operations, and in code-behind handle item command event and switch edit modes and rebind the grid.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 07 Mar Link to this post

    Hello Andy,

    Instead of creating custom controls, you can intercept the commands using the OnUserAction or OnCommand event handlers:
    http://www.telerik.com/forums/rad-grid-batch-editing-sorting-issue#VDXmbb_kc06zlMJgTeXbGg

    And fire your own custom command and change the mode depending on your specific preferences:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/firecommand

    Regards,
    Eyup
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  5. Andy
    Andy avatar
    54 posts
    Member since:
    Jun 2009

    Posted 09 Mar in reply to Eyup Link to this post

    Hello, Eyup

    Thank you for reply. In fact that's not custom controls that I'm using, it's just asp linkbuttons with custom command names, instead of built-in buttons that radgrid generates to add and edit items. The rest is correct - I'm handling onCommand event of the the grid to switch modes.

    Best,

    Andy

  6. Answer
    Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 14 Mar Link to this post

    Hello Andy,

    I'm glad the approach has proven viable for your scenario. Please note for future reference that Batch editing mode is different than other modes. You can find a detailed explanation in the following section:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-batch-edit-mode


    Regards,
    Eyup
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  7. Andy
    Andy avatar
    54 posts
    Member since:
    Jun 2009

    Posted 15 Mar in reply to Eyup Link to this post

    Hi Eyup,

    Thanks for your help!

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017