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

Rad Grid Edit Button Click Custom Form Display rather than Pop Up Display

2 Answers 244 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Babu
Top achievements
Rank 1
Babu asked on 11 Mar 2015, 02:30 PM
Hi
I have requirement where i have data shown in Rad Grid(Assuming 4 Columns) and for each row at the end i need to add button as Update
Once i clicked the Update button i want pop up window opened with the values for the row.
I was able to achieve the same using the below Example
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx.
But now the requirement is little complicated here
Assuming We show EmployeeId,Firstname,Lastname and State
1 Steve Jobs CA as example
When clicked on edit button it shows me these values and i can manullay update - But for Countries in need all the States avaialble - Say a list of 50 States shown rather than just textbox of CA and manually typing  chaning to NJ - I want dropdown of all 50 States which i have in List and Have CA - selected.
This way the user can edit select what ever state he wants to select.

How to achieve the same, Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 16 Mar 2015, 08:22 AM
Hi Babu,

If you need the editor control of your State column to be a drop down control, you could either use a GridTemplateColumn with RadDropDownList or RadComboBox control in the EditItemTemplate or use directly a GridDropDownColumn. Detailed information on those columns is available in the following help article:
Furthermore, in the demo that you are referring to (RadGrid - Edit Form Types), there is a drop down control in the form for the "Title", so you can use the same implementation, but change the items with the states.

Hope this helps.

Regards,
Konstantin Dikov
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.

 
0
Babu
Top achievements
Rank 1
answered on 17 Mar 2015, 07:55 PM
Thanks this helped me 
Tags
Grid
Asked by
Babu
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Babu
Top achievements
Rank 1
Share this question
or