Author Topic: add a button to cell  (Read 379 times)

SDS

  • Newbie
  • *
  • Posts: 8
  • SDS
    • View Profile
add a button to cell
« on: June 01, 2024, 11:44:28 am »
I am trying to add a button to the first cell of each row in the grid. I referred to the other forum topics and tried to imitate the solution but doesn't work for me. the grid works fine untill I add render in the colmodel. please find attached the colmodel and error screen shot, please suggest if anything wrong with the render definition.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: add a button to cell
« Reply #1 on: June 03, 2024, 11:10:27 pm »
That's incorrect.

column.render needs to be a function itself or name of a function as string.

Please check the documentation with examples for column.render

https://paramquery.com/pro/api#option-column-render

SDS

  • Newbie
  • *
  • Posts: 8
  • SDS
    • View Profile
Re: add a button to cell
« Reply #2 on: June 09, 2024, 12:44:01 pm »
Solved, thanks. But I have another urgent query which I have raised in another post, regarding blank first column. please look into the same, thanks.