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

PopUp Edit Form TitleBar

1 Answer 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 11 Mar 2011, 02:02 AM
I am employing a usercontrol for my grid edit form.  I have several of them and assign which one will be used at runtime.

Can I create custom text in the popup edit form's titlebar from within the usercontrol's codebehind?

Mike

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Mar 2011, 10:47 AM
Hello Mike,


A better option to change Title for editform based on "UserControl" is setting it in ItemCommand event of Grid.

Sample code:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
   {  
      if (e.CommandName == "Edit")
       {
          RadGrid1.MasterTableView.EditFormSettings.CaptionFormatString = "Edit this Item " // Set the Title based on usercontrol
       }
    }



-Shinu.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or