How to prevent Control change method on ListView Double Click Event

  • 21 July 2020
  • 1 reply
  • 49 views

Hi Team,

How we can control Control change event that get fired when we double  click any listview.

We had some login on Dropdown change which Clear out the Textbox data If user Select some value. Since Listview Double click events fires the change method so value get lost if we double click the listview to edit the data.

 how we can prevent this issue.

 


1 reply

Userlevel 3
Badge +5

Are you referring to a drop down list in the Add/Edit section of a list view?

 

If so, you can do this.

Add a DataLabel called DoubleClickStarted.

At the top of your double click rule, add Transfer Data of 1 to DoubleClickStarted.

I assume your double click rule has this line "then edit the selected row on the editable list"

At the bottom of your double click rule add Transfer Data of 0 to DoubleClickStarted

In your drop down Change rule, put this at the top

if NewDataLabel does not contain (a specific value) 1 then

 

This will prevent the change rule from running on a dropdown when double click event happens.

 

If this solves your problem, please mark this as the solution.

Reply