I have a project running with version 2.5.30, when I moved it to version 2.5.35 I noticed that the code does not work as it did before. When filling a datarepeater object with texts and images, after clicking (for example) on an image in one of the rows, a series of operations are performed with the values contained in the row on which it was clicked. This worked correctly, but after version 2.5.30, even in version 3.0.17, when clicking on the image the information in the datarepeater.currentitem is not the one corresponding to the place where it was clicked.
The click event is executed on the object before the datarepeater.itemselected has been executed.
Any possible solution to the problem?
I have created an example project, which I attach.
It is with version 3.0.17.
I have attached the same project with the workaround.
The “unexpected tocken” error you got is due to the different quote marks when you copy/paste code from the forum.
Thanks for your quick reply.
I have inserted the code you have sent me in the program, but when I run it, it returns the following error: Invalid or unexpected token
Any more suggestions?
Thank you for reporting this issue.
As a workaround, you can add these few lines of code:
Private Sub DataRepeater1_ItemCloned(sender As Object, e As DataRepeaterItemEventArgs) Handles DataRepeater1.ItemCloned
e.DataRepeaterItem.Eval(“this.removeListener(‘click’, this._onItemClick);this.addListener(‘pointerdown’, this._onItemClick);”)
We will notify you when a fix is issued in a future build!
Please login first to submit.