ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
cell get focus event
« previous
next »
Print
Pages: [
1
]
Author
Topic: cell get focus event (Read 1213 times)
hyh888
Pro Enterprise
Full Member
Posts: 142
cell get focus event
«
on:
December 01, 2021, 05:35:13 pm »
Would you like kindly show me how to get cell value when a cell get focus whenever using keyboard or mouse?
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: cell get focus event
«
Reply #1 on:
December 02, 2021, 11:45:09 am »
Please use selectEnd event and grid.Selection().value() API
https://paramquery.com/pro/api#event-selectEnd
https://paramquery.com/pro/api#method-Range
Logged
hyh888
Pro Enterprise
Full Member
Posts: 142
Re: cell get focus event
«
Reply #2 on:
December 02, 2021, 07:32:48 pm »
Thank you very much, I can get the value of selected cell. But is there any method to get the id of the row that includes the selected cell? I tried to use ui.rowData["id"] to get the row id, but there is no such method.
«
Last Edit: December 02, 2021, 07:36:05 pm by hyh888
»
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: cell get focus event
«
Reply #3 on:
December 02, 2021, 10:35:40 pm »
grid.Selection().eachRow() API can be used to get rowData of the selected cell.
Logged
hyh888
Pro Enterprise
Full Member
Posts: 142
Re: cell get focus event
«
Reply #4 on:
December 03, 2021, 10:12:53 am »
Thank you, it works
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
cell get focus event