I’m fairly new to Yii and have just run into a little problem which I cannot figure out…
I’ve followed this article
CGridView: Display the full record (actionView) in a CJuiDialog
and it’s working nicely in my application.
Though now I would like the same dialog to come up when I just click on a row in the CGridView. I imagine using ‘selectionChanged’ for that would be the right thing to do but I’m not that good at Ajax or JQuery and am not sure how the function would have to look like for that…
I know it’s been a while but did you actually got this working?
I need the same. Basically clicking a row of a CGridView, this will trigger the method "selectionChanged" where I do a "jQuery.ajax(…" which triggers an action in my controller, this action does a "renderPartial" of a php file that contains a dialog.
Inside the success method of the jQuery.ajax I attempt the following but it doesn’t work: