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

RadGridTable Data item count vs Row count

2 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Donna
Top achievements
Rank 1
Donna asked on 26 Aug 2013, 08:56 PM
This may be a stupid question, but here goes anyway.

I have a RadGridTable element. In the Suggested Steps, I have the option of getting a 'Data' item count (or 'Virtual' or 'Selected', etc.) or the table's RowsCount.

What is the difference?
When should one or the other be used?

Thanks for your help.

Donna M Rode
Steton Technology

2 Answers, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 29 Aug 2013, 05:00 PM
Hi Donna,

Thank you for contacting Telerik Support.

Data - total count of GridDataItem objects inside GridTableView which are currently loaded in the DOM
Selected - total count of currently selected GridDataItem objects inside a GridTableView
Virtual - applicable when virtual scrolling is used in grid (see public example) where the value is a total count of GridDataItem objects virtually available on the current page of data (eg. see attached example of 14 Data count and 50000 Virtual count for each page of data)
Edited - total count of items currently being edited in your GridTableView
Expanded - total count of currently expanded GridDataItem objects inside GridTableView

The RowCount is simply the amount of HTML table rows (eg. TR tag's) contained in the table element, this includes a row which may just be a header or footer in your table.

Their use is specific to what you would be trying to accomplish, if you could provide me with any example scenario's I would gladly let you know which counts might be appropriate.

Regards,
Mario
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Donna
Top achievements
Rank 1
answered on 29 Aug 2013, 05:06 PM
Thank you. That tells me exactly what I need to know.
Tags
General Discussions
Asked by
Donna
Top achievements
Rank 1
Answers by
Mario
Telerik team
Donna
Top achievements
Rank 1
Share this question
or