I am using a repeater within my RadListView which has the data source set like DataSource='<%# Bind("ContactDetails") %>'.
So then I can loop through the different properties of the ContactDetails and use them, but when I update any data in these fields the data is lost on post back.
I have read quite a lot of different blog posts etc and they seem to think I need to bind in the Onint method, but since I don't bind in the code behind, I have no idea how to do this, or if this will actually solve my problem.
The data source for the RadListView is calling a WCF web Service that expects JSON.
Here is an example of the code I am using....
Please ignore any small syntax errors, I have quickly shortend this code for putting on the forums.
Any help would be great, I am totally stuck on this one. Is it even possible to do what I want?
So then I can loop through the different properties of the ContactDetails and use them, but when I update any data in these fields the data is lost on post back.
I have read quite a lot of different blog posts etc and they seem to think I need to bind in the Onint method, but since I don't bind in the code behind, I have no idea how to do this, or if this will actually solve my problem.
The data source for the RadListView is calling a WCF web Service that expects JSON.
Here is an example of the code I am using....
Please ignore any small syntax errors, I have quickly shortend this code for putting on the forums.
<
telerik:RadListView
ID
=
"RadListView1"
runat
=
"server"
DataSourceID
=
"ObjectDataSource1"
Skin
=
"Hay"
>
<
ItemTemplate
>
<
asp:Repeater
ID
=
"ContactDetails"
runat
=
"server"
DataSource='<%# Bind("ContactDetails") %>'>
<
ItemTemplate
>
<
asp:Label
ID
=
"ContactDetailLabel"
runat
=
"server"
AssociatedControlID
=
"ContactDetailTextBox"
Text='<%# Bind("ContactDetailType") %>'></
asp:Label
>
<
asp:TextBox
ID
=
"ContactDetailTextBox"
runat
=
"server"
CssClass
=
"rlvInput"
Text='<%# Bind("Value") %>' />
</
ItemTemplate
>
</
asp:Repeater
>
<
asp:Button
ID
=
"UpdateButton"
runat
=
"server"
CommandName
=
"Update"
Text
=
"Update Profile"
ToolTip
=
"Update"
/>
</
ItemTemplate
>
</
telerik:RadListView
>
Any help would be great, I am totally stuck on this one. Is it even possible to do what I want?