ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: miside on May 20, 2019, 07:10:38 pm

Title: How do I use format without ParamQuery Pro
Post by: miside on May 20, 2019, 07:10:38 pm
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?
Title: Re: How do I use format without ParamQuery Pro
Post by: paramvir on May 22, 2019, 06:47:20 pm
you could use column.render callback.