jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox 1 json file to apply 2 combo

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • 1 json file to apply 2 combo #75270

    onesixx
    Participant
    [
    	{"Rows_warehouse":
    		[
    			{"warehouseid":"0","warehousename":"aaa"},
    			{"warehouseid":"9","warehousename":"bbb"},
    			{"warehouseid":"10","warehousename":"ccc"},
    			{"warehouseid":"12","warehousename":"ddd"}
    		]
    	},
    	{"Rows_product":
    		[
    			{"productid":"0","productname":"1111"}
    			,{"productid":"5","productname":"2222"}
    			,{"productid":"75","productname":"3333"}
    		]
    	}
    ]
    

    I have json file above.
    two comboBox (warehouse dropdown, product dropdown) use this json file.
    But each comboBox read the same file respectively.
    In other words, wwarehouse dropdown read the json and make the dropdowncombo and product dropdown read the same json and make the combo.

    I think there is a better way that one read make more than 2 combo.
    please help me.

    1 json file to apply 2 combo #75312

    ivailo
    Participant

    Hi onesixx,

    Try this demo. Here you have only one request to your data structure.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.