DataSource with id XXX was not found on this page

10 posts, 2 answers
  1. Insad
    Insad avatar
    17 posts
    Member since:
    Jan 2010

    Posted 11 Sep 2012 Link to this post

    Hi,

    I am trying to add a RadComboBox to my ASP.NET page using the ODataDataSource.

    When I do it the (IMHO) prefered way like this:
    <telerik:RadODataDataSource runat="server" ID="ODataDataSourceIBQueue">
            <Transport Read-DataType="JSONP">
                <Read Url="http://localhost/NiceWebApp/InsadBlackBoxModelService.svc/" />
            </Transport>
            <Schema>
                <telerik:DataModel ModelID="IBQueue" Set="IBQueues">
                    <telerik:DataModelField FieldName="Code" />
                    <telerik:DataModelField FieldName="Description" />
                    <telerik:DataModelField FieldName="Notes" />
                    <telerik:DataModelField FieldName="QueueID" />
                    <telerik:DataModelField FieldName="QueueType" />
                </telerik:DataModel>
            </Schema>
        </telerik:RadODataDataSource>
     
        <telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="true"
            DataModelID="IBQueue"
            DataTextField="Code"
            DataValueField="QueueID"
            ODataDataSourceID="ODataDataSourceIBQueue">
        </telerik:RadComboBox>

    I get the message 'DataSource with id ODataDataSourceIBQueue was not found on this page'

     When I add the OData settings inside the RadComboBox, like this:
    <telerik:RadComboBox runat="server" ID="RadComboBox2" EnableLoadOnDemand="true">
            <WebServiceSettings Path="http://localhost/NiceWebApp/InsadBlackBoxModelService.svc">
                <ODataSettings ResponseType="JSONP">
                    <Entities>
                        <telerik:ODataEntityType Name="IBQueue"
                                                 DataValueField="QueueID"
                                                 DataTextField="Code" />
                    </Entities>
                    <EntityContainer>
                        <telerik:ODataEntitySet EntityType="IBQueue"
                                                Name="IBQueues" />
                    </EntityContainer>
                </ODataSettings>
            </WebServiceSettings>
        </telerik:RadComboBox>

    It works as expected.

    I have the same problem with the RadTreeView..

    Can anyone advise on this? Or might it be a bug?

    I am using VS2012, .NET 4.5, Telerik RadControls for ASP.NET AJAX 2012 Q2 Version 2012.2.815.40

    Regards,

    Insad

    EDIT: Copy/Paste issue in samples corrected
  2. Answer
    Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 14 Sep 2012 Link to this post

    Hi Insad,

    Such problem might occur in case a master page is being used or the RadODataDataSource is in a user control. We are aware of this issue and it shall be resolved in the upcoming latest internal build.

    All the best,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Insad
    Insad avatar
    17 posts
    Member since:
    Jan 2010

    Posted 14 Sep 2012 Link to this post

    Hi Dimitar,

    So as a workaround, for just now, I can put my RadODataSource on the masterpage? Or does this brings other issues into play?
    (Tried to put the RadODataSource declaration on the master page and used it on a userpage without problems)

    But I am happy that it will be fixed in the next build. Any chance you can tell when this comes available?

    Regards,

    Insad
  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 18 Sep 2012 Link to this post

    Hi Insad,

    The fix should be available in the lasted internal build which has been uploaded today so please download it and check whether everything is working properly at your end.

    Greetings,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Insad
    Insad avatar
    17 posts
    Member since:
    Jan 2010

    Posted 27 Sep 2012 Link to this post


    Hi Dimitar,

    I've updated all Telerik parts installed on my computer, using the Telerik control panel, adjusted and rebuild the app; still the same problem.Build an entire new app to test; still the same isue.

    Checked the version of the assemblies; they are (now at least ;) ) up to date but still the same issue.

    Uninstalled all Telerik parts and reinstalled them all with the Telerik control panel; still the same issue...

    Did I do something wrong or did the fix missed the latest build?

    Regards,

    Insad

    Edit: The Telerik.Web.UI assembly reports version 2012.2.912.40


  7. Insad
    Insad avatar
    17 posts
    Member since:
    Jan 2010

    Posted 27 Sep 2012 Link to this post

    My bad..

    After some searching I found that the latest internal release should be downloaded (zip file) manually.

    Here a noob description of what I did (so you can see if I did something wrong)
    - Downloaded the zip file, unzipped it and copied it over the existing stuff..
    - It indicated that the assembly was still in use, so just to be safe rebooted and copied again (this time without a problem)
    - Restarted the entire machine again (better be safe ;))
    - Opened my existing project, checked the version of the Telerik.Web.UI assembly: Version 2012.2.925.40 (same as the zipfile indicated)
    - Full rebuild and run; the problem still exists..
    - New app; same problem

    So it definitly looks that it isn't fixed yet :(

    Also, it might be usefull to include these kind of releases in the Telerik Control Panel. Somewhere under a check box 'Include internal releases' or something :)

    Regards,
    Insad
  8. Answer
    Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 04 Oct 2012 Link to this post

    Hello Insad,

    Thank you for your feedback regarding the Telerik Control Panel, as for the experienced problem I've tested the 2012.2.925.40 version of our controls and they are working properly on my side. Here is a quick video showing that the RadComboBox is populated properly when the control and the RadODataDataSouce are placed in a page which is using MasterPage.

    All the best,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  9. Andy
    Andy avatar
    1 posts
    Member since:
    Dec 2013

    Posted 07 Dec 2013 Link to this post

    I've also noticed that having the data source below the control that uses it can cause this. Put the control near the top of the page, after the ajax manager and script manager, and this problem will go away.
  10. Insad
    Insad avatar
    17 posts
    Member since:
    Jan 2010

    Posted 09 Dec 2013 Link to this post

    The project is already released. The (working) solution used at the time was by putting the RadODataSource in the masterpage, as mentioned earlier as working.

    When issues arise it will be changed, but for now it works and the customer is happy :)
  11. احمد
    احمد avatar
    1 posts
    Member since:
    Aug 2014

    Posted 09 Aug 2014 in reply to Insad Link to this post

    ihhhhhhhhhhhd
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017