The system.listview has this behavior but i can't implement this in ultralistview . For selecting the items on right click I have done this in the MouseDown_Event
if (e.Button == System.Windows.Forms.MouseButtons.Right) { Point mousePoint = new Point(e.X, e.Y); Infragistics.Win.UIElement element = ((UltraListView)sender).UIElement.ElementFromPoint(mousePoint); }
I can get what element was clicked from the Infragistics.Win.UIElement but how can I find which item was clicked and make it appear selected?
Hello,
Could you please review the sample attached to this post and see if it meets your requirements. Please feel free to let me know if I misunderstood you or if you have any other questions.
Thank you Boris, it was exactly what i was looking for.
But I didn't get why this feature was dropped from ultralistview.
Version 10.2
I am not able to confirm that in version 10.2 we have this functionality. What service release were you using with 10.2 in order to get this behavior? Thank you in advance.
I mean this feature is available in windows Listview not the one in infragistics.
After some research, the "Support of item selection or mouse right click" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12090213.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Bump :)
Private Sub UltraPanel1_MouseDown(sender As Object, e As MouseEventArgs) Handles UltraListView`1.MouseDown
Dim mousePositionFromItem As Point = UltraListView1.PointToClient(MousePosition)
Dim currentItem As UltraListViewItem = UltraListView1.ActiveItem
Dim itemUnderMousePosition As UltraListViewItem = UltraListView1.ItemFromPoint(mousePositionForItem, True)
If (itemUnderMousePosition IsNot Nothing AndAlso itemUnderMousePosition IsNot currentItem) Then
UltraListViewThumbnail.ActiveItem = itemUnderMousePosition
UltraListViewThumbnail.PerformAction(UltraListViewAction.SelectItem)
End If
End Sub
This seemed to work for me. It was a little easier than having to traverse the element structure of Infragistics.