I have a table with more than 5 columns , i want to hide some columns so that those column's are shown only if some row is selected or its expanded .
Am using yiiframework's CGridView , so how can i do this in that ?
Any help is appreciable ..
I want a feature like this, so that on expanding a particular record i can see the hidden column values
One way is :
So you need to manipulate visibility attributes dynamically :
sth like this depending on your requirement
Edit (using ajax +jquery)
example :views/user/admin.php
User Controller
Enable access rights:
that much I can do you for . Remember to change the Java script function to toggle the image icon I have not done that