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

ListView DataSource Not Available on RequestEnd/Change Event

4 Answers 39 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 16 Jan 2017, 03:56 PM

Hello!

I am using Kendo MVC UI. I have a Kendo Window that I do a refresh with a passed in url that obtains a MVC partial view which contains a Kendo ListView. This ListView, I do a DataSource read. I created a javascript function to call after the data is received to use the items returned. I tried using the RequestEnd/Change event to call it. It calls the function but the ListView does not appear to be done as the Loading icon is visible still and I don't have access to the dataItems. I am using version 2015.2.805.

How can I access the dataItems right after the request is made to get them?

Thanks!

4 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 18 Jan 2017, 10:02 AM

Hello Craig,

The situation mentioned sound a bit complex. Mainly, the behavior of the scenario described greatly depends on the way you use the refresh method and the ListView configuration. Can you elaborate more on the case and send some code samples to properly understand the case. It would be even better if you can attach a simple, locally runnable sample so that I can test it directly.

Regards,
Ianko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Craig
Top achievements
Rank 1
answered on 20 Jan 2017, 04:54 PM

I've attached files with unnecessary code stripped out to give an idea of what I am doing. It may not be working from the code provided but it gives an idea of how I am trying to access the ListView from the initializeListViewInputs function in works.js

Thanks for your help!

0
Ianko
Telerik team
answered on 24 Jan 2017, 10:59 AM

Hello Craig,

I am afraid without working example of the case I can only guess which part of the implemented functionality might be the source of the experienced behavior. 

As this does not seem so relate to the Grid, I suggest you to try and isolate the case only with Window, ListView and Partial Views and provide a simple runnable project which I would be able to examine for errors and debug it.

Regards,
Ianko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Craig
Top achievements
Rank 1
answered on 25 Jan 2017, 04:29 PM
Thanks for your replies. Upon further investigation, the issue ended up being two JavaScript files contained the same function names. After changing these to be different, things started working.
Tags
ListView
Asked by
Craig
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Craig
Top achievements
Rank 1
Share this question
or