two customized user control in radgrid edit mode.

2 posts, 0 answers
  1. Samantha
    Samantha  avatar
    18 posts
    Member since:
    Sep 2008

    Posted 03 Apr 2009 Link to this post

    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 UserControlName = "ByEngineer.ascx" EditFormType = "WebUserControl"></EditFormSettings>


















    <ExpandCollapseColumn Visible="True">














  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 03 Apr 2009 Link to this post

    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

Back to Top