PDA

View Full Version : Ext.data.Store datachanged event issue



tigran
22 Sep 2013, 6:29 AM
Ext.data.Store datachanged event is being called after using store.loadData, which is correct.
But why it's being called again (the datachanged event), when combo is being first expanded?

Using ExtJS 4.2.1

evant
22 Sep 2013, 1:20 PM
Because it's attempting to filter the store.

Filtering with an empty value is just as valid as anything else, for example if you already have a value in there and then backspace, you want to refilter to match the new value.

ram.pekam
24 Oct 2013, 6:33 AM
I am trying to upload image to JAVAServer, Following are the details :

I am using server : JAVA Spring with REST Services and Extjs 4.

I need to upload image using base64 to Server.

1. What are the best practices for uploading image to server ?

2. How to convert image to base64 string in extjs4 ?

3. How to submit form along with form data ?

With this I am able to hit server but every parameter is null i.e. no data is being transferred
var form = Ext.getCmp('member_form').getForm();


if (form.isValid()) // Validation
{
// communicating with server for registering member info
form.submit({
url : '/my/Test',
// standardSubmit: true,
method : 'POST',
waitMsg : 'Registring...',
success : function(form, o) {
console.log(form);
msg('Success', 'Processed file "'
+ o.result.file
+ '" on the server');
},
failure : function() {
alert('Registration failed...');
}
});
}

Please help me I am stucked at this point.