Android- Custom itemtemplate binding problem on first time extending items

I have created such combox with an image and when page is loaded first time, i expand combobox and result is as below
I have attached a sample project. please run it and see how it looks like when you click the combobox first time.



if i close and expand again 2nd and more, it looks fine as below. but first time is always problem




4 Replies

EM Emil August 2, 2018 09:33 PM UTC

Repro in the attachment


Attachment: ComboBoxTrans_f13e104a.zip


PA Paul Anderson S Syncfusion Team August 3, 2018 06:09 AM UTC

Hi Emil, 
 
Greetings from Syncfusion. 
 
We have analyzed the reported requirement “Android- Custom itemtemplate binding problem on first time extending items”. In that given sample WidthRequest property is not set so the items are hidden initially for the SVGCachedImage which takes incorrect space. We have modified the given sample by adding the given line to get the requirement achieved. Please have the sample from the following link 
 
<ffimageloadingsvg:SvgCachedImage Aspect="AspectFit"  Source="{Binding Image}" HeightRequest="30" WidthRequest="30" /> 
 
 
Please let us know if you have any other concern. 
 
Regards, 
Paul Anderson 



EM Emil August 3, 2018 04:45 PM UTC

Hi,

thank you, i havent recognized widthrequest. i simply reused the datatemplate previously was from sflistview. but this works fine.



PA Paul Anderson S Syncfusion Team August 6, 2018 04:18 AM UTC

Hi Emil, 
  
Thanks for the update. 
  
We are glad that you have achieved your requirement. Please get in touch if you required further assistance. 
  
Regards, 
Paul Anderson 


Loader.
Up arrow icon