Multiple Edit Buttons in Gridview

3 posts, 0 answers
  1. Ganeshkumar
    Ganeshkumar avatar
    7 posts
    Member since:
    Mar 2016

    Posted 13 Apr 2016 Link to this post

    Hi,

     

    I have two editbuttons in my gridview, I my form template I have 4 dropdowns.

    When I click add new record button all the 4 dropdowns controls should be enable to add a record.

    when I click the edit button 1 (Command name is EditEmp)  dropdown 1 & dropdown 2 should be enabled and dropdown 3 & dropdown 4 should be disabled to update the record

    when I click the edit button 2 (Command name is EditDependent) on the same grid dropdown 1 & dropdown 2 should be disabled and dropdown 3 & dropdown 4 should be enabled to update the record.

    Kindly let me know on which event I will do this changes.

    thanks,

    Ganeshkumar

     

     

  2. Eyup
    Admin
    Eyup avatar
    3056 posts

    Posted 18 Apr 2016 Link to this post

    Hi Ganeshkumar,

    You can achieve this requirement using the ItemDataBound event handler. Depending on the clicked button you can toggle the visibility of the controls:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-editinsert-mode

    I hope this will prove helpful.

    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.
  3. Ganeshkumar
    Ganeshkumar avatar
    7 posts
    Member since:
    Mar 2016

    Posted 18 Apr 2016 in reply to Eyup Link to this post

    Hi Eyup,

    Thanks for your reply, It's gives fair idea and very helpful for me.

    Regards,

    Ganeshkumar

     

Back to Top