Cant Get Selected Rows Using Extra parameter

  1. #1

    Cant Get Selected Rows Using Extra parameter

            <Items>
                <ext:GridPanel ID="GridPanelConfirmNeft" runat="server" Border="true" Height="200"
                    Title="Confirmed Neft Payout Request" MarginSpec="0 5 5 5" ColumnWidth="0.6"
                    EnableColumnMove="false" TabMenuHidden="true">
                    <Store>
                        <ext:Store ID="StoreConfirmNeft" runat="server" PageSize="20">
                            <Model>
                                <ext:Model ID="Model4" runat="server" IDProperty="ID">
                                    <Fields>
                                        <ext:ModelField Name="VendorName" />
                                        <ext:ModelField Name="BridgeCode" />
                                        <ext:ModelField Name="AmountPayable" />
                                        <ext:ModelField Name="PayoutRequestDate" />
                                        <ext:ModelField Name="VendorPayoutsID" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel ID="ColumnModel4" runat="server">
                        <Columns>
                            <ext:Column ID="Column1vendorName" runat="server" Text="vendorName" Sortable="true"
                                DataIndex="VendorName" Flex="1">
                            </ext:Column>
                            <ext:Column ID="Column2BridgeCode" runat="server" Text="BridgeCode" Sortable="true"
                                DataIndex="BridgeCode" Flex="1">
                            </ext:Column>
                            <ext:Column ID="Column3" runat="server" Text="AmountPayable" Sortable="true" DataIndex="AmountPayable"
                                Flex="1">
                            </ext:Column>
                            <ext:Column ID="ColumnIFSCCode" runat="server" Text="PayoutRequestDate" Sortable="true"
                                DataIndex="PayoutRequestDate" Flex="1">
                            </ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CheckboxSelectionModel ID="CheckboxSelectionModel2" runat="server" />
                    </SelectionModel>
                    <View>
                        <ext:GridView ID="GridView4" runat="server" LoadMask="false" />
                    </View>
                    <Features>
                        <ext:GridFilters ID="GridFilters4" runat="server" Local="true">
                            <Filters>
                                <ext:StringFilter DataIndex="VendorNameAsInMaster" />
                                <ext:StringFilter DataIndex="BridgeCode" />
                                <ext:StringFilter DataIndex="Status" />
                            </Filters>
                        </ext:GridFilters>
                    </Features>
                    <BottomBar>
                        <ext:PagingToolbar ID="PagingToolbar4" HideRefresh="true" runat="server" DisplayInfo="true"
                            DisplayMsg="Displaying Jobs {0} - {1} of {2}">
                        </ext:PagingToolbar>
                    </BottomBar>
                </ext:GridPanel>
            </Items>
            <Items>
                <ext:Button ID="Button4" runat="server" Text="Submit with values">
                    <DirectEvents>
                        <Click OnEvent="ConfirmNEFT_Click">
                            <ExtraParams>
                                <ext:Parameter Name="Values" Value="Ext.encode(#{GridPanelConfirmNeft}.getRowsValues({selectedOnly:true}))"
                                    Mode="Raw" />
                            </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Items>
    this is my Code behind
     protected void ConfirmNEFT_Click(object sender, DirectEventArgs e)
        {
    
            string grid1Json = e.ExtraParams["Values"];
    
            //XML representation
            XmlNode grid1Xml = JSON.DeserializeXmlNode("{records:{record:" + grid1Json + "}}");
    
            //array of Dictionaries
            Dictionary<string, string>[] grid2Data = JSON.Deserialize<Dictionary<string, string>[]>(grid1Json);
        }

    Plz Help me Dudes...
  2. #2

    Its Solved..

    Its Solved..

Similar Threads

  1. [CLOSED] [Razor] AjaxProxy pass extra parameter
    By boris in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 07, 2012, 8:15 AM
  2. Replies: 1
    Last Post: Oct 13, 2010, 11:09 PM
  3. [CLOSED] [1.0] passing Extra Parameter to button Click from client-side
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 07, 2010, 12:36 PM
  4. [CLOSED] How to pass extra parameter on to TreeLoader
    By mxp in forum 1.x Legacy Premium Help
    Replies: 18
    Last Post: Mar 17, 2010, 2:40 PM
  5. Coolite MVC Extra Parameter does not work
    By okhans in forum 1.x Help
    Replies: 5
    Last Post: Jul 30, 2009, 3:15 PM

Posting Permissions