PDA

View Full Version : Problem with Drag&Drop with ItemSelector and Remote Store



caltheon
17 Jun 2010, 10:07 AM
I am having a problem with a simple ItemSelector widget and loading the data from a remote store. If I hard-code some data and build the ItemSelector using a store initialized with the hard-coded data, it works fine. If i try to use a remote store (either loaded by url or by an ajax call and calling store.loadData(jsonData), there is a problem. The grids appear fine, double clicking and arrow buttons work fine, but drag & drop is half broken. I can't Click & Hold and drag an entry, I must first click on the entry and then click again and hold and then it is draggable.

Any idea what might be causing this behaviour? Is there some call i need to make to the itemselector to have it rebuild it's drag&drop listeners or something?

caltheon
18 Jun 2010, 11:55 AM
Nevermind, I figured it out. Apparently you can't use the id: field of a store as the value property in a multiselect.