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

[Solved] RadEditor and DynamicData

1 Answer 123 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 2
Paul asked on 24 Apr 2009, 04:37 AM
Hi

I am new to both Telerik and DynamicData and think both are just awesome.

I am trying to find out how to get the dynamicdata '<%# FieldValueEditString %>' into the radeditor1.content.

I understand I am mixing the aspx page item and the code behind.  I am looking for the code behind equivalent version of

'

 

<%# FieldValueEditString %>'

 


Thanks Paul

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 24 Apr 2009, 01:57 PM
Hi Paul,

As far as I understand you have a RadEditor binded to some datasource and you want to replace the declarative binding with some dynamic setting the value in the code behind. If so, all you should do is to extract the needed value and to set it to the RadEditor.Content property. Most probably the best event to do this is in the Item_dataBound event of the data control but it depends on your scenario. Note, also, that this question is not directly related to RadEditor but to general ASP.NET knowledge - if you replace the editor with a standard TextBox control and you make this work, you can then use absolutely the same logic for the RadEditor and everything will work as expected.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Paul
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
Share this question
or