Remote paging not behaving properly after getting WarningOnDirty.

  1. #1

    Remote paging not behaving properly after getting WarningOnDirty.

    Hi,

    I am using WarningOnDirty to show warning message on remote pagination of grid pannel. But if user clicks on NO button and clicks on Save button to save data from grid, its showing next page no in footer bar of grid. On button click i am calling on controller's method to save data in database and that method returns updated data to refresh grid through json.

    .DirectEvents(de =>
    {
    de.Click.Url = (Url.Action("HandleChanges", "SetLaunchAttributes"));
    de.Click.EventMask.ShowMask = true;
    de.Click.ExtraParams.Add(new Parameter
    (
    "scenarioId",
    "Ext.getCmp('hdnScenarioId').getValue()"
    ));
    de.Click.ExtraParams.Add(new Parameter
    {
    Name = "data",
    Value = "#{storeLaunchAttributes}.getChangedData({skipIdFo rPhantomRecords: false})",
    Mode = ParameterMode.Raw,
    Encode = true
    });
    de.Click.Success = "success";
    })

    below code I have written in "success" method-

    var success = function (form, action) {
    if (action.result != undefined) {

    if (action.result.toString() == "true") {
    App.grdSetLaunchAttributes.getStore().warningOnDir ty = false;
    ResetDirty();
    RPShowMessage("@PR.LS.Common.Resources.LS.DataSave dMsg", "Success", "effect", "divStatus");
    App.grdSetLaunchAttributes.getStore().loadData(dat a);
    Ext.getCmp('grdSetLaunchAttributes').getStore().re load();
    App.grdSetLaunchAttributes.getStore().warningOnDir ty = true;
    }
    else {

    RPShowMessage(action.message.toString(), "Error", "effect", "divStatus");

    }
    }
    };

    Also, I wanted to change message and header of WarningOnDirty. How can I change that?
    Please help to resolve this. Thanks in advance.
    Last edited by PriceRightHTML5team; May 12, 2015 at 7:30 AM.

Similar Threads

  1. Replies: 6
    Last Post: Mar 31, 2014, 1:26 PM
  2. SqlDataSource remote paging
    By asics167 in forum 2.x Help
    Replies: 7
    Last Post: Oct 28, 2013, 12:57 PM
  3. Replies: 11
    Last Post: Jun 13, 2012, 4:53 PM
  4. Replies: 5
    Last Post: Feb 23, 2012, 8:00 AM
  5. [CLOSED] Adding Records in a Grid not updates the Paging informaton properly
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 02, 2011, 11:50 AM

Tags for this Thread

Posting Permissions