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

[Solved] CaptionFormatString

1 Answer 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 20 May 2009, 10:24 AM
Hi,

The text in the captionformatstring for a popup window is shown twice. Your demo illustrates this where Edit ProductID: 3 is shown in the green title bar and below it.

http://www.telerik.com/help/aspnet-ajax/grdpopupeditform.html

How can I hide the caption in the edit form and just show it on the popup titlebar?

Thanks, Stuart.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 May 2009, 04:53 AM
Hi Stuart,

Give a try with the following code snippet to hide the caption in edit form.

CS:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
        if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))  
        {  
            GridEditFormItem editForm = (GridEditFormItem)e.Item;  
            Table editFormTable = (Table)editForm.FindControl("mainTable");  
            editFormTable.Controls[0].Visible = false;  
        }  
  }  


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