August 27, 2011, 9:37pm
Would it be possible to implement some sort of "quick view" feature within the CGridView? For example suppose you could click on a quick view icon in each row, which would slide down a new section and make an AJAX call to display more details of the item. It would probably need to be a TR->TD tag with a colspan attribute.
Anybody done something like this?
August 27, 2011, 9:43pm
What about a CJuiDialog? You can load item details into it with ajax and don’t touch a table (what can be a problem). Also it looks nice to me
August 27, 2011, 9:51pm
Yeah, I thought about that too. However it would be much nicer to have a nice slideDown effect to display the data in the CGridView instead. Would really prefer this over the Dialog box!
August 27, 2011, 9:56pm
Yes, but I still think altering a table is not the best idea
Maybe some kind of tooltip…
August 27, 2011, 9:57pm
Chive has some kind of that IIRC.
September 1, 2011, 9:13pm
So, does anybody have any suggestions for this?
September 1, 2011, 9:53pm
I think I do…
Insert buttons in the first column and then in the onclick event handler you insert a new grid in a floating div just under the current row.
It should work.
But it’s what others do:
September 1, 2011, 9:57pm
I am currently looking into DataTables which looks awesome.
They’ve got this example:
September 1, 2011, 10:12pm
I know I could edit my posts, but a new one is so much easier…
Check out the Advanced - Subgrid demo.
jqGrid download page
Not sure if there is a Yii extension for that?