Pass additional parameters to Data method of Mobile Listview

2 posts, 0 answers
  1. LearnMVC
    LearnMVC avatar
    1 posts
    Member since:
    May 2015

    Posted 25 May 2015 Link to this post

    In Listview,I used Data method to passing additional parameters : 

    .Read(read => read.Action("Products_Read", "ListView").Data("additionalInfo"))

    But Mobile Listview not exist  Data menthod like Listview.
    Please can you show my how to pass addtional parameter in Mobile Listview(MVC) for Read operation and how to handle it in corresponding Controller?
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 27 May 2015 Link to this post


    The CRUD operations are part of the Kendo data source configuration, not the widget itself. The Mobile Listview, ListView and other widgets use the Kendo data source, so the Data method should exist in this case as well. 

    I tested the following scenario and the Data method works as expected: 

            .Content(obj =>       
                    .DataSource(dataSource =>
                            .Read(read => read.Action("GroupedData", "Mobile_ListView").Data("additionalInfo"))
                            .Group(group => group.Add("Letter", typeof(string)))

    public ActionResult GroupedData([DataSourceRequest] DataSourceRequest request, int UserID)

        function additionalInfo() {
            return {
                userID: 42

    Boyan Dimitrov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top