Aug 11, 2011, 8:29 PM
[CLOSED] reload store and grid on client side
How can I reload store on client side?
When I submit something, it call ajax to update database.
So store and grid need to be updated right after updating database.
Why following is not working?
When I submit something, it call ajax to update database.
So store and grid need to be updated right after updating database.
Why following is not working?
<script type="text/javascript">
function updateChat(msg) {
$.ajax({
type: "post",
url: '<%= Url.Action("UpdateChat", "Mshw")%>',
data: { msg: msg },
success: function (ret) {
Ext.Msg.alert('Submit', ret);
},
error: function () {
Ext.MessageBox.alert('Error', 'Error detected during updating msg.');
}
});
var store = Ext.getCmp("chatStore");
store.reload();
}
</script>
I'm mainly using MVC and JQuery.
Last edited by Daniil; Aug 15, 2011 at 4:02 PM.
Reason: [CLOSED]