Posts: 23
Threads: 10
Joined: Aug 2009
Reputation:
0
08-30-2009, 07:40 AM
Hi,
I have a FlexDataGrid which has 20 rows. Only 17 are visible without scrolling.
I get the number of rows in a FlexDataGrid using .GetROProperty("rowcount")
But this only gives me the number of rows that are visible on the screen without scrolling.
How can I get all the rows in the grid?
Please let me know.
Thank you.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
08-30-2009, 12:03 PM
Hi Pranjal,
it will help, If you can specify exactly what you would like to access rows of datagrid.
You can try .SelectIndex(i) to select the row. this should work for rows that are not visible.
And .getROProperty("selectedItem") should get you the item.
Posts: 23
Threads: 10
Joined: Aug 2009
Reputation:
0
08-30-2009, 08:33 PM
Saket, I only need the total number of rows, not the content.
There are 20 rows out of which 1-17 are visible on first load and the FlexDataGrid can be scrolled to the bottom to see 4-20.
The problem is "rowcount" property gives me only 17 instead of 20.
I will try Malini's suggestion and let you know if that worked. Thanks a lot!
Posts: 9
Threads: 1
Joined: Aug 2009
Reputation:
0
08-31-2009, 09:22 AM
Hi Pranjal,
QTP has the automatic scrolling actually.
Could you please try to obtain the total number of objects in the table by extracting the childobjects..
Thanks,
Malini
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-31-2009, 10:35 AM
Is this Supported ?
Code:
.FlexDataGrid().Object.Rows.Count ?
What does this retrieve ? If this does not help see if the DOM method helps you.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.