Problem on passing parameter in RAW mode in CellEditing plugin

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Problem on passing parameter in RAW mode in CellEditing plugin

    Hi
    I have a problem in my control. I have 2 controls that named ExplorerDataView and ExplorerGridPanel. ExplorerGridPanel is inherited form GridPanel. I put them on another control named Explorer that inherited from UserControl class then I put it (Explorer control) on an ASCX. When I dbl click on a row in GridPanel for editing, my editor text field will be enabled but I cannot change its text?!?!? My code is:
                var columnName = new Column { Text = "نام", DataIndex = "Title", Flex = 15 };
    
                var txt = new TextField();
    
                txt.DirectEvents.Change.Event += Change_Event;
    
                columnName.Editor.Add(txt);
                ColumnModel.Columns.Add(columnName);
    Also this part of code will not work properly and parameter must be passed in Mode = ParameterMode.Value. When I use Mode = ParameterMode.Raw my Edit_Event will not be raised!!!
                var plugin = new CellEditing();
    
                plugin.DirectEvents.Edit.ExtraParams.Add(new Parameter
                {
                    Name = "SelectedItemId",
                    Value = "#{" + ID + "}.selModel.getSelection[0].get('ID')",
                    Mode = ParameterMode.Raw
                });
                plugin.DirectEvents.Edit.Event += Edit_Event;
    
                Plugins.Add(plugin);
    Last edited by ArashRahimian; Jul 03, 2017 at 2:57 PM.

Similar Threads

  1. Replies: 6
    Last Post: Jan 17, 2014, 7:38 AM
  2. parameter passing problem
    By idelacruz in forum 2.x Help
    Replies: 0
    Last Post: Aug 24, 2013, 5:19 AM
  3. [CLOSED] CellEditing Plugin tab key
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 14
    Last Post: Jun 05, 2013, 7:03 AM
  4. How to passing parameter in TreeNode
    By teamsar in forum 2.x Help
    Replies: 0
    Last Post: Jan 29, 2013, 10:06 AM
  5. [CLOSED] CellEditing plugin
    By Kev in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 13, 2012, 8:06 PM

Tags for this Thread

Posting Permissions