Is there an example somewhere of using the selectBy so that the selectionChange event handler is passed a dataItem (or context.dataItem)? I have seen this capability alluded to in some articles, but I have not been able to find examples or get it to work for me. Thank you.
1 Answer, 1 is accepted
0
Dimiter Topalov
Telerik team
answered on 08 May 2019, 11:11 AM
Hello Andy,
The selectionChange event handler contains the information about the data item and its index out-of-the-box:
... whereas the selectBy input of the SelectDirective requires a callback that will determine what data item key (usually ID) will be stored in the selectedKeys collection:
I hope this helps, but if I am missing something, please send us some further details and context about the scenario and the goal that you are after, as well as what exactly does not work for you, so I can try providing a suggestion that is most suitable to the specific use case. Thank you in advance.
Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.