Page 1 of 1
Delete Button In Cgridview Group rows and provide a single delete button
#1
Posted 17 October 2012 - 02:13 AM
i would like to group rows in cgridview based on a column and then provide only a single delete button for this row instead of 'delete' for each item in the row.....anyone done this?
#3
Posted 17 October 2012 - 02:35 AM
http://yii-booster.c...l#groupgridview
rows have got grouped now based on column but not actions i.e. delete or update?any help?
rows have got grouped now based on column but not actions i.e. delete or update?any help?
#4
Posted 17 October 2012 - 02:36 AM
Grouping: check this extension http://www.yiiframew...n/groupgridview
Single delete button: I'm not sure. Maybe the extension handles it out of the box. Or it should be easy to work out with the id of the grouped column and a specific grouped delete action.
Single delete button: I'm not sure. Maybe the extension handles it out of the box. Or it should be easy to work out with the id of the grouped column and a specific grouped delete action.
#6
Posted 17 October 2012 - 02:52 AM
bennouna, on 17 October 2012 - 02:36 AM, said:
Grouping: check this extension http://www.yiiframew...n/groupgridview
Single delete button: I'm not sure. Maybe the extension handles it out of the box. Or it should be easy to work out with the id of the grouped column and a specific grouped delete action.
Single delete button: I'm not sure. Maybe the extension handles it out of the box. Or it should be easy to work out with the id of the grouped column and a specific grouped delete action.
they improvised on this to bring the yii booster...but still i cant group by actions...can group by columns...
#7
Posted 17 October 2012 - 03:16 AM
I thought you can use following steps if i am rite..!!
- instead of action use delete image and use that last column as you grouped any rows as it show only one image in last column for that group.
- you can pass the grouped key on click of image (in YiiBooster example its "HTML") with ajax or link, and then delete items matching with keyword from db using controller code.
- instead of action use delete image and use that last column as you grouped any rows as it show only one image in last column for that group.
- you can pass the grouped key on click of image (in YiiBooster example its "HTML") with ajax or link, and then delete items matching with keyword from db using controller code.
Thanks,
Kiran Sharma.
Kiran Sharma.
#8
Posted 17 October 2012 - 03:48 AM
kiran sharma, on 17 October 2012 - 03:16 AM, said:
I thought you can use following steps if i am rite..!!
- instead of action use delete image and use that last column as you grouped any rows as it show only one image in last column for that group.
- you can pass the grouped key on click of image (in YiiBooster example its "HTML") with ajax or link, and then delete items matching with keyword from db using controller code.
- instead of action use delete image and use that last column as you grouped any rows as it show only one image in last column for that group.
- you can pass the grouped key on click of image (in YiiBooster example its "HTML") with ajax or link, and then delete items matching with keyword from db using controller code.
TbGroupGridView groups columns only if present in database table and not any other columns. thats where am stuck up now.i give name and id to my delete button columns but still not able to group it.. Following error:
Column or attribute 'del' not found.
Share this topic:
Page 1 of 1

Help












