[CLOSED] Server Exception in RowEditor

  1. #1

    [CLOSED] Server Exception in RowEditor

    Hi,

    In a maintenance view of our MVC application we are using a RowEditor. When we edit a row and accept changes RowEditor hides, but we need to perform data validation according to our domain logic. So, when a validation exception is thrown from server side, user changes are invalid but as RowEditor is hidden, invalid data is shown in the row.

    Is possible to avoid this behaviour and remained RowEditor opened since server side code success?

    At the moment, we are using more or less this client code after accept changes:

            Ext.Ajax.request({
                url: '/Controller/Save/',
                method: 'POST',
                params: Ext.urlEncode(store.data),
                success: function (result, request) {
    
                    var jsonResult = Ext.decode(result.responseText);
    
                    if (jsonResult.success == true) {
    
                        //Hide RowEditor here and perform some other stuff
                    }
                },
                failure: function (result, request) {
    
                    Ext.Msg.show({
                        title: 'Exception',
                        msg: Ext.decode(result.responseText).extraParams.msg,
                        buttons: Ext.Msg.OK,
                        icon: Ext.Msg.ERROR
                    });
                }
            });
    Last edited by Daniil; Aug 02, 2011 at 1:54 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, there is no such functionality.

    I'd suggest you to investigate RowEditor.js to consider a possible override:
    <SVN Ext.Net folder>\Ext.Net\Build\Ext.Net\ux\plugins\roweditor\roweditor.js
  3. #3
    Ok,

    We will try to create an extended RowEditor...

    Regards.

Similar Threads

  1. Cant use Inline Server Tags in server markup
    By tuananhdnx in forum 1.x Help
    Replies: 1
    Last Post: Dec 04, 2011, 11:20 PM
  2. Replies: 1
    Last Post: Sep 21, 2011, 11:56 AM
  3. [CLOSED] TabPanel exception
    By moth1 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 11, 2011, 11:55 PM
  4. Replies: 7
    Last Post: May 21, 2011, 7:43 AM
  5. [CLOSED] AjaxEvents and Exception
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 10, 2008, 7:37 AM

Posting Permissions