Need a special offer?Find out if your project fits.
+

adding checkbox and button with customizeCell

Answered
vasantjk asked on February 8, 2022

Hi team,
I am having question. The requirement is checkbox and button and pass it dynamically to the cells
/////input to cell grid
{
name:checkbox,
id:1}
{name:button,
id:1}
////
this will be the input to the cell.
now if i get the name as checkbox and button i have to add checkbox and button the customizecell and both checkbox and button should show the them in that grid.
what i am facing is when i give this i get only last one like only button is showing and the checkbox is mapped with the value but the checkbox is now showing how to achieve this one.

Dmytro Zvazhii created this ticket from #44159

4 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 10, 2022

Hello!

Thank you for writing to us.

We suppose that if you are adding a checkbox/button into the "id" column, it happens because of the same "id" values. 
Please see the following example with different "id" values: https://jsfiddle.net/flexmonster/w4ke3qmo/.

Hope this works fine for you.

Best Regards,
Maksym

Public
vasantjk February 10, 2022

thanks 
How do i add the functionality in react for this buttons i tried the add eventlistner but not able to pass the onchange method to it

Public
vasantjk February 10, 2022

i was adding new column and checkbox and this once it is mapped in datasource.data and the after that if i unselect the column name from the fields and then once it is unselected and selected again the add eventlistner started to work
i tried the reportcomplete but still it dosent render once it is mounted
can u help me solve this issues
 

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 11, 2022

Hi!

Thank you for your question. 
We have already answered your very similar query in this thread:
https://www.flexmonster.com/question/add-onchange-events-on-buttons-in-columns/

Please let us know if that answer is helpful.

Best Regards,
Maksym

Please login or Register to Submit Answer