0
請我試試Lib.Web.mvc中的DataEvents函數,但沒有實現,或者我不知道如何使用這是我的代碼。我用jqGridImport因爲我生成欄目動態Lib.web.mvc中沒有實現DataEvents
IList<JqGridColumnDataEvent> lstDataEvents = new List<JqGridColumnDataEvent>();
lstDataEvents.Add(new JqGridColumnDataEvent("keypress", "function(e) { soloNumeros() }", null));
jqm = new JqGridColumnModel(NombreColumna) { Index = NombreColumna, Width = 60, Editable = true, Alignment = JqGridAlignments.Right, EditType = JqGridColumnEditTypes.Text, Searchable = false, EditRules = new JqGridColumnRules() { Required = true, Number = true }, Sortable = false, EditOptions = new JqGridColumnEditOptions() { DataEvents = lstDataEvents } };
謝謝你,我使用afterInsertRow添加一個事件 – dxavier