This is a migrated thread and some comments may be shown as answers.

Multiple Edit Buttons in Gridview

2 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ganeshkumar
Top achievements
Rank 1
Ganeshkumar asked on 13 Apr 2016, 11:53 AM

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

Sort by
0
Eyup
Telerik team
answered on 18 Apr 2016, 08:26 AM
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.
0
Ganeshkumar
Top achievements
Rank 1
answered on 18 Apr 2016, 10:24 AM

Hi Eyup,

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

Regards,

Ganeshkumar

 

Tags
Grid
Asked by
Ganeshkumar
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Ganeshkumar
Top achievements
Rank 1
Share this question
or