Author Topic: Remove Rendering from Cell  (Read 3016 times)

sidads

  • Newbie
  • *
  • Posts: 11
    • View Profile
Remove Rendering from Cell
« on: February 18, 2014, 12:51:08 pm »

Hello ParamQuery Experts,

I have a scenario when grid is loaded for first time I will render a cell to show a Button element based on some conditions, but later when User clicks on the button, the button click makes some calculations and returns the value and I need to replace the rendered button with the calculated value.

Please advise how to remove button rendering from cell and make it regular cell with value in it.

Any help/advise is much appreciated.

Regards,
Adarsh

sidads

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Remove Rendering from Cell
« Reply #1 on: February 18, 2014, 02:09:18 pm »

I got it working.. and below is what I did,

Instead of explicitly removing the Rendering, I simply updated the DataModel Data with calculated value for cell where I had button element rendered and then called Grid Refresh which automatically invoked the Render callback function but now data is available so it automatically removed the Button element.

Although it works,  just wanted to know if this is the right way of doing it, if not please advise the correct technique

Regards,
Adarsh