View Full Version : multiselect-demo.html IE error

12 Nov 2009, 4:23 AM

ItemSelector sample not working properly(problem in IE browser). Please open sample in IE and follow steps as indicated under to reproduce the error.

Steps to recreate:

1) Open ext-3.0.0\examples\multiselect\multiselect-demo.html in IE. As per sample initially we have one item in selected list.

2) Now drag drop one item from available to selected list.

3) Click on the dropped item. IE shows following error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 12 Nov 2009 12:17:03 UTC

Message: 'this.store.getAt(...)' is null or not an object
Line: 231
Char: 13
Code: 0
URI: file:///F:/Assets/ext-3.0.2%202/ext-3.0.2/examples/ux/MultiSelect.js
But same works fine on other browsers.

How can I remove this error?

Waiting for your response.

12 Nov 2009, 5:04 PM
Any update on this. Waiting for yor response.~o)


16 Nov 2009, 2:37 AM
What could be the problem with this.

* Returns an array of data values for the selected items in the list. The values will be separated
* by {@link #delimiter}.
* @return {Array} value An array of string data values
getValue: function(valueField){
var returnArray = [];
var selectionsArray = this.view.getSelectedIndexes();
if (selectionsArray.length == 0) {return '';}
for (var i=0; i<selectionsArray.length; i++) {
alert("selectionsArray[i] ="+selectionsArray[i]);
returnArray.push(this.store.getAt(selectionsArray[i]).get((valueField != null) ? valueField : this.valueField));
return returnArray.join(this.delimiter);

In the above case alert displays selectionsArray[i] as undefined in IE and firefox too.

firebug error code

this.store.getAt(selectionsArray[i]) is undefined
Line 231
Line 231

I checked the same with extjs 3.0.0 and 3.0.2 and same error is occuring in both.