We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Swipe feature can not be use with Grid Template Column

Hi I`m currently facing a problem in using Grid Template Column together with Swipe feature, when I swipe the row it keep saying that "Exception has been thrown by the target of an invocation."

here is my code

<sfgrid:SfDataGrid x:Name="dataGrid"
                       ItemsSource="{Binding ItemsSource}">

      <sfgrid:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">

        <sfgrid:GridTemplateColumn HeaderText=""
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="*" />
                <Image Grid.Column="0"
                       Source="{Binding PatientPic, Converter={StaticResource Convert}}"/>
                <Label Grid.Column="1"
                       Text="{Binding QueueEntryDto.PatientName}" TextColor="Black"
                       XAlign="Center" YAlign="Center"/>
        <!--<sfgrid:GridTextColumn MappingName="Mrn" />
        <sfgrid:GridTextColumn MappingName="PatientName" />
        <sfgrid:GridTextColumn MappingName="VisitId" />-->

      <!--Left Swipe Template-->
          <Grid x:Name="leftSwipe"  BackgroundColor="#009EDA">

            <Label Grid.Column="1"
                   Text ="Call"
                   LineBreakMode ="NoWrap"
                   TextColor ="White" >
                        NumberOfTapsRequired="1" />


      <!--Right Swipe Template-->
          <Grid  BackgroundColor="#1AAA87">

            <Label FontSize="15"
                   HorizontalTextAlignment ="Center"
                   Text ="Attend"
                   TextColor ="White"
                   VerticalTextAlignment ="Center"
                   LineBreakMode ="HeadTruncation" >



Attachment: Views_16bf672f.rar

1 Reply

VP Vimal Prabhu Manohkaran Syncfusion Team May 4, 2016 07:27 PM UTC

Hi Yim Suet Joe, 
Thank you for using Syncfusion Products. 
We were unable to reproduce the reported issue from our side. We have attached the working sample which we created based on your codes and a video reference of the sample. 
In case, if the issue still persists at your side, please do revert us with a modified sample to reproduce the issue with clear replication procedure. 
Vimal Prabhu

Live Chat Icon For mobile
Up arrow icon