Alex (SirShurf) Frenkel's Blog

A web log of a PHP professional

jQGrid with Zend Framework Updated

with 9 comments

Recently I had some time to update the fork I have of the jQGrid encapsulation for Zend Framework.

Among the things updated is:
* Support for jQGrid 4.1.
* Support for methods in options.
* 2 new decorators
* New special decorator, a multi select element on grid search.
* Support for advanced search

And many more…
You can locate the code at my GitHub:

If you dont use jQGrid it is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web.

Advertisements

Written by Alex (Shurf) Frenkel

August 22, 2011 at 7:19 pm

9 Responses

Subscribe to comments with RSS.

  1. Thanks for posting your work.
    I was able in include your code into my Zend application but I have no clue how to use it
    Can you post an example: what to put in the controller and what in the view ??

    Thanks

    Eli Hayun

    October 24, 2011 at 9:00 pm

    • You can always tell an eerxpt! Thanks for contributing.

      Dasia

      December 16, 2011 at 9:36 am

  2. Great work!!! Congratulations!

    Plese show us how to use

    Regards!

    alejandro

    November 14, 2011 at 5:54 am

  3. Hi! Thnaks for your work! May I see code of this “$this->Actions ();”? It is view-helper who insert into view action-controls like Magento?

    Eger

    December 21, 2011 at 2:28 pm

    • It actually is inserting action controlls into view…
      I did not know about the Magento controlls never worked with them but here is my code for this helper:


      view->arrActions )) {
      ob_start ();
      foreach ( ( array ) $this->view->arrActions as $arrAction ) {
      // Check Permissions
      $objAcl = Openiview_Acl::$objIntance;
      $strClass = '';
      $strOnClick = '';

      if (! $objAcl->checkPermissions ( $arrAction ['module'],$arrAction ['controller'], $arrAction ['action'], @$arrAction['params']['LabId'],@$arrAction['params']['ProjectId'],@$arrAction['params']['stricked'] )) {
      continue;
      }

      if (! empty ( $arrAction ['class'] )) {
      $strClass = $arrAction ['class'];
      }

      if (! empty ( $arrAction ['onClick'] )) {
      $strOnClick = $arrAction ['onClick'];
      } elseif (! empty ( $arrAction ['uri'] )) {
      $strOnClick = 'document.location.href="' . $arrAction ['uri'] . '"';
      } else {

      $arrParams = array ();
      if (!empty($arrAction ['module'])){
      $arrParams ['module'] = $arrAction ['module'];
      } else {
      $arrParams ['module'] = 'default';
      }
      $arrParams ['controller'] = $arrAction ['controller'];
      $arrParams ['action'] = $arrAction ['action'];
      if (! empty ( $arrAction ['params'] )) {
      foreach ( $arrAction ['params'] as $strParamKey => $strParamValue ) {
      $arrParams [$strParamKey] = $strParamValue;
      }
      }
      $strOnClick = 'document.location.href="' . $this->view->url ( $arrParams, null, true ) . '"';
      }
      ?>
      <button type="button" onClick='' class=''>view->translate($arrAction ['name']):"";?> 


      view->PageDesc();?>


      Actions:


      view->PageDesc();
      }
      } else {
      $htmlF = $this->view->PageDesc();
      }
      return $htmlF;
      }

      }

      Alex (Shurf) Frenkel

      December 21, 2011 at 4:02 pm

    • Alex (Shurf) Frenkel

      December 21, 2011 at 4:04 pm

  4. Where can I download???

    loko tek

    February 27, 2012 at 8:47 pm

  5. Hi, I’m trying to figure out how to enable the CRUD operations in the records. Can you give a example?
    Another thing that I want is to put links in each record to redirect to my actions of edit and delete

    Cassiano

    September 20, 2012 at 6:25 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: