Datarepeater does not select row correctly.

0
0

Hello!

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.

Thanks

  • You must to post comments
0
0

Hi Jesus,

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.

HTH,
Alaa

  • jesus morales
    Hi Alaa! Thanks again for your quick response. It is working correctly. While the problem is being solved I will use the code you provided. Regards
  • You must to post comments
0
0

 

Hi Alaa!

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?

Regards

Attachment
  • You must to post comments
0
0

Hi Jesus,

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);”)

End Sub

We will notify you when a fix is issued in a future build!

HTH,
Alaa

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.