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

[Solved] Two-way databinding not working

3 Answers 154 Views
Editor
This is a migrated thread and some comments may be shown as answers.
KDL
Top achievements
Rank 1
KDL asked on 03 Sep 2009, 04:19 AM

I'm using 2009 Q2 SP1 and have a RadEditor in a FormView, bound to a datasource using declarative databinding:

<telerik:RadEditor ID="RadEditor1" runat="server"   
     Content='<%# Bind("Content") %>'>  
 

I also have a regular texbox in the same FormView EditTemplate. When updating, the underlying table is updated to the value in the regular textbox but not the value from the RadEditor.

I then tried a simplified scenario (coyping the Codeless Save in Database example in a standard WebForm, no update panels, no code-behind, no frills) and got the same results. Is this a bug or am I missing something embarassingly obvious?

I'm about to implement a bunch of RadEditors and so far what seems like it should be a simple task has taken half a day and counting -- so any help is appreciated. :)

NOTE: This behavior is consistent between IE 7, IE 8, and FireFox 3.5.

3 Answers, 1 is accepted

Sort by
0
KDL
Top achievements
Rank 1
answered on 03 Sep 2009, 10:05 PM
Any feedback from Telerik?
 
I tried a few more things but no luck getting the editor to update the database using binding.
0
Accepted
Lini
Telerik team
answered on 04 Sep 2009, 02:26 PM
Hello KDL,

If you are updating your FormView with Ajax, test with different browsers - e.g. Firefox, IE - and see if the problem is not browser related.

I tested the example you linked to, but with a simpler scenario - just an editor in the form view and nothing else. Everything seemed to work OK. I am attaching the example to this message. It is using the Northwind database.

All the best,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
KDL
Top achievements
Rank 1
answered on 11 Sep 2009, 12:10 AM
Thanks for the example, my problem turned out to be improper casing ("PageHTML" rather than "PageHtml" in the bind expression). Devil's in the details as they say...
Tags
Editor
Asked by
KDL
Top achievements
Rank 1
Answers by
KDL
Top achievements
Rank 1
Lini
Telerik team
Share this question
or