Sander Kristel
Posts: 0
Joined: Sun Dec 29, 2013 4:47 pm

How many rows in a grid

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How many rows in a grid

Sander Kristel
Posts: 0
Joined: Sun Dec 29, 2013 4:47 pm

How many rows in a grid

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.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How many rows in a grid

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

barry
Posts: 0
Joined: Sat Jan 25, 2014 9:03 pm

How many rows in a grid

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How many rows in a grid

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.

Return to “Issues”