Advanced template, with nested datasources

2 posts, 0 answers
  1. Dédé
    Dédé avatar
    60 posts
    Member since:
    May 2009

    Posted 28 May 2009 Link to this post

    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)



  2. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 01 Jun 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top