I need project DDL To filter Scope DDL then Scope Filter ProcessDDL then process Will Filter three DDL (Trade,Zone and Revision) when i used the cascaded property it doesnt work
// Sample dropdown’s data
var projectData = [
{ id: 1, text: "Project1", value: "Project1" },
{ id: 2, text: "Project2", value : "Project2" }
];
var scopeData = [
{ id: 1, parentID: "Project1", text: "Scope1", value: "Scope1" },
{ id: 2, parentID: "Project2", text: "Scope2", value: "Scope2" },
{ id: 1, parentID: "Project1", text: "Scope3", value: "Scope3" },
{ id: 2, parentID: "Project2", text: "Scope4", value: "Scope4" }
];
var processData = [
{ parentID: "Scope1", text: "Process 1", value: "Process 1" },
{ parentID: "Scope2", text: "Process 2", value: "Process 2" },
{ parentID: "Scope3", text: "Process 3", value: "Process 3" },
{ parentID: "Scope4", text: "Process 4", value: "Process 4" },
]; |
var columns = [
//…
{
field: "project", headerText: "ProjectID", editType: "dropdownedit", dropdownData: projectData, editParams: {fields: { text: "text", value: "value" }, change: "projectChange"}
},
{
field: "scope", headerText: "ScopeID", editType: "dropdownedit", dropdownData: scopeData, editParams: {
fields: { text: "text", value: "value" }, beforePopupShown: "updateScopeData", change: "scopeChange"
}
},
{ field: "process", headerText: "ProcessID", editType: "dropdownedit", dropdownData: processData, editParams: { fields: { text: "text", value: "value" }, beforePopupShown: "updateProcessData" } },
]; $scope.columns = columns; |