Group header image is not clickable

I have a group header template, with a label and image (custom control). Group header is displayed correctly but image is not clickable (for expanding or collapsing), and label is. Is there a way to make it work ?

5 Replies

JN Jayaleshwari N Syncfusion Team August 9, 2018 12:11 PM UTC

Hi Evaldas, 

Thanks for contacting Syncfusion support. 

We have checked the reported query from our end. We would like to know that when we load image in Groupheader template using custom control group gets expanded and collapsed as expected when image gets tapped in our sample. We have attached the sample for your reference. 

Please refer the sample from the below link. 



Please let us know whether sample meets your requirement. 

Regards, 
Jayaleshwari N. 



EK Evaldas Krusna August 9, 2018 12:54 PM UTC

Hello Jayaleshwari, 

As i said before were using custom image control for displaying "svg" vector icons. Tried going through parents till "GroupHeaderItem" and using that for expand or collapse, but after few clicks it throws "System.ArgumetOutOfRangeException" and it doesnt do anything besides changing icon to expanded or collapsed state.

By the way im creating empty items just to display groups , after that "CollapseAll" doesnt work
(after expand click it should load other items), tried iterating through groups and collapsing them one by one, but still icon shows expanded after few clicks (when it willl go to expanded again) it loads items.


JN Jayaleshwari N Syncfusion Team August 10, 2018 12:35 PM UTC

Hi Evaldas, 
 
Sorry for the inconvenience caused. 
 
We have checked  the reported query from our end. We have loaded custom image and group items expands and collapsed normally, group items can be expanded and collapsed by setting AllowGroupExpandCollapse as true. You can’t expand and collapse when as false. You can update custom label when group are expanded and collapsed. We have attached the sample with expand collapse group header with image custom control. 
 
Please find the sample from below link. 
 
 
Please let us know whether sample meets your requirement. 
 
Regards, 
Jayaleshwari N 



EK Evaldas Krusna August 13, 2018 09:15 AM UTC

I have attached a sampled regarding bug.

Attachment: SfListViewSample_cd044565.rar


JN Jayaleshwari N Syncfusion Team August 14, 2018 09:40 AM UTC

Hi Evaldas,  
  
We have checked the attached sample from our end. We would like to let you know that when SvgImage derived from Frame, touch will not pass to image unless you set InputTransparent as true. We have attached the modified sample and let us know whether sample meets your requirement.   
Please find the sample from below link.  
  
  
public class SvgImage : Frame  
{  
  public SvgImage()  
    {  
        InputTransparent = true;  
    }  
 
  
Please let us know if you require any further assistance.  
  
Regards,  
Jayaleshwari N  


Loader.
Up arrow icon