Forum Xamarin.Forms

Is there a way to update the viewcell (height) once it is rendered?

Xami3Xami3 PKMember, University ✭✭✭
edited October 2017 in Xamarin.Forms

i am using listview with template selector, one template is for message and one template is for writing new comment. the data template selector works fine. i am using editor for writing new comment because we want multi line comments, which works fine too its height increases if i tap enter button on keyboard.

the only issue which i am facing is the listview Item height, it is not increasing while the editor grows in height and goes outside of the view, next listview item overlaps the editor. Although listview item height refreshes and shows full editor once it goes outside the screen.

i am setting ViewCell height manually and also firing the Grid's InvalidateMeasure() for the grid layout, but nothing helping. Any Ideas?

On android it works fine only facing it on ios.

Best Answer

  • Xami3Xami3 PKMember, University ✭✭✭
    Accepted Answer

    well i have achieved the required functionality for ios using custom renderer. what i have done is subclass viewcell and when text change for my item i call the UITableView begin and end updates methods.

Answers

Sign In or Register to comment.