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

Custom Provider and Advanced Form

2 Answers 67 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 28 Mar 2011, 04:59 PM
Hi,
I have a custom provider that Ive created and its works fine with the default edit form. The issue that Im running into is that once I modify my RadScheduler to use an advanced edit form, none of the drop down controls (all of which are populated via resources in the custom provider) have the selected value in edit mode.
Ive tried adding binding expressions for each of the controls in the advanced edit and insert templates, but when I do that I get an error saying that that the Appointment object does not have a definition for a property.
To get around that I can add the CustomAttributes to the radScheduler definition but then the control does not save the data. Also, Im not working with attributes, they are resources.

Can telerik please provide some guidance on this? and please don't recommend that I read the Advanced Templates Demo. Ive read it a number of times and it has not helped.

2 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 30 Mar 2011, 11:43 AM
I figured this out. Turns out I wasn't binding correctly to the resource in my <AdvancedInsertTemplate> and <AdvancedEditTemplate>.
I had initially setup my scheduler to use resources provided by a SqlDataSource. The text required for that binding was as follows:

PersonID='<%# Bind("PersonID") %>'
CategoryID='<%# Bind("CategoryID") %>'

I subsequently created a custom data provider. After that change, the binding text changed to:

PersonID='<%# Bind("Person") %>'
CategoryID='<%# Bind("Category") %>'

A small change but you'll notice that the binding expression now binds to the name of the resource that I have defined in the custom provider and not the ID as required when binding to a SqlDataSource.
0
Veronica
Telerik team
answered on 30 Mar 2011, 12:06 PM
Hello Alex,

I'm glad that you found the solution on your own.

Please feel free to ask me if you have further questions.

Greetings,
Veronica Milcheva
the Telerik team
Tags
Scheduler
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Veronica
Telerik team
Share this question
or