can i set Row grouping functionality on button click event??

can i set Row grouping functionality on button click event??

jatin gajerajatin gajera Posts: 60Questions: 23Answers: 0

can i set Row grouping functionality on button click event??
please explain...

Answers

  • Dalex73Dalex73 Posts: 30Questions: 4Answers: 4

    Yes, just use

    oTable.rowGroup().dataSrc();
    oTable.rowGroup().enable().draw();

    just enter which column/data it should group on in the dataSrc and of you go, if you then want to disable it with a button just use

    oTable.rowGroup().disable().draw();

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin

    rowGroup().dataSrc() and rowGroup().enable() are the links.

    Allan

  • jatin gajerajatin gajera Posts: 60Questions: 23Answers: 0

    thanks @Dalex73 and @allan

  • jatin gajerajatin gajera Posts: 60Questions: 23Answers: 0

    but i want to apply this functionality on button click event???

    is it possibal??
    how can i assign this function to button?? allan

This discussion has been closed.