Hi
I have a list on which a data is fetched from server say
[{id: "39", tagname: "Seller"}, {id: "4", tagname: "Financier"}, {id: 57,tagname: "Builder"}, {tagname: "Broker"}]
The above example fetched 3 records having id as 39,4,57 with values 'Seller",Financial,Builder respectively, new tag was entered 'Broker" which was not part of the data.
On Selection Change event an ajax request was sent to server to get the new Id of "Broker" as 87,
i tried using setSelection (with all 4 records) but it is not working properly , please suggest, i need to set the selection of the magicsuggest with new id received from the server as so that when i use
getSelection(), it should returen with updated json object as
[{id: "39", tagname: "Seller"}, {id: "4", tagname: "Financier"}, {id: 57,tagname: "Builder"}, {id:87,tagname: "Broker"}]
where i am doing wrong