UserControl edit mode - postback in edit control

2 posts, 1 answers
  1. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 25 May 2010 Link to this post

    Hello,


    Is it a bug or by design that during the postback in edit control, the object DataItem property is no longer set ?

    The same for insert mode. DataItem is null after postback.


    In popup mode (with edit control)  <EditFormSettings InsertCaption="Add new item" CaptionFormatString="Edit ProductID: {0}" CaptionDataField="ProductID" />

    the Caption is not formatted according to formatstring (after the postback)
  2. Answer
    Mira
    Admin
    Mira avatar
    1124 posts

    Posted 28 May 2010 Link to this post

    Hello Roland,

    The described issue is a bug that will be fixed in future versions of the RadControls.

    The workaround is to set explicitly the CaptionFormatString on Page_Load of the edit form.
    You can find a sample project demonstrating this approach attached to this message.

    I hope you find it useful.

    Best wishes,
    Mira
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top