This post details some of the finer intricacies of working with Rapyd.
To set a title on the grid :
$provider_item_grid = new datagrid_library(); $provider_item_grid->label = 'My grid title'; |
To show more than 5 rows in a grid
$provider_item_grid->per_page = 100000; |
To format the output text for a column in a grid
$provider_item_grid->column('real_value','Denomination Face Value')->callback('format'); . . . . function format($row) { $avalue = $row['real_value']; $obj =& get_instance(); return currency_format($avalue); } |
To make a a column that links elsewhere:
$provider_item_grid->column('item_description','Denomination')->url(site_url('service_provider_items/?show={service_provider_item_id}'),''); |
To enable sorting on a column
$provider_item_grid->column('item_description','Denomination', true); |

Categories
Tag Cloud
Blog RSS
Comments RSS
Last 50 Posts
Back
Void « Default
Life
Earth
Wind
Water
Fire
Light 
New Blog Post -> Rapyd – CRUD for PHP – part 2 – http://www.zayinkrige.com/rapyd-crud-for…