ListView data is null when dataBound event fires

1 posts, 0 answers
  1. David Ching
    David Ching avatar
    11 posts
    Member since:
    Sep 2007

    Posted 05 Mar 2013 Link to this post

    $(document).ready(function () {
          $("#listView").kendoListView({
              dataBound: function (e) {
                  var listView = $("#listview");
                  if (!listView) {
                      alert("listView null");
                      return;
                  }
                  var listData = listView.data("kendoListView");
                  if (!listData) {
                      alert("listData null");
                      return;
                  }
              }
          });
    The above code shows "listData null".  I need to access .data() and thought the purpose of the dataBound() event was to indicate when I could do so.  What event should I use if not this one?

    Thanks,
    David

    EDIT:  I'm sorry, it was my mistake.  I should have typed "listView" instead of "listview".  After this change, I can access .data() from the dataBound() event handler.
Back to Top