Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - miside

Pages: [1]
1
I want use format, like formatter in easyui grid:
$('#dg').datagrid({
   columns:[[
      {field:'userId',title:'User', width:80,
         formatter: function(value,row,index){
            if (row.user){
               return row.user.name;
            } else {
               return value;
            }
         }
      }
   ]]
});
can you give me some advice to achieve this?

2
Thank you for your reply
I hava other question, When I click on the other columns in the row , can I select checkbox or unselect checkbox,and select/unselect current row.
I try to do this,then it can select row when I click current row:
cellClick:function(event,ui){
   var checkBoxCell = $( ".selector" ).pqGrid( "getCell", { rowIndx: ui.rowIndx, dataIndx: "checkBox" } );
   if(!ui.rowData.checkBox){
       $(checkBoxCell[0].children).trigger("click");
   }
}
but when I click on the current row, I want to unselect the previous row.
Hope you can help me, thanks a lot.

3
sorry,because I use free version ,I check that the API doesn't have this property,so how do I implement this

4
like
$("#pqGrid").pqGrid({minHeight:200,maxHeight:400});
so when I set minHeight and maxHeight, pqGrid's height between 200px and 400px

Pages: [1]