NCS_One
(Ncsantos Ncs)
June 5, 2013, 4:14pm
1
Hi,
If I have a CListView inside a CListView and click the pagination on the inside CListView both ‘afterAjaxUpdate’ are executed.
Also, one weird thing is that sometimes it executes the ‘afterAjaxUpdate’ of the insider first and others the outsider.
Is there a way to prevent this?
Thanks for all your help.
konapaz
(Konapaz)
June 5, 2013, 10:05pm
2
NCS_One
(Ncsantos Ncs)
June 6, 2013, 12:24am
3
No, they have different IDs.
NCS_One
(Ncsantos Ncs)
June 6, 2013, 3:44am
4
Also,
All my JS and ajax requests work ok but if I do:
$.fn.yiiListView.update('listViewID');
they stop working, and I don’t know why I don’t even get any errors on firebug.
The JS and the ajax also stops working if I do the update using the firebug console.
konapaz
(Konapaz)
June 6, 2013, 6:35am
5
NCS_One:
Also,
All my JS and ajax requests work ok but if I do:
$.fn.yiiListView.update('listViewID');
they stop working, and I don’t know why I don’t even get any errors on firebug.
The JS and the ajax also stops working if I do the update using the firebug console.
Did you have the app online to post a link ?
NCS_One
(Ncsantos Ncs)
June 7, 2013, 2:55am
6
Thanks for your help. I fix my problem. Some JS code missing.
But now I have another question:
When I update a empty listview with:
$.fn.yiiListView.update('listviewID');
I get this error: TypeError: settings is undefined
How can I fix this?
NCS_One
(Ncsantos Ncs)
June 7, 2013, 4:21am
7
Found the problem but no solution.
The listview is received via ajax so the settings for that listview are not set.
Is there some way of solving this?
NCS_One
(Ncsantos Ncs)
August 27, 2013, 2:58am
8
Can someone please check if this is correct:
if I have a CListView inside another CListView if I change the page of the inside CListView why does it makes 2 ajax requests? one for the outside CListView and another for the inside one
Thanks.
NCS_One
(Ncsantos Ncs)
August 27, 2013, 6:37pm
9
Found the problem.
It’s the “updateSelector”, if you don’t set it it’s going to be something like “#listViewID .pagination a, #listViewID .sorter a”, soo if you have another CListView inside this first this selector will also affect the inner CListView.