Dirty warnings with Two GridPanels

  1. #1

    Dirty warnings with Two GridPanels

    Hi,

    In relation with this thread: Save data from two GridPanels


    In my MVC application I need to show two editable grids and clear dirty warnings on both grids where changes are saved. I perform save operation with a DirectEvent in just one server call, so at the moment I'm not using UpdateProxys in my stores.

    I don't know how to return a ConfirmationList in this scenario, so is there some way to clear all dirty warnings at success save event?

    Thanks in advance,

    Kings.
  2. #2
    Hi again.

    Well, I just try this to solve the problem:

     
    <ext:Button ID="btnSave" runat="server" Icon="Disk" Text="Save">
    <DirectEvents>
    <Click Url='<%# Url.Action("Save") %>' 
    AutoDataBind="true" 
    Success="#{Store1}.commitChanges(); #{Store2}.commitChanges();">
    <ExtraParams>
    <ext:Parameter Name="GridPanel1" Value="Ext.encode(#{GridPanel1}.getRowsValues({selectedOnly : false}))" Mode="Raw" />
    <ext:Parameter Name="GridPanel2" Value="Ext.encode(#{GridPanel2}.getRowsValues({selectedOnly : false}))" Mode="Raw" />
    </ExtraParams> 
    </Click>
    </DirectEvents> 
    </ext:Button>

Similar Threads

  1. Store - Determine if dirty?
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Dec 02, 2010, 1:29 PM
  2. How to set Grid record dirty?
    By speddi in forum 1.x Help
    Replies: 0
    Last Post: Jul 16, 2010, 8:47 PM
  3. [CLOSED] [1.0] Major breaking changes without any warnings
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 26, 2010, 4:14 PM
  4. Marking all records as dirty in a grid
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: May 10, 2010, 11:35 PM
  5. Finding dirty rows in a gridpanel
    By Kamal in forum 1.x Help
    Replies: 2
    Last Post: Aug 16, 2009, 9:51 AM

Posting Permissions