Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9194047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:18:40+00:00 2026-06-17T21:18:40+00:00

I am using Zend Framework that’s why I decided to use zfdatagrid deploy jqgrid

  • 0

I am using Zend Framework that’s why I decided to use “zfdatagrid deploy jqgrid” instead of using jqgrid straight away.
I want to have jqgrid with subgrid. Grid is shown ok, but when I click expand button then I get notice “Loading” but nothing happens. I have debugged that “subGridUrl” is called correctly, because debugger hit function where I should select data from MySQL for subgrid, and I tried to pass pure json response (instead of selecting from MySQL) but still subgrid is not shown. Maybe I don’t understand what response must be? My response:

<...>
$responce = new stdClass();
$responce->rows[0]['id']='0';
$responce->rows[0]['cell']=array('0','test1','123','1');
$responce->rows[1]['id']='1';
$responce->rows[1]['cell']=array('1','test2','321','2');
$j = json_encode($responce);
echo $j;
<...>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:18:42+00:00Added an answer on June 17, 2026 at 9:18 pm

    Sorry, my bad. But instead of deleting my question, I will explain my mistake incase somebody else will do the same…

    I made a mistake declaring “subGridModel”. Instead using array:

    $jqGrid->setJqgParams(array(
        'caption' => 'test report',
        <..>
        'subGrid' => true,
        'subGridUrl' => $this->view->url(array('controller'=>'report','action'=>'indexstoragebalancesubgrid'),'default', true),
        'subgridtype' => 'json',
        'loadonce' => false,
        // next line where problem fixed
        'subGridModel' => array(array("name" => array("ID", "Title", "Code", "Quantity"), "width" => array(10,55,200,80)))
        <..>
    ));
    

    I wrote string:

    'subGridModel'=>'[{name : ["ID", "Title", "Code", "Quantity"], width : [10,55,200,80]}]'
    

    And that’s why it did not work in javascript.

    By the way, you can see that I wrote array in array. That is because with one array ZFDataGrid generates such javascript:

    "subGridModel":{"name":["ID","Title","Code","Quantity"],"width":[10,55,200,80]}
    

    instead of this:

    "subGridModel":[{"name":["ID","Title","Code","Quantity"],"width":[10,55,200,80]}]
    

    It is important for jqgrid subgrid to work!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Zend framework, and most of the action controller that I have return
I have a domain that'll be using Zend Framework and I need to modify
I am using Zend Framework I have a form that allows me to create
I have a application built using Zend Framework. I have decided to go with
I'm trying to use zend framework in wordpress and have tried various methods using
I have a CMS application written using the Zend Framework that allows you to
I'm using the Zend Framework and I want to check that certain fields are
Using Zend Framework I want to use controllers stored in a directory which is
I'm working on a project that is currently using the Zend Framework 1.7.6, however
I have a PHP MVC application using Zend Framework. As presented in the quickstart,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.