ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: ismail.siddiqui on December 01, 2015, 01:15:47 pm

Title: How to convert a column value as link (anchor) element.
Post by: ismail.siddiqui on December 01, 2015, 01:15:47 pm
I have project in which i have to show less data as search result with a column which has link for the details page. Pleas help me.

I have convert data coming from server into array of arrays into java-script array object and pass data to pqgrid which showing data but cant find anyway to insert link values.

Please help me its urgent.
Title: Re: How to convert a column value as link (anchor) element.
Post by: paramvir on December 01, 2015, 01:28:56 pm
It can be done with column.render callback.

Code: [Select]
column.render = function(ui){
  return '<a href= "some url" >'+ ui.cellData + '</a>';
}

Example on usage of column.render: http://paramquery.com/demos/render_cells
Title: Re: How to convert a column value as link (anchor) element.
Post by: ismail.siddiqui on December 01, 2015, 02:46:50 pm
Thanks for your reply. I have to check this with ASP MVC4.0.