Expand and collapse the list view grids


#1

Hi,

I am using NativeScript with JS. I am new to NS and mobile development as well.

I am trying to set height of an item of list view to 60. And if some large text does not fit into it then I need to expand it ontap event to cover the text and collapse back to 60px when I am done with reading it and tap again. How can I achieve this in NativeScript because It is easy in web development. I couldn’t find something which could help me.

Thanks.


#2

I am trying to do the same, label inside list view setting the textWrap true/false on item tap, but the view does not refresh. So I am still looking for a better solution. Did you find any?


#3

@vikrams Have your tried calling listView.refresh() after making changes?