Yii Framework Forum: Delete Button In Cgridview - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Delete Button In Cgridview Group rows and provide a single delete button Rate Topic: -----

#1 User is offline   yiiplayboy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 03-May 12

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?
0

#2 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 427
  • Joined: 21-May 11
  • Location:India

Posted 17 October 2012 - 02:35 AM

if you mean with multiple row delete with delete button, try This Link
Thanks,
Kiran Sharma.
0

#3 User is offline   yiiplayboy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 03-May 12

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?
0

#4 User is offline   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,102
  • Joined: 05-January 12
  • Location:Morocco

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.
0

#5 User is offline   yiiplayboy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 03-May 12

Posted 17 October 2012 - 02:36 AM

View Postkiran sharma, on 17 October 2012 - 02:35 AM, said:

if you mean with multiple row delete with delete button, try This Link


no i was looking something like cgridview structure and no extra buttons...thanks for the link though....i had gone through it before....
0

#6 User is offline   yiiplayboy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 03-May 12

Posted 17 October 2012 - 02:52 AM

View Postbennouna, 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.


they improvised on this to bring the yii booster...but still i cant group by actions...can group by columns...
0

#7 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 427
  • Joined: 21-May 11
  • Location:India

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.
Thanks,
Kiran Sharma.
0

#8 User is offline   yiiplayboy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 03-May 12

Posted 17 October 2012 - 03:48 AM

View Postkiran 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.


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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users