Opened 6 years ago
Closed 6 years ago
#18530 closed defect (invalid)
update dojo FilteringSelect in dojo datagrid when onchange of another FilteringSelect
Reported by: | amlesh | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | General | Version: | 1.10.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
i am inserting datagrid row multiple times and in every row i have three FilteringSelect? frist is country second is state third is city onChange of country i got state list and want to insert in state FilteringSelect?
function setDocketGridDataCallBack(response) {
var countryList = response.countryList; var stateList = response.defaultStatesList; var stateListJsonData = []; var countryListJsonData =[]; var cityListJsonData = [];
var item = {}; item.id = "0"; item.name = "--Select--"; item.selected = true; stateListJsonData.push(item); if(stateList){
for(var i=0; i < stateList.length; i++ ) {
item = {}; item.id = stateList[i].code; item.name = stateList[i].state; stateListJsonData.push(item);
};
};
var stateListData = {
identifier: 'id', label:'name', items: stateListJsonData
};
var stateListStore = new dojo.store.Memory({
data: stateListData
});
var item = {}; item.id = "0"; item.name = "--Select--"; item.selected = true; countryListJsonData.push(item); if(countryList){
for(var i=0; i < countryList.length; i++ ) {
item = {}; item.id = countryList[i].code; item.name = countryList[i].country;
countryListJsonData.push(item);
};
};
var countryListData = {
identifier: 'id', label:'name', items: countryListJsonData
};
var countryListStore = new dojo.store.Memory({
data: countryListData
});
var item = {}; item.id = "0"; item.name = "--Select--"; item.selected = true; cityListJsonData.push(item);
var cityListData = {
identifier: 'id', label:'name', items: cityListJsonData
};
var cityListStore = new dojo.store.Memory({
data: cityListData
});
docketGridData = {
identifier : 'id', label : 'id', items : []
};
require([ "dojo/_base/declare", "dojo/_base/lang", "dojo
Change History (2)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please post questions to the dojo-interest mailing list. Although to be honest, I'm not even sure what your question is.
function setDocketGridDataCallBack(response) {
};