c# - Kendo ListView: cant refresh (reload) data -


here listview:

@(html.kendo().listview<entity>()   .name("listview")   .tagname("div")   .clienttemplateid("template")   .datasource(datasource => {       datasource.read(read => read.action("products_read", "home").data("additionaldata"));       datasource.pagesize(4);  }) .pageable()    ) 

here javascript function must reload data:

var somedata = "-1"; function reload() {    // insure function exists    // alert( $("#listview").data("kendolistview").refresh)    $("#listview").data("kendolistview").refresh();  }  function additionaldata() {     return {         somedata:  somedata     }; } 

i written in documentation doesnt see postback.whats wrong?

refresh() (see refresh) refreshes data on screen don't reload data. if want so, have use read() :

$("#listview").data("kendolistview").datasource.read(); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -