asp.net mvc - jQuery initiating a extra call to server -
i have asp.net mvc application , on 1 of page; have button sends ajax request load data (data request goes web api have created) in kendo listview control have on page. there 4 kendo list views on page , data getting binded them on click of button. how bind data 1 of 4 kendo list view below:
@(html.kendo().listview<carecomplete.data.core.viewmodel.personinfo>() .name("otherlistview").tagname("div") .clienttemplateid("templateperson") .pageable(page => { page.messages(mess => mess.display(constants.showingpersonperpage + " others")); page.pagesizes(appsettings.pagingarray).messages(mes => { mes.itemsperpage(string.format(constants.personperpage, "other persons")); mes.empty(string.format(constants.nopersonfound, "other person")); }); page.buttoncount(appsettings.pagingoptioncount); }) .datasource(datasource => { datasource.read((read => read.url(personinfourl).type(httpverbs.get).data("otherdatafilter"))); datasource.pagesize(appsettings.defaultpagesize); }).events(events => events.databound("onotherdatachange")) .autobind(false)//not load list automatically )``
in addition 4 data bind request 2 more requests going server whenever clicking button evident in browser developer tools "network".
http://test.com:54785/undefined
for quick reference attached screen shot of browser developer tools.
i can see originating jquery-2.1.1.js file; not find problem.
can me on this?
thanks,
Comments
Post a Comment