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

ToDataSourceResult() method

6 Answers 833 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 12 Dec 2012, 08:14 AM
Hi,
my company purchased Kendo UI for ASP.NET MVC, and i'm trying to use this ToDataSourceResult() extension method in order to make the paging on server for the grid just like the example on the site ,but i cannot find the kendo.UI.extensions namespace,or at least i installed the kendo extensions for VS and no such namespace,only Kendo.MVC.dll ,also i downloaded the telerik extensions for asp.net mvc,but there is no such method in \Extensions directory. What should i have to do in order to use this method?

thanks in advanced.

6 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 12 Dec 2012, 08:48 AM
Hello Daniel,

You should check whether your project have reference to the Kendo.MVC.dll assembly. Here are step by step instructions:
http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/introduction#manually-add-kendo-ui-to-aspnet-mvc-applications

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Daniel
Top achievements
Rank 1
answered on 12 Dec 2012, 08:54 AM
i started actually a new project with the kendo ui for mvc template and inside the project,is the kendo.mvc.dll reference,because that's the main reason for choosing the kendo template.do i have to add manually everything to the project like in the tutorial?
but my main question is where is actually this method(.ToDataSourceResult) inside kendo.mvc.dll or in what assembly?
i need to know this,in order to check if i have that assembly.
0
Nikolay Rusev
Telerik team
answered on 13 Dec 2012, 11:54 AM
Hello Daniel,

"do i have to add manually everything to the project like in the tutorial?"

 You should perform the required manual steps or use the project wizard from Visual Studio to setup Kendo project for your.

"my main question is where is actually this method(.ToDataSourceResult) inside kendo.mvc.dll or in what assembly?"

    ToDataSourceResult extension method resides inside Kendo.Mvc.Extensions namespace of Kendo.Mvc.dll assembly.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Daniel
Top achievements
Rank 1
answered on 13 Dec 2012, 03:05 PM
Now is working indeed the example with the serverside paging.
Thanks.
0
Roy
Top achievements
Rank 1
answered on 25 Jul 2013, 06:00 PM

Hi I uninstalled trial version and installed DevCraft Complete
Tried creating sample grid in MVC 4, but, '.ToDataSourceResult(request))' is not recognised.
I have checked that Kendo files are correct location and order.
Added statement using Kendo.Mvc.Extensions; but still no Joy. Any suggestions

Regards

Roy
0
Petur Subev
Telerik team
answered on 29 Jul 2013, 08:17 AM
Hello Daniel,

We are not sure what else might be wrong. Please create new sample project following the steps and if the ToDataSourceResult is still not available , share with us that project so we can run it on our side and see what goes wrong.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Daniel
Top achievements
Rank 1
Roy
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or