Posts Tagged ‘store update’

ExtJS 4 – replace data in an existing Store

May 18th, 2012 No comments

In the previous post shows how you can take data from the Store object. Now we will show how you can replace them with new values. Suitable if you have a combo box that needs to change in the list depending on some conditions.

The data you want to store in the Store shall have the following structure:

myData = [ ["1", "val1"] , ["2","val2"] ]

Data storage can be done in the following way:


Where the “fieldID” id form element ID that is assigned a Store object.

Categories: JavaScript Tags: ,