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

DataSource with id XXX was not found on this page

9 Answers 86 Views
ODataDataSource
This is a migrated thread and some comments may be shown as answers.
Insad
Top achievements
Rank 2
Insad asked on 11 Sep 2012, 01:57 PM
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

9 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar Terziev
Telerik team
answered on 14 Sep 2012, 06:04 AM
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.
0
Insad
Top achievements
Rank 2
answered on 14 Sep 2012, 06:15 AM
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
0
Dimitar Terziev
Telerik team
answered on 18 Sep 2012, 03:34 PM
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.
0
Insad
Top achievements
Rank 2
answered on 27 Sep 2012, 11:03 AM

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


0
Insad
Top achievements
Rank 2
answered on 27 Sep 2012, 12:08 PM
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
0
Accepted
Dimitar Terziev
Telerik team
answered on 04 Oct 2012, 02:07 PM
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.
0
Andy
Top achievements
Rank 1
answered on 07 Dec 2013, 11:49 PM
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.
0
Insad
Top achievements
Rank 2
answered on 09 Dec 2013, 08:42 AM
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 :)
0
احمد
Top achievements
Rank 1
answered on 09 Aug 2014, 11:48 PM
ihhhhhhhhhhhd
Tags
ODataDataSource
Asked by
Insad
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Insad
Top achievements
Rank 2
Andy
Top achievements
Rank 1
احمد
Top achievements
Rank 1
Share this question
or