ListView DataSource Not Available on RequestEnd/Change Event

5 posts, 0 answers
  1. Craig
    Craig avatar
    19 posts
    Member since:
    Jun 2014

    Posted 16 Jan Link to this post

    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!

  2. Ianko
    Admin
    Ianko avatar
    1729 posts

    Posted 18 Jan Link to this post

    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.
  3. Craig
    Craig avatar
    19 posts
    Member since:
    Jun 2014

    Posted 20 Jan Link to this post

    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!

  4. Ianko
    Admin
    Ianko avatar
    1729 posts

    Posted 24 Jan Link to this post

    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.
  5. Craig
    Craig avatar
    19 posts
    Member since:
    Jun 2014

    Posted 25 Jan Link to this post

    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.
Back to Top