zhyhero Posted September 21, 2020 Share Posted September 21, 2020 function beforeedit(editor, context, eOpts) { context.colIdx;// this can get column index context.field;// this can get column field index ????? //howtoget column fieldname ajaxRequest(this,"GetFieldName",["FieldName="+?????]); } Link to comment Share on other sites More sharing options...
Sherzod Posted September 21, 2020 Share Posted September 21, 2020 52 minutes ago, zhyhero said: ajaxRequest(this,"GetFieldName",["FieldName="+?????]); Hello, Sorry, for what purpose do you want to use it? Link to comment Share on other sites More sharing options...
zhyhero Posted September 21, 2020 Author Share Posted September 21, 2020 update a combobox.items(as column'.editor) Link to comment Share on other sites More sharing options...
Sherzod Posted September 21, 2020 Share Posted September 21, 2020 Just now, zhyhero said: update a combobox.items(as column'.editor) Please explain more. Link to comment Share on other sites More sharing options...
zhyhero Posted September 21, 2020 Author Share Posted September 21, 2020 Two columns,Combobox as column2.editor When i click cell at column2 to enter editing mode , i want update combobox.items first(beforeedit) and it depend on cell.text at column1, After that, combobox show it's items list(dropdown). Link to comment Share on other sites More sharing options...
Sherzod Posted September 21, 2020 Share Posted September 21, 2020 18 minutes ago, zhyhero said: Two columns,Combobox as column2.editor When i click cell at column2 to enter editing mode , i want update combobox.items first(beforeedit) and it depend on cell.text at column1, After that, combobox show it's items list(dropdown). Sorry, it would be better if you could provide specific examples. Link to comment Share on other sites More sharing options...
zhyhero Posted September 21, 2020 Author Share Posted September 21, 2020 Ok,Here is a demo UniDBGrid_ClientEvent_BeforeEdit.zip And looks like Link to comment Share on other sites More sharing options...
Sherzod Posted September 21, 2020 Share Posted September 21, 2020 1 hour ago, zhyhero said: UniDBGrid_ClientEvent_BeforeEdit.zip ... colIdx := Params.Values['colIdx'].ToInteger(); if dgRowNumbers in UniDBGrid1.Options then fieldName1 := UniDBGrid1.Columns[colIdx - 1].FieldName else fieldName1 := UniDBGrid1.Columns[colIdx].FieldName ... Link to comment Share on other sites More sharing options...
zhyhero Posted September 21, 2020 Author Share Posted September 21, 2020 1 hour ago, Sherzod said: ... colIdx := Params.Values['colIdx'].ToInteger(); if dgRowNumbers in UniDBGrid1.Options then fieldName1 := UniDBGrid1.Columns[colIdx - 1].FieldName else fieldName1 := UniDBGrid1.Columns[colIdx].FieldName ... @Sherzod Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now