tableviewrow hasChild property usage

You must Login before you can answer or comment on any questions.

Hi I set the hasChild Property to true to a row of the table.I want to add options to the hasChild property.. Plz anyone tell me How to do that? Thanks in Advance

1 Answer

capture the click event on the table object and then build your user interfarce

table.addEventListener('click', function(e) {
    if (e.rowData.hasChild){
        //do whatever you need
    }
}
take a look to the KitchenSink table examples

— answered 2 years ago by Javier Rayon
answer permalink
1 Comment
  • Thank you for giving answer.it was helpful.can we add option to the hasChilds.like when we click the arrow it has to show 'Edit' and 'Delete'.Give me one Example for that.

    — commented 2 years ago by Gopinath Chokkarapu

Your Answer

Think you can help? Login to answer this question!