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

Advanced template, with nested datasources

1 Answer 94 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dédé
Top achievements
Rank 1
Dédé asked on 28 May 2009, 08:10 PM
Hi,

I have a really complex appointment creating/editing case... Maybe I have the wrong approach...

I have created an advanced insert template for custom appointment inserting : differents appointement types, choosen with a RadTab.
Until here, it works like a charm (for inserting, editing will come later...)

When I wanted to complete my insert form, I had problems : in one of the tab, I have to put a SqlDataSource with a SelectParameter value bound to a RadCombobox (bound to another SqlDataSource) from which users can pick items to add to a ReorderList (from AjaxControlToolkit) before inserting appointment to database...

I have a problem related to the fact that the datasource is in advanced template : when I show the advanced insert template, all works fine, but when I cancel (or validate) my insert, I have this error message (forcing current cultureinfo to en-us) :
The SqlDataSource control 'srcConsultingType' does not have a naming container.  Ensure that the control is added to the page before calling DataBind.

It seams that the template is created with full page lifecycle, but since it is not added to page, there is an error...

However, do you have an idea ? If I may use the RadDock, how can I use it as a modal area ? Or maybe with a RadWindow and a custom page ? Or else with AjaxControlToolkit ModalPopup ?

Anyway, if I don't succeed with this problem, I will have to make a simple form below scheduler instead of showing my form in scheduler... My boss has bought the lib, he wants fast results... Sorry for bothering...

Thanks :o)



1 Answer, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 01 Jun 2009, 01:39 PM
Hello Damien,

You are probably calling DataBind too early in the page lifecycle on some of the DataBound controls. You should try calling it during a later event. This is just a wild guess - without seeing any of your code-behind it's hard to give proper advice. You can open a support ticket and send us the code there if you don't want to post it on the forums.

All the best,
Dimitar Milushev
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
Scheduler
Asked by
Dédé
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Share this question
or