Hi,
I want to add multiple items into jqxDropDownList without loop.
The addiItem example shown and as i tested with various ways, it is accepting only one record at a time to add into dropdown list.
I have one field called weeks and preparing JSON at server side.. below are my questions
1. I only have display member.. do i need to have value member as well?
var source = {
datatype: “json”,
datafields:
[
{ name: ‘weeks’ }
],
localdata: json
};
var
2. Server prepares JSON string and it looks like below, is it wrong way to prepare?
json = {weeks:”200101″},{weeks:”200101″},….. etc
$(“#jqxFromWeek”).jqxDropDownList(‘addItem’, json) – i wanted to add multiple weeks into dropdown list