Get all rows from all pages client side

2 posts, 0 answers
  1. Sébastien
    Sébastien avatar
    18 posts
    Member since:
    Apr 2016

    Posted 03 Jun 2016 Link to this post


    does the method "get_masterTableView()" only return the rows from the active page ? If yes, how iterate on all rows from all pages from the grid ?

    The grid contains 60 rows in 3 pages. The instruction "rows.length" below return 20. I need 60.

    Has someone an idea ?

    Thanks in advance.


    var tableView = $find("grdMandantenList").get_masterTableView();
    var rows = tableView.get_dataItems();
    for (var i = 0; i < rows.length; i++) {
       //access label value
       var label = rows[i].findElement("lblVersandStatus");

  2. Viktor Tachev
    Viktor Tachev avatar
    2501 posts

    Posted 08 Jun 2016 Link to this post

    Hi Seb,

    The items returned by the get_dataItems() method are only the items that are visible on the client. This is why you are seeing only 20 items.

    With that said, would you elaborate in more detail on the scenario you would like to implement? Why do you need to access all items in the grid? What are the requirements and what should be the expected result?

    Viktor Tachev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top