[CLOSED] row on directMethod in grid editor dont work

  1. #1

    [CLOSED] row on directMethod in grid editor dont work

    in a grid editor with a directMethod in version 1.x working for obtain a row of the gridPanel but in version 2.x dont working.

       <script type="text/javascript">        var edit = function (editor, e) {
                    "e" is an edit event with the following properties:
                        grid - The grid
                        record - The record that was edited
                        field - The field name that was edited
                        value - The value being set
                        originalValue - The original value for the field, before the edit.
                        row - The grid table row
                        column - The grid Column defining the column that was edited.
                        rowIdx - The row index that was edited
                        colIdx - The column index that was edited
                // Call DirectMethod
                if (e.value !== e.originalValue) {
                    ValorX.AfterEdit(e.record.data.OID, e.value, e.record, e.row);
    [DirectMethod(Namespace = "ValorX")]
        public void AfterEdit(int oid, string newValue, int row)
            prodCotizar = (DataTable)Session["tablaprodCotizar"];
            prodCotizar.Rows[row][4] = Convert.ToDouble(newValue);
    Last edited by Daniil; Aug 20, 2013 at 9:19 AM. Reason: [CLOSED]
  2. #2
    Can you describe the issue in details? What exactly don't work you?

    Also I see that your direct method accepts three arguments but you pass four arguments
    e.record and e.row cannot be passed as arguments because it cannot be serialized, I guess that you need to use e.rowIdx instead e.row

Similar Threads

  1. ext.net 2.0.0 asp.net mvc 4 icons dont't work
    By user1734474 in forum 2.x Help
    Replies: 1
    Last Post: Oct 10, 2012, 11:17 PM
  2. Replies: 9
    Last Post: Sep 05, 2012, 3:08 PM
  3. Help me dont work UserControl directmethod. plz
    By SeoNamseok in forum 2.x Help
    Replies: 0
    Last Post: Jul 09, 2012, 8:19 AM
  4. XScript dont work for me
    By farnold in forum 1.x Help
    Replies: 3
    Last Post: Apr 27, 2011, 2:56 PM
  5. [CLOSED] DirectMethod Grid Editor error
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 21, 2010, 2:02 PM

Posting Permissions