31 Dec 2009 @ 5:09 AM 

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);
Posted By: Zayin
Last Edit: 31 Dec 2009 @ 05:09 AM

EmailPermalink
Tags
Tags: ,
Categories: php, rapyd


 

Responses to this post » (One Total)

 
  1. zayinkrige says:

    New Blog Post -> Rapyd – CRUD for PHP – part 2 – http://www.zayinkrige.com/rapyd-crud-for

Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.


 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 38
  • Comments » 61
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Links



    No Child Pages.

Portfolio



    No Child Pages.