1. #51
    Ext User
    Join Date
    Jan 2008
    Location
    London
    Posts
    14
    Vote Rating
    0
    teknaut is on a distinguished road

      0  

    Default


    i was indeed returning null but returning an empty array doesn't help unfortunately

    thanks for the suggestion though.
    Last edited by teknaut; 14 Feb 2008 at 4:54 AM. Reason: spelling

  2. #52
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    1
    mjlecomte will become famous soon enough

      0  

    Default


    Can you post your XHR response?

  3. #53
    Ext User
    Join Date
    Jan 2008
    Location
    London
    Posts
    14
    Vote Rating
    0
    teknaut is on a distinguished road

      0  

    Default


    I am either returning null or as per your suggestion this : []

    is that what you wanted to see or ??
    Last edited by teknaut; 14 Feb 2008 at 5:43 AM. Reason: more info

  4. #54
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,154
    Vote Rating
    82
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    This JSON clears the grid for sure:

    {"success":true,"totalCount":"0","rows":[]}

  5. #55
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,154
    Vote Rating
    82
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    One remark: Your totalProperty and root may vary.

  6. #56
    Ext User
    Join Date
    Jan 2008
    Location
    London
    Posts
    14
    Vote Rating
    0
    teknaut is on a distinguished road

      0  

    Default


    Hmm, thanks for that it was to do with my return data as you have saisd. If I echo out {"success":true,"totalCount":"0","rows":[]} as my responsethe grid clears as expected. I will have to modify the return somehow.

    Thanks very much for your help.

  7. #57
    Ext User
    Join Date
    Nov 2007
    Location
    Chicago, IL
    Posts
    216
    Vote Rating
    0
    crpatrick is on a distinguished road

      0  

    Default


    First...this is a great plugin. It worked on the first try, and for my grid, I am working with the BufferedPagingMemoryProxy (with streaming data), and it is working across all pages without any issue.

    The one thing I am seeing is when I do the search, all is fine. Because I am streaming, I do data store reloads every 4 seconds or so. When I do the reload, the search results clear, and the entire data set is again shown. I wasn't sure if there was an easy way to maintain the search after a data store reload?

    Thanks again for this!!

  8. #58
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,154
    Vote Rating
    82
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    Do you call store.reload()? 'Cause if so, the store is reloaded with last params including search value, I suppose.

  9. #59
    Ext User
    Join Date
    Nov 2007
    Location
    Chicago, IL
    Posts
    216
    Vote Rating
    0
    crpatrick is on a distinguished road

      0  

    Default


    I have been using the below:

    grid.getDataSource().reload();

    getDataSource is basically just retrieving my store object.

  10. #60
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,154
    Vote Rating
    82
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    You can look how paging toolbar refresh button works as it doesn't clear search values and do your code same way.