Hi guys Firstly, I wanna display the data from db through
Cgridview
with Pagination.and I did it.
Now I have to provide
select
box that user can select the
pagesize
for the
cgridview
.And I did the following
CHtml::dropDownList('pageSize',$pageSize,array(5=>5,10=>10,20=>20,50=>50,100=>100),
array('class'=>'adm-srchdrp','style'=>'padding:2px;height:26px;width:95px',
'prompt'=>'PageSize',
'onchange'=>"$.fn.yiiGridView.update('family-record-grid',
{
type:'POST',
url:$(this).attr('href'),
data:{pageSize:this.value },
success:function(data) {
$.fn.yiiGridView.update('family-record-grid');
}
})";
));
but when i select the
pagesize
from
select
box …it shows the error as
$.param.querystring
is not a function in console…
where I did mistake ? please suggest me in the right way…thanks for reading…