PDA

View Full Version : load indicator on paged grid toolbar not stopping with 0 ite



kirk
14 Nov 2006, 7:15 PM
It seemed load indicator on paged grid toolbar not stopping when empty resultset returned. I use XMLDataModel to retrive data。When there were some data returned, load indicator behaved as expected.
When no data returned, it keep running.
Here are two example xml files, one with some date, the other empty:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<results>
<TotalCount>201</TotalCount>
<item>
<name>accounttest</name>
<email>accounttest@mkt.wayway.cn</email>
<date>2006-11-9</date>
</item>
<item>
<name>accounttest2</name>
<email>accounttest2@mkt.wayway.cn</email>
<date>2006-11-10</date>
</item>
</results>


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<results>
<TotalCount>0</TotalCount>
</results>

Thanks!

jack.slocum
15 Nov 2006, 4:02 AM
I believe it is being caused by an error being thrown - have you seen any errors?

Either way, I added a handler for errors that will stop the loading indicator when an error occurs.

The fix will be in RC2.

Animal
15 Nov 2006, 4:27 AM
I suspect an Exception is being caught somewhere and handled silently which aborts an operation.

This was hapening to me. Check your try/catches

kirk
15 Nov 2006, 5:26 PM
After seeing Jack and Animal's reply, i check the code again. It turns out i missed a exception funtion's definition when rowcount < 1. Certainly my fault!

Thanks again for your quick response, Jack and Animal!