<Dgrid:SfDataGrid.CaptionSummaryTemplate>
<DataTemplate>
<Grid BackgroundColor="#f7f7f7" Padding="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Source="GroupExpander.png" Aspect="AspectFit">
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/>
</Image.GestureRecognizers>
</Image>
[C#]
private async void TapGestureRecognizer_Tapped(object sender, EventArgs e)
{
var group = (sender as Image).BindingContext as Group;
if (group != null)
{
if (group.IsExpanded)
{
(sender as Image).Source = "GroupCollapser.png";
dataGrid.CollapseGroup(group);
}
else
{
indicator.AnimationType = AnimationTypes.SlicedCircle;
indicator.IsVisible = true;
indicator.IsBusy = true;
(sender as Image).Source = "GroupExpander.png";
dataGrid.ExpandGroup(group);
await Task.Delay(1000);
indicator.IsBusy = false;
indicator.IsVisible = false;
}
}
} |
GroupingMode="Multiple" |
Hi,I have already rise the query for this. now i am attaching the sample file,take and look at it and please resolve that issues.1. Actually when i am trying to expand, it take more time to show the records. i have implemented loader(indicator) which you people provided.but no use.when tap(on group for expand) even loader also not working properly(when click on it, it appears the loader too few sec later )2. if scroll the grid horizontally ,automatically the few of header column names are going to hide.(no need to hide the columns)3. right now expand/collapse icons are in right side. i need in left side.please update this 3 requirements.
Attachment: DemoPro1_a295073.zip