BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Khurram,
Thanks for contacting Syncfusion support.
We have analyzed your query. You must define the MappingName
for the GridTemplateColumn to perform the Sorting, Grouping and Filtering
operations. If your application doesn’t have any bounded property to define the
MappingName for the GridTemplateColumn then you can use GridUnBoundColumn
instead of GridTemplateColumn to achieve your requirement. For
GridUnBoundColumn you can define any string value as MappingName.
Following code snippet to illustrate how to use the GridUnboundColumn,
Code snippet[Xaml]:
<syncfusion:GridUnBoundColumn
AllowSorting="True" HeaderText="Action" MappingName="Property">
<syncfusion:GridUnBoundColumn.CellTemplate>
<DataTemplate>
<Button Width="120"
Height="45"
HorizontalAlignment="Left"
Background="#3E61B9"
BorderBrush="Black"
BorderThickness="1"
Command="{Binding Path=CancelCommand}"
CommandParameter="{Binding EmployeeCountry}"
Content="Cancel"
Foreground="White" />
</DataTemplate>
</syncfusion:GridUnBoundColumn.CellTemplate>
</syncfusion:GridUnBoundColumn> |
Please let us know if you need further assistance.
Thank you,
Jai Ganesh S