Dec 04, 2012, 11:54 PM
-
-
Dec 05, 2012, 4:34 AMHello!
To do this you can try to handle exceptions:
Razor:
Controller:.Proxy(proxy => proxy.Add(Html.X().AjaxProxy() .Listeners(l => { l.Exception.Handler = "eval(Ext.decode(response.responseText).script)"; }) .Url(Url.Content("~/Test/AjaxSearch/")) .Reader(reader => reader.Add(Html.X().JsonReader() .Root("data") .TotalProperty("total"))))) .Parameters(param => param.Add(Html.X().StoreParameter() .Name("JSONFilters") .Value("getSearchFilters()") .Mode(ParameterMode.Raw) .Encode(true) ))
if (!IsRequestSuccess) // Simulation Error { X.Msg.Notify("Title ", "A problem has been encountered and recorded. Please reference Id 1221 when contacting support.").Show(); return new DirectResult() { ErrorMessage = "Exception" }; }
Similar Threads
-
[CLOSED] [RAZOR] Binding with complex types
By mcfromero in forum 2.x Legacy Premium HelpReplies: 7Last Post: Aug 07, 2012, 6:53 PM -
[CLOSED] Form.submit - returned message: When run in sourcecode, works fine. After compiled, don´t works
By supera in forum 2.x Legacy Premium HelpReplies: 24Last Post: Aug 06, 2012, 11:26 AM -
[CLOSED] Razor, X.Msg.Notify during a DirectEvent and ResourceManager
By anup in forum 2.x Legacy Premium HelpReplies: 6Last Post: May 11, 2012, 8:17 PM -
extjs form submission error.....action.result undefined
By wilbur60 in forum 1.x HelpReplies: 0Last Post: Mar 02, 2011, 4:16 PM -
[CLOSED] [1.0] Result message of HttpWriteProxy
By sidinwillis in forum 1.x Legacy Premium HelpReplies: 1Last Post: Nov 05, 2010, 8:27 PM