ToDataSourceResult() method

7 posts, 0 answers
  1. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 12 Dec 2012 Link to this post

    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.
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 12 Dec 2012 Link to this post

    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!
  3. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 12 Dec 2012 Link to this post

    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.
  4. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 13 Dec 2012 Link to this post

    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!
  5. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 13 Dec 2012 Link to this post

    Now is working indeed the example with the serverside paging.
    Thanks.
  6. Roy
    Roy avatar
    6 posts
    Member since:
    Jan 2013

    Posted 25 Jul 2013 Link to this post


    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
  7. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 29 Jul 2013 Link to this post

    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!
Back to Top