[CLOSED] Store exception event

  1. #1

    [CLOSED] Store exception event

    Hello:

    I noticed that in the ExtJs 4.1 docs (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Store) there is no Store exception event, the exception event belongs actually to the store AjaxProxy (I am using an AjaxProxy and see this: http://docs.sencha.com/ext-js/4-1/#!...ata.proxy.Ajax). However, Ext.Net contains an exception event whose handler can be set via the store.Listeners.Exception property.

    1. If I use store.On('exception', ....), does it work correctly as well as an alternate method to setting the handler via store.Listeners.Exception? I didn't look at the code but I assumed that it does and Ext.Net does some magic to wire this event properly.

    2. I noticed that the Ext.Net c# object AjaxProxy does not support the On methods way of setting the event listeners. Why is that?

    Thanks
    Last edited by Baidaly; Apr 07, 2013 at 1:58 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Yes, Ext.NET overrides AbstractStore to add some functionality including exception event.

    1. If I use store.On('exception', ....), does it work correctly as well as an alternate method to setting the handler via store.Listeners.Exception? I didn't look at the code but I assumed that it does and Ext.Net does some magic to wire this event properly.
    Yes, you can use both approaches to add event listeners.

    2. I noticed that the Ext.Net c# object AjaxProxy does not support the On methods way of setting the event listeners. Why is that?
    AjaxProxy doesn't have On method because it's not inherited from Observable class. You should use Listeners to add events.
  3. #3
    Thank you. You can close the thread.

Similar Threads

  1. Replies: 10
    Last Post: Oct 01, 2012, 12:52 PM
  2. [CLOSED] Store Exception Handling
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 19, 2011, 3:35 PM
  3. [CLOSED] [1.0] How to stop bubbling of store's exception event?
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 24, 2010, 8:25 PM
  4. store load exception bad response
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Jan 12, 2010, 5:45 AM
  5. [CLOSED] MultiSelect throwing an exception during Ajax event
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 19, 2008, 12:07 PM

Tags for this Thread

Posting Permissions