Author Topic: How to convert a column value as link (anchor) element.  (Read 3070 times)

ismail.siddiqui

  • Newbie
  • *
  • Posts: 7
    • View Profile
How to convert a column value as link (anchor) element.
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to convert a column value as link (anchor) element.
« Reply #1 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

ismail.siddiqui

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: How to convert a column value as link (anchor) element.
« Reply #2 on: December 01, 2015, 02:46:50 pm »
Thanks for your reply. I have to check this with ASP MVC4.0.