Hyperpanel Single-click event

Posted by: mike on 25 April 2021, 2:14 pm EST

  • Posted 25 April 2021, 2:14 pm EST

    Hi. I only see a double-click event for the Hyperpanel. Is there a sngle-click event, or is there a way for me to add one?
  • Replied 25 April 2021, 5:23 pm EST

    Hi Mike,

    You can use C1HyperPanel's MouseLeftButtonDown event to capture single click. Please refer to the same from the attached sample. (see HyperPanelClick.zip)

    JFYI, I didn't found any double click event for C1HyperPanel. So, just in case if the above solution didn't work then I would request you to share the C1 build number you are using.

    Best Regards,

  • Replied 26 April 2021, 1:40 pm EST

    Thank you for the answer and the example.

    In my HyperPanel I have 6 images. In the MouseLeftButtonDown event, how do I know which item was clicked? I looked through the sender and e objects and I don't see which field or property to check.
  • Marked as Answer

    Replied 26 April 2021, 3:32 pm EST

    Hi Mike,

    You can use the MouseButtonEventArgs's Source property to check which image is clicked. Please refer to the same from the attached modified sample. (see HyperPanelClick_Mod.zip)

    Best Regards,

  • Replied 27 April 2021, 1:32 pm EST

    Thank you Kartik. In others look at this, for each of my images I named then (Name="abc"). Then in code I cast MouseButtonEvenArgs.Source to Image and then check the Name property.
  • Replied 27 April 2021, 4:29 pm EST

    Hi Mike,

    Yes, you can do the same if it fulfills your requirement.

    Best Regards,
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels