Sorting Inline

Talk about Sorting & Paging problems, issues etc.

Moderator: alexandrleonenko

dednrgrid
Junior
Junior
Posts: 16
Joined: Jun 1st, '11, 11:00

Sorting Inline

Postby dednrgrid » Jul 3rd, '12, 10:05

Hallo everyone!
How can I realize this type of ordering (field rating)?

http://www.apphp.com/php-datagrid/examp ... 2_demo.php

in the source code I can not find the directive that create the sorting in this way.

Thanks

administrator
Site Admin
Site Admin
Posts: 6073
Joined: Jan 7th, '09, 23:18
Contact:

Re: Sorting Inline

Postby administrator » Jul 4th, '12, 08:01

It's not a sorting. it's a special attribute of the numeric fields: 'movable'=>'true'

honjian5231
Junior
Junior
Posts: 17
Joined: Mar 23rd, '11, 11:25

Re: Sorting Inline

Postby honjian5231 » Oct 27th, '12, 05:50

Hi , for the rating field , i have searched the forum but what i got is the "movable" = true .......
but it seems like not working at all,
I have refer to yours hotel back end , which you can click on the up down note and change the value of the priority_order ,
so I make a new field which is priority_order and put "movable"=>true at my datagrid view mode

this is my field and code

Code: Select all

 priority_order     tinyint(1)


Code: Select all

"priority_order"  =>array("header"=>"Priority order",      "type"=>"label",  "align"=>"center", "width"=>"", "wrap"=>"nowrap", "sort_type"=>"numeric", "sort_by"=>"", "visible"=>"true", "on_js_event"=>"", "movable"=>true, )


and the view mode , yes its show up with the up down note , but when i clicked on it , i got a sucess message but nothing happen

Hope you can guide me for this,
Thanks in advance , and sorry for the poor English =)

administrator
Site Admin
Site Admin
Posts: 6073
Joined: Jan 7th, '09, 23:18
Contact:

Re: Sorting Inline

Postby administrator » Oct 28th, '12, 07:55

For DataGrid (not Hotel Site) use following syntax:

Code: Select all

...'movable' => 'true'


this field must be a numeric value and all grid sorted by this field.
http://www.apphp.com/php-datagrid/examp ... 7_demo.php


Return to “Settings: Sorting & Paging”