Page 1 of 1

How many rows in a grid

Posted: Sat Jan 25, 2014 3:51 pm
by Sander Kristel

Hi,

I have a Grid on a page and populate the grid from a collection (so depending on my DBQuery there can be a different number of items in the grid each time). I want to know how many rows are in the grid (I assume I need to read the Items property?) but cant seem to make it to work.

Could you tell me what the correct format is please.

Thanks,
SAnder


How many rows in a grid

Posted: Sat Jan 25, 2014 4:10 pm
by Alena Prykhodko

How many rows in a grid

Posted: Sat Jan 25, 2014 7:11 pm
by Sander Kristel

Sorry, I don't think I've made myself clear. I understand how to get the data from a DB or Quesry into a GridItem - I want to know how to access the Grid Property that shows me hw many rows are in the grid.


How many rows in a grid

Posted: Sat Jan 25, 2014 8:26 pm
by Alena Prykhodko

This should be coded with JS. You can count values your query returns each time.


How many rows in a grid

Posted: Sat Jan 25, 2014 9:04 pm
by barry

How many rows in a grid

Posted: Sat Jan 25, 2014 9:14 pm
by Alena Prykhodko

Properties go to builder view, when you make a query you won't set rows/cols manually, grid will be populated from service response (you'll see it on Preview).
Futhermore you say numder of items will be different, that why the only way to count number of items - to code this and display the value.