CGridView update


I have JsTree :

<? $this->Widget('application.extensions.jsTree.CjsTree', array(





    'droppable' => "tree-drop",

    'multiple' => true,

    'deletable' => "all",

    'draggable' => "all" 




    "ondblclk"=>"js:function(NODE, TREE_OBJ) { refreshFilesGrid(NODE); }",



)); ?>

And I have GridView :


$this->widget('zii.widgets.grid.CGridView', array(






            'name'=>Yii::t('main', 'File name'),




            'name'=>Yii::t('main', 'Date'),

            'value'=>'date("d-m-Y H:i:s", $data->uploaded)',













And refreshFilesGrid function :

<script type="text/javascript">

  function refreshFilesGrid(node)


// Here is an javascript error showing: "$.param.querystring is not a function".

    $.fn.yiiGridView.update('files-grid', {


      url: 'ajax/getfiles/?folder_id',

      success:function() {






When I double clicking on tree node I need refresh gridview. How to do it?


Tried to bind click to links in tree :

Yii::app()->clientScript->registerScript('xxx', "

$(\"a[href='#']\").click(function() {

  $.fn.yiiGridView.update('files-grid', {



    success:function() {



    failure:function() {




  return false;



…but error ‘$.param.querystring is not a function’ still showing :(

$.param.querystring is called from the yiiGridView.update and is located in the

check your HTML source if you have the included…

1 Like

that’s it , thank you very much !

Seems reed1 has solved his issue. I have exactly same error and I’ve tried blocking and enabling “” and still the error presists.

If the is included then you may recreating the jQuery object after E.g. jQuery is loaded more than once…

Muchas Gracias! también tenia problemas con esto!


  1. Use chrome ctl + shift + I to debug and find the indeed error message

  2. check if related javascript are loaded

  3. check if the javascript files are loaded in right order

if you want to know how to use chrome for debugging, you can read how to debug Yii 400 Error using Chrome

thank you ,

but why wont Yii register the js file automatic ??!?!