How can I dynamic swipe item SfDataGrid

Hi,
I am using syncfusion sfdatagrid plugin in Xamarin forms. I want to make the Swipe feature dynamic. According to the json file below. How do I set up a dynamic swipe structure that corresponds to the properties. if there is a logical error in the json file, we can update according to your suggestion

{
  "serviceItems": [
    {
      "id": "79471",
      "ref": "7",
      "properties": [
        {
          "icon": "white",
          "field1": "text",
          "field2": "19.03.2020",
          "field3": "19.03.2020 12:14:00",
          "swipeItems": [
            {
              "swipe1": "add",
              "swipe2": "update",
              "swipe3": "delete"
            }
          ]
        }
      ]     
    },
    {
      "id": "79597",
      "ref": "7",
      "properties": [
        {
          "icon": "red",
          "field1": "sample",
          "field2": "26.03.2020",
          "field3": "26.03.2020 19:00:36",
          "swipeItems": [
            {
              "swipe1": "delete",
              "swipe2": "update",
              "swipe3": "add"
            }
          ]
        }
      ]      
    },
    {
      "id": "79591",
      "ref": "7",
      "properties": [
        {
          "icon": "red",
          "field1": "asdf",
          "field2": "26.03.2020",
          "field3": "26.03.2020 19:00:36",
          "swipeItems": [
            {
              "swipe1": "delete",
              "swipe3": "add"
            }
          ]
        }
      ]      
    }
  ]
}



1 Reply

SS Sivaraman Sivagurunathan Syncfusion Team April 13, 2020 01:24 PM UTC

Hi Tayyip, 
 
Thanks for using Syncfusion controls. 
 
We have checked your query. we have suspect that the your requirement is load dynamic swipe template. You can achieve your requirement by using DataTemplateSelector. Please refer the below UG link for more reference.  In case your requirement is other than this please revert us with clear requirement details with sample or video. 
 
 
Regards, 
Sivaraman S 
 


Loader.
Up arrow icon