I need to add a different button to rows if the row group has two or more rows ?
I need to add a different button to rows if the row group has two or more rows ?
usbherath
Posts: 10Questions: 4Answers: 0
I need to add buttons to all rows and add a different button if the row group has two or more rows. How can I do it?
This discussion has been closed.
Answers
You could use
columns.render
for each row, androwGroup.startRender
orrowGroup.endRender
for the group.If that doesn't answer the question, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Here is my code
I have added live datatable here,
http://live.datatables.net/lamileru/2/
I need to add a select button if two or more rows in a group.
Yep, you were close, it just needed that check added: http://live.datatables.net/bixuraqa/1/edit
Colin
Thanks for your answer, is it possible to add a diffrent button to each row that include two or more rows in row groups instead of remove button?
You can add any button that you want, that example is just showing you how to do it. I did that remove button as it was a copy&paste of your existing button.
Colin
I really need to get output like this image
OK, can you update my example to show us what you've got and explain why it isn't working. It's beyond the scope of the support here to code it all for you,
Colin