obj.getDataProperty('count') returning 0 ?
In the given example /examples/grid/basic.htm add a button like this
<input type="button" onclick="alert(obj.getDataProperty('count'))" value="Show Count" />
When clicking, it pops '0' :-(
All I want is to get the row count using grid object. What is wrong here?
Thanks in advance.
You can modify the example code like this:
In this case the row model will get the number of rows from data model (default behavior) and your code will work as well.
Does this mean that the preffered method for setting row-count should be following?
Any reason behind setting row/count in your example?
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.