1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
    INYVDK is on a distinguished road

      0  

    Default Store Proxy error handling

    Store Proxy error handling


    Hi,
    I'm using proxy in my store to read data through a ASP.Net method in controller class.This method is returning json data or exception details if any error encountered.I need those errors to be captured in my ExtJs grid and show appropriate message to end user.for example if database server is disconnected ,a message is displayed as 'Database unavailable for grid' instead of just loading the grid withoud any data.

    Regards,
    Vivek

  2. #2
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    133
    Vote Rating
    12
    chamacs will become famous soon enough

      0  

    Default


    The Proxy has an 'exception' listener that can be used for handling the displaying of error messages. On the reverse side, the Store 'write' listener can be used to handle success messages.

Thread Participants: 1