Hallo
I'm using PHP language programming. I'd like to make an ajax drop down. Only data "Locations" belongs to industry "Crumb Rubber" comes out when I chose "Crumb Rubber" in industry drop down. You can see the image on attachment.
Here is my code :
$(function ()
{
var industry = <?= $industry ?>;
var location_ = <?= $location ?>;
$("#gridContainer").dxDataGrid({
…
{
dataField: "industry_id",
caption: "Industry",
width: 125,
validationRules: [
{ type: "required" },
],
lookup: {
dataSource: industry,
displayExpr: "name",
valueExpr: "id"
}
},
{
dataField: "location_id",
caption: "Location",
width: 125,
validationRules: [
{ type: "required" },
],
lookup: {
dataSource: location_,
displayExpr: "name",
valueExpr: "id"
}
},
How and where should I put a syntax to call data "Location" related to data "industry" ?
Thank you