zhyhero Posted September 21, 2020 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="+?????]); } Quote
Sherzod Posted September 21, 2020 Posted September 21, 2020 52 minutes ago, zhyhero said: ajaxRequest(this,"GetFieldName",["FieldName="+?????]); Hello, Sorry, for what purpose do you want to use it? Quote
zhyhero Posted September 21, 2020 Author Posted September 21, 2020 update a combobox.items(as column'.editor) Quote
Sherzod Posted September 21, 2020 Posted September 21, 2020 Just now, zhyhero said: update a combobox.items(as column'.editor) Please explain more. Quote
zhyhero Posted September 21, 2020 Author 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). Quote
Sherzod Posted September 21, 2020 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. Quote
zhyhero Posted September 21, 2020 Author Posted September 21, 2020 Ok,Here is a demo UniDBGrid_ClientEvent_BeforeEdit.zip And looks like Quote
Sherzod Posted September 21, 2020 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 ... Quote
zhyhero Posted September 21, 2020 Author 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.