[CLOSED] How to Get Values From Column Editor in GridPanel?

  1. #1

    [CLOSED] How to Get Values From Column Editor in GridPanel?

    Hi,

    I?m working with editable columns in a GridPanel based on your example: "Editor With DirectMethod".

    In my case, the field is an editable ComboBox and i would like to know how to get the SelectedItem.Value from CodeBehind using the event
    gridPanel.DirectEvents.AfterEdit.Event
    In ext.net samples you got the value to the next block of code using javascript and then sent it to
    DirectMethod CompanyX.AfterEdit
    afterEdit var = function (e) {
                 CompanyX.AfterEdit (e.record.data.ID, e.field, e.originalValue, e.value,e.record.data);
             };
    There e.value is the value of the selected record.
    How could i read this value directly from the method that subscribes to the event?

    regards!
    Last edited by geoffrey.mcgill; Apr 12, 2012 at 1:13 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Editors values are not submitted automatically.

    You should send it as a DirectEvent parameter.
    <DirectEvents>
        <AfterEdit OnEvent="GridPanel_AfterEdit">
            <ExtraParams>
                <ext:Parameter Name="value" Value="e.value" Mode="Raw" />
            </ExtraParams>
        </AfterEdit>
    </DirectEvents>

Similar Threads

  1. Replies: 1
    Last Post: Feb 19, 2012, 1:07 PM
  2. [CLOSED] gridpanel with combobox column editor
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 30, 2011, 6:53 PM
  3. [CLOSED] GridPanel ComboBox Editor with different values per row
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 16, 2011, 6:27 AM
  4. Replies: 2
    Last Post: Aug 23, 2010, 8:15 PM
  5. Replies: 0
    Last Post: Feb 25, 2009, 3:02 AM

Posting Permissions