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

two customized user control in radgrid edit mode.

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Samantha
Top achievements
Rank 1
Samantha asked on 03 Apr 2009, 06:54 AM

would it be possible that i create two WEB User Control for radgrid edit mode? Different input will show different edit form display.  it's totally different control.  visible some control cannot be applied here. For input A, the radgrid will visible the control A and if input B, the radgrid will visible the control B. Belows are part of my code:

 

 

 

<EditFormSettings UserControlName = "ByDepartment.ascx" EditFormType = "WebUserControl">

 

 

</EditFormSettings>

 

 

 

 

 

<EditFormSettings UserControlName = "ByEngineer.ascx" EditFormType = "WebUserControl"></EditFormSettings>

 

 

 

 

 

</telerik:GridTableView>

 

 

 

 

 

</DetailTables>

 

 

 

 

 

<ExpandCollapseColumn Visible="True">

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

<Columns>

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Apr 2009, 07:44 AM
Hello Samantha,

You can actually check for the command names in the ItemCommand of the RadGrid and also check for the ownertableview name and switch between the user controls accordingly. The following help link should help you get the basic idea. You can alter the logic according to your requirement.
Different edit forms on edit and insert

Thanks
Princy.
Tags
Grid
Asked by
Samantha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or