SFExpander is not showing content some times in one click.

HI Team,

I am working on SFExpander with SFListView. My scenario is to implement the SFExpander inside the SFListView for that I implemented code with ExtendedExpander also but the expander is not Opening the Content Fully. 

The user wants to click two times to open the content fully(some times only this issue occurs).

I took the screenshots and attaching to it with the sample also.

I tried to implement the below link code to perform Expander scrolling.

https://www.syncfusion.com/kb/12159/how-to-bring-the-entire-item-to-view-when-the-expander-sfexpander-is-expanding-in-xamarin

but it is also not working can you please check it and let me know what is the problem on it.

I attached the zip file please find the attachment 

Thank you.


Attachment: Test_1f57b6c3.zip

1 Reply 1 reply marked as answer

SV Suja Venkatesan Syncfusion Team July 19, 2021 12:36 PM UTC

 
Hi Praveen, 
  
Thank you for contacting Syncfusion support. 
  
We checked the reported Issues 
  
Regarding issue “Expander is not opening content Fully” 
The reported occurs due to setting auto row height to expander content. So you have to set HeightRequest to label or set row height as like below code snippet. 
Code snippet: 
  
 
<local:ExtendedExpander.Content>     
<pancake:PancakeView CornerRadius="0,0,20,20" BackgroundColor="Gray">                  
<Grid RowDefinitions="40,40,40,40,40" Padding="10" > 
<Label /> 
 
  
  
Please refer to the following  documentation expander with  Xamarin.Forms.pancakeview: 
  
Regarding issue “Expander Scrolling not working 
  
You bind the IsExpanded property in two way binding mode with IsExpanded bool value , but there is no definition for binded IsExpanded in ViewModel class . You have to define the IsExpanded binding property 
as like below code snippet. 
  
Code snippet: 
private bool isExpanded; 
    public bool IsExpanded 
    { 
        get { return this.isExpanded; } 
        set 
        { 
            this.isExpanded = value; 
            this.RaisedOnPropertyChanged("IsExpanded"); 
        } 
    } 
Please refer to the following documentation to bring entire expander when loaded in the listview. 
  
We have modified your sample and attached the workable sample in the following link for your reference. 
  
Please let us know if you need further assistance. 
  
Regards, 
Suja V. 
 


Marked as answer
Loader.
Up arrow icon