Jun 10, 2017, 5:19 AM
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:
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.