This question is locked. New answers and comments are not allowed.
Dear support,
how can we get row index of RadGridView from mouse position? There is GetPosition method in MouseMove event, but i guess there is another way.
Thank you for your answer..
Dave
how can we get row index of RadGridView from mouse position? There is GetPosition method in MouseMove event, but i guess there is another way.
Thank you for your answer..
Dave
4 Answers, 1 is accepted
0
Hi David ,
Can you please give us more details on the exact scenario you are trying to achieve.
When do you need to have the index? - on mouse over, on mouse click etc. ? Also what index do you need - do you need the index of the visible row , or the original data source index. If you give me some more details on the final goal I will gladly provide you with a working sample.
Kind regards,
Pavel Pavlov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Can you please give us more details on the exact scenario you are trying to achieve.
When do you need to have the index? - on mouse over, on mouse click etc. ? Also what index do you need - do you need the index of the visible row , or the original data source index. If you give me some more details on the final goal I will gladly provide you with a working sample.
Kind regards,
Pavel Pavlov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
David
Top achievements
Rank 1
answered on 08 Jul 2009, 03:59 PM
Hi Pavel,
thank you for your quick answer.
Imagine grid filled with records about customers. Each customer has phone field, email field, name field etc.
So I need to display custom tooltip when mouse cursor reaches a cell in grid. The tooltip looks like business card, so I need to bind dynamically data from a record which is selected (not clicked).
I need to get somehow row index on mouse over and fill TexBlock elements with appropriate data of a customer.
Thank you
Dave
thank you for your quick answer.
Imagine grid filled with records about customers. Each customer has phone field, email field, name field etc.
So I need to display custom tooltip when mouse cursor reaches a cell in grid. The tooltip looks like business card, so I need to bind dynamically data from a record which is selected (not clicked).
I need to get somehow row index on mouse over and fill TexBlock elements with appropriate data of a customer.
Thank you
Dave
0
Accepted
Hello David ,
Please have a look at the attached sample.
It demonstrates a way to obtain a row context sensitive tooltip.
To visually style the appearance of the tooltip , please modify the PersonVCard.xaml.
The logic that attaches the tooltip to a row resides in the RowLoaded event handler of the RadGridView.
In case you find difficulties adapting this to your scenario or you need furhter assistance, just let me know.
Regards,
Pavel Pavlov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please have a look at the attached sample.
It demonstrates a way to obtain a row context sensitive tooltip.
To visually style the appearance of the tooltip , please modify the PersonVCard.xaml.
The logic that attaches the tooltip to a row resides in the RowLoaded event handler of the RadGridView.
In case you find difficulties adapting this to your scenario or you need furhter assistance, just let me know.
Regards,
Pavel Pavlov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
David
Top achievements
Rank 1
answered on 09 Jul 2009, 05:19 PM
Pavel Pavlov, you are simply ingenious! :) This is exactly what I was looking for!! Thank you very much!
Good work!
I really appreciate that!
Best regards
Dave
Good work!
I really appreciate that!
Best regards
Dave