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

UserControl edit mode - postback in edit control

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 25 May 2010, 04:37 PM
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)

1 Answer, 1 is accepted

Sort by
0
Accepted
Mira
Telerik team
answered on 28 May 2010, 12:56 PM
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.
Tags
Grid
Asked by
Roland
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or