ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: hyh888 on December 01, 2021, 05:35:13 pm

Title: cell get focus event
Post by: hyh888 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?
Title: Re: cell get focus event
Post by: paramvir 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
Title: Re: cell get focus event
Post by: hyh888 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.
Title: Re: cell get focus event
Post by: paramvir on December 02, 2021, 10:35:40 pm
grid.Selection().eachRow() API can be used to get rowData of the selected cell.
Title: Re: cell get focus event
Post by: hyh888 on December 03, 2021, 10:12:53 am
Thank you, it works