all items in a grid

4 posts, 0 answers
  1. Ajeesh
    Ajeesh avatar
    3 posts
    Member since:
    Mar 2012

    Posted 04 May 2012 Link to this post

    what could be the best way to get all the models in a grid (including the rows that are not edited)

  2. Alexander Valchev
    Alexander Valchev avatar
    2890 posts

    Posted 07 May 2012 Link to this post

    Hi Ajeesh,

    You could retrieve all the models from the grid's dataSource through the view or data methods. For example:

    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Nathan
    Nathan avatar
    2 posts
    Member since:
    Jan 2018

    Posted 06 Mar 2018 Link to this post

    when i run this, the console throws an exception saying that it is undefined, and it appears .data could not have been used in the way it is being used. Am I doing something wrong? Or is there a new change to this?
  4. Konstantin Dikov
    Konstantin Dikov avatar
    2386 posts

    Posted 08 Mar 2018 Link to this post

    Hi Nathan,

    You need to ensure that you are passing the correct ID of the Grid and that you are getting reference to the Grid`s API:

    Konstantin Dikov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top