Set MVC listview to existing javascript Kendo Datasource

3 posts, 0 answers
  1. Eric
    Eric avatar
    19 posts
    Member since:
    Mar 2008

    Posted 19 Jul 2012 Link to this post

    Seems like this should be possible, but I'm rendering a listview using the MVC helpers, but I just want to give it an existing Kendo datasource (created via javascript) that is already on my page.  Basically just give it the name of an existing datasource.  However I can't find a way to do that.  It looks like the MVC extensions only allow you to set up a new datasource to be used with the listview. 

    Is there a way to do what I mentioned?

    Thanks!
    Eric
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 23 Jul 2012 Link to this post

    Hello Eric,

    I don't understand why you need to use ListView MVC wrapper in case you need to specify the DataSource on client. You can simply use the Kendo ListView for the purpose.

    Greetings,
    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. UI for ASP.NET MVC is VS 2017 Ready
  4. Eric
    Eric avatar
    19 posts
    Member since:
    Mar 2008

    Posted 23 Jul 2012 Link to this post

    Yes, that is what I ended up doing, but it seems like this may not be an uncommon situation so it makes some sense to allow the MVC extension to simply point the control to an existing data source.  If somebody is taking the MVC extensions approach, of course they can also use the JS approach as well, but would be nice for consistency to have as much functionality as possible present in the MVC extensions.  Although I find that the more I use the extensions, the more likely I am to go to JS with everything.  The MVC extensions are great for getting up and running but they are also limiting, which is to be expected from a wrapper.

    Thanks!
    Eric
Back to Top