1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    9
    Vote Rating
    0
    kirk is on a distinguished road

      0  

    Default load indicator on paged grid toolbar not stopping with 0 ite

    load indicator on paged grid toolbar not stopping with 0 ite


    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!

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    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.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    57
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    I suspect an Exception is being caught somewhere and handled silently which aborts an operation.

    This was hapening to me. Check your try/catches

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    9
    Vote Rating
    0
    kirk is on a distinguished road

      0  

    Default Yes, you are right!

    Yes, you are right!


    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!

Similar Threads

  1. Show Load Indicator W/Element.load()
    By thejoker101 in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 8 Feb 2007, 12:17 PM
  2. Does Grid.autoSize factor in paging toolbar for paged grid?
    By davida in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 28 Dec 2006, 9:47 AM
  3. suggested change for the default toolbar for the paged grid
    By jbowman in forum Community Discussion
    Replies: 5
    Last Post: 14 Nov 2006, 11:55 PM
  4. Replies: 0
    Last Post: 14 Nov 2006, 7:15 PM
  5. patch for moving loading indicator on page grid toolbar
    By jbowman in forum Community Discussion
    Replies: 0
    Last Post: 13 Nov 2006, 6:44 PM

Thread Participants: 2