Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How can I dynamic swipe item SfDataGrid

$
0
0

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.

{
  "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"
            }
          ]
        }
      ]      
    }
  ]
}

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>