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

Duplicate Title Caption String in Automatic Edit and Insert Forms

9 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manuel Ortiz
Top achievements
Rank 1
Manuel Ortiz asked on 22 Oct 2009, 08:44 PM
Hello,

I am using the Popup Edit Forms with my RadGrid.  When I set the MasterTableView.EditFormSettings.CaptionFormatString to some string, the Popup window appears with two titles that say the same thing: the title of the window, and a form title below the window's title.  Both captions say the same thing...

I would like to remove the form title but leave the Popup window title... Is that possible??

Thanx,
Manuel

9 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Oct 2009, 04:41 AM
Hi Manuel,

Try out the following code to remove the form title:
C#:
 
  
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
{  
   if (e.Item is GridEditableItem && e.Item.IsInEditMode)  
   {  
     GridEditableItem item = (GridEditableItem)e.Item;  
     ((System.Web.UI.WebControls.TableRow)(item.Controls[1].Controls[0].Controls[1].Controls[0].Controls[0])).Visible=false;  
  
   }  
}  
 

Thanks
Princy.
0
Jerry T.
Top achievements
Rank 1
answered on 07 Mar 2011, 09:40 PM
I'm using the latest version (2010 Q3 build 1317.40) and this is still happening.

What is the reasoning behind having a duplicate label in the popup edit form and for us having to write code in the codebehind to remove it?

Jerry
0
Mira
Telerik team
answered on 10 Mar 2011, 04:34 PM
Hello Jerry,

I tried to replicate the issue which you described, but to no avail - you can take a look at the first grid from this demo.

Please, let me know if there are any differences at your end, which I may be leaving out.

Best wishes,
Mira
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Jerry T.
Top achievements
Rank 1
answered on 10 Mar 2011, 04:38 PM
That popup edit form *does* have the title duplicated. I noticed that immediately from that demo you linked.

Here's a screenshot:
0
Mira
Telerik team
answered on 14 Mar 2011, 03:35 PM
Hello Jerry,

Thank you for additional information.

The demonstrated look is expected due the way the grid pop-up edit form is rendered.

Please use the workaround provided by Princy to overcome it.

All the best,
Mira
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Jerry T.
Top achievements
Rank 1
answered on 14 Mar 2011, 03:37 PM
Well, my question is, why is it that after 2 years of updates/new releases is there not some simple way (such as via an attribute) to turn off that duplicate title?

Or, better yet, why isn't that duplicate title just removed from the pop-up form completely? Or at least turn it off by default and allow an attribute to turn it on if someone should desire that functionality.

As it is now, it makes the pop-up form look kludgy, like someone left duplicate code in place.

Jerry
0
Mira
Telerik team
answered on 17 Mar 2011, 04:51 PM
Hello Jerry,

Thank you for your feedback.

I have escalated the issue to our developers team and they will create a property whether to show the  caption in the edit form itself.

I hope this helps.

Greetings,
Mira
the Telerik team
0
David Avery
Top achievements
Rank 1
answered on 30 Mar 2011, 10:05 PM
Bump, this just stung me.  Took me about 30 mins of searching trying to find out how to turn it off.  Any status?
0
Pavel
Telerik team
answered on 31 Mar 2011, 07:00 AM
Hello David ,

Our developers have added the requested property and you can get our latest internal build and try it. To disable the caption you need to add the following markup:
<EditFormSettings PopUpSettings-ShowCaptionInEditForm="false"  >
</EditFormSettings>

Best wishes,
Pavel
the Telerik team
Tags
Grid
Asked by
Manuel Ortiz
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jerry T.
Top achievements
Rank 1
Mira
Telerik team
David Avery
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or