Duplicate Title Caption String in Automatic Edit and Insert Forms

10 posts, 0 answers
  1. Manuel Ortiz
    Manuel Ortiz avatar
    68 posts
    Member since:
    Aug 2009

    Posted 22 Oct 2009 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Oct 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 07 Mar 2011 Link to this post

    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
  5. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 10 Mar 2011 Link to this post

    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!
  6. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 10 Mar 2011 Link to this post

    That popup edit form *does* have the title duplicated. I noticed that immediately from that demo you linked.

    Here's a screenshot:
  7. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 14 Mar 2011 Link to this post

    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!
  8. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 14 Mar 2011 Link to this post

    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
  9. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 17 Mar 2011 Link to this post

    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
  10. David Avery
    David Avery avatar
    57 posts
    Member since:
    Apr 2006

    Posted 30 Mar 2011 Link to this post

    Bump, this just stung me.  Took me about 30 mins of searching trying to find out how to turn it off.  Any status?
  11. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 31 Mar 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017