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

Set MVC listview to existing javascript Kendo Datasource

2 Answers 147 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 20 Jul 2012, 12:46 AM
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 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 23 Jul 2012, 07:25 AM
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!
0
Eric
Top achievements
Rank 1
answered on 23 Jul 2012, 01:36 PM
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
Tags
ListView
Asked by
Eric
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Eric
Top achievements
Rank 1
Share this question
or