Yii Framework Forum: clistview: only ajax update if returned data is valid - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

clistview: only ajax update if returned data is valid Rate Topic: -----

#1 User is offline   wisp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 192
  • Joined: 04-February 11

Posted 20 November 2011 - 06:39 PM

I'm using a ClistView to display some search results, the results come from an external search index.
In some rare cases, there is something wrong and no data is returned. In those cases I want the listview to keep it's current state and not update using the (empty) data. Instead I want to show some sort of alert informing the user that there was something wrong with the request, and to try again.

What's the easiest way to accomplish this? Can I check the data somehow before updating the listview?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users