how to get the selected value of a selectbox that is inside a grid panel

  1. #1

    how to get the selected value of a selectbox that is inside a grid panel

    I have a grid panel with a cellediting plugin, in one of the cells, I have a selectbox as an editor. How do I get/access the edited column's value of the selected item inside the grid?
  2. #2
    Hi @z00ks,

    At which moment do you need to get it?
  3. #3
    after I have clicked the submit button which is at the bottom of the grid. The button's source code looks like this:

    <Buttons>
                <ext:Button ID="btnSubmit" runat="server" Text="Save">
                    <DirectEvents>
                        <Click OnEvent="btnSave_Click">
                            <EventMask ShowMask="true" />
                            <ExtraParams>
                                <ext:Parameter Name="data" Value="#{stModels}.getChangedData({skipIdForNewRecords : false})" Mode="Raw" Encode="true" />
                            </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
    Last edited by Daniil; Mar 13, 2013 at 8:37 AM. Reason: Please use [CODE] tags
  4. #4
    It should be extracted from a Store's record which the getChangedData should actually do.

    Is a new value absent in a JSON object which is returned by this method?

Similar Threads

  1. Replies: 12
    Last Post: Apr 26, 2016, 10:33 PM
  2. Replies: 18
    Last Post: Mar 13, 2013, 10:40 AM
  3. Replies: 13
    Last Post: Feb 28, 2013, 2:06 PM
  4. Replies: 1
    Last Post: Mar 11, 2012, 3:26 AM
  5. [CLOSED] How to obtain selected value from SelectBox in Javascript?
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 07, 2010, 8:29 PM

Tags for this Thread

Posting Permissions