ListView Won't Refresh

3 posts, 0 answers
  1. Graham
    Graham avatar
    40 posts
    Member since:
    Jul 2012

    Posted 03 Nov 2016 Link to this post

    Here's my MVC ListView:

        .DataSource(dataSource =>
            dataSource.Read(read => read.Action("GetEntryExitBoard", "Warehouse").Data("getStartDepotNumber"));
         .Selectable(selectable => selectable.Mode(ListViewSelectionMode.Single))
         .Events(events => events.Change("onEntryExitBoardChange"))


    It loads initially with no problem. But when the following code tries to refresh it...


    var listView = $("#matrixEntryExitBoardLV").data("kendoListView");


    It steps over the refresh without throwing an error, but the list view doesn't refresh.


  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 04 Nov 2016 Link to this post

    Hello Graham,

    Calling refresh method will re-read the data currently loaded in the dataSource and will repaint the widget. It is a common method for all data-driven widgets. 

    Notice that it will not make a request for fresh data if that is what you expect.

    Nikolay Rusev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. Graham
    Graham avatar
    40 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2016 in reply to Nikolay Rusev Link to this post

    Thanks Nikolay.


    For future reference, the corrected JavaScript code is:


    var listView = $("#matrixEntryExitBoardLV").data("kendoListView");;
Back to Top