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

displaying different UserControls in edit mode

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Miran Zgec
Top achievements
Rank 2
Miran Zgec asked on 08 Mar 2008, 10:34 AM
Hello,

I would like to use different user controls in edit mode for selected item

In my scenario I have rad grid filled with some users.
To edit user data I use custom UserControl (ascx) wich handles the editing.

I would like to add another column "edit rights", so I would have two commands for each user: "edit profile" and "edit rights".

1) edit profile (edit_profile.ascx) works fine, but how to hook up "edit rights" to use second ascx (edit_rights.ascx) in edit mode?
2) as alternative I would like to have only one edit button in rad grid, and in User control that loads (edit_rights.ascx) I would have some button that switches user control to second one (edit_rights.ascx)

Thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 10 Mar 2008, 09:14 AM
Hi Miran,

You only need to switch the RadGridMasterTableView.EditFormSettings.UserControlName property. I have attached an example.


Kind regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Miran Zgec
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or