Yii Framework Forum: Clistview Beforeajaxreplace Option - Yii Framework Forum

Jump to content

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

Clistview Beforeajaxreplace Option Rate Topic: -----

#1 User is offline   ema 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 11-June 11

Posted 15 February 2013 - 02:31 PM

In CListView (CGridView maybe also) It would be useful to set a callback similar to afterAjaxUpdate, but called immediately BEFORE the replace.
Use cases: close popovers/tooltip immediately before replacing the dom objs.

E.g.

    
    $.fn.yiiListView.update = function(id, options) {
        ...
        success: function(data,status) {
            // callback here
            $.each(settings.ajaxUpdate, function(i,v) {
                ...
            });
            if(settings.afterAjaxUpdate != undefined)
                settings.afterAjaxUpdate(id, data);
            ...

0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,339
  • Joined: 12-October 09
  • Location:Croatia

Posted 16 February 2013 - 02:32 PM

There is afterAjaxUpdate for this... if the popup would be removed before the replace... then first the old one would be shown and just then replaced...
Find more about me.... btw. Do you know your WAN IP?
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