Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82439

How to populate multiple dependent and cascading select fields in Editor

$
0
0

I want to edit my artists data using datatables editor component,
each artist has nationality1 and nationality2 (both select tag but independent)
born country and born city (cascade select options)
die country and die city (cascade select options)

my Json data is:

{
    "data": {
        "countries": [
            {
                "id": 3,
                "isoCode2": "RU",
                "name": "Russia",
                "nationality": "Russian",
                "cities":[
                    {"id":10, "name":"city1"},
                    {"id":11, "name":"city1"},
                    {"id":12, "name":"city1"}
                ]
            }
            //...
        ],
        "artists": [
            {
                "id": 1,
                "firstName": "sampleName",
                "lastName": "sampleFamily",
                "gender": "male",
                "nationality1Id": 1,
                "nationality2Id": 1,
                "bornYear": 1931,
                "bornCountryId": 1,
                "bornCityId": 10,
                "dieYear": 2010,
                "dieCountryId": 7,
                "dieCityId": 24
            }
            //...
        ]
    }
}

Viewing all articles
Browse latest Browse all 82439

Trending Articles



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