This question is locked. New answers and comments are not allowed.
hi
im having a problem receiveing current row data using MouseButtonEventArgs
(my need is to open radwindow and i need guid )
this is how i load the event
im having a problem receiveing current row data using MouseButtonEventArgs
(my need is to open radwindow and i need guid )
this is how i load the event
this.AddHandler(GridViewRow.MouseLeftButtonUpEvent, new MouseButtonEventHandler(this.GridViewRow_OnMouseLeftButtonUp), true);
i want to do somthing like thisInputContext = e.Options.Source.DataContextid = (InputContext)... get id ..;displayRadWindow("http://some url " + id+ "}");
5 Answers, 1 is accepted
0
Hello guy,
Sincerely yours,
Maya
the Telerik team
You may handle the MouseLeftButtonDown event as follows:
this.playersGrid.AddHandler(GridViewRow.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnMouseLeftButtonDown), true); private void OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e){ var clickedElement = e.OriginalSource as FrameworkElement; var parentRow = clickedElement.ParentOfType<GridViewRow>(); if (parentRow != null) { //get row's details. }}Sincerely yours,
Maya
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
guy
Top achievements
Rank 1
answered on 18 Oct 2010, 03:49 PM
is there a way to receive this data with double click ?
i have a another event that work this way (drug and drop)
i have a another event that work this way (drug and drop)
0
Hi guy,
Maya
the Telerik team
You may take a look at our demos demonstrating how to handle the DoubleClick event. In case this does not meet your requirements, I would need more details about your specifications.
Maya
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
guy
Top achievements
Rank 1
answered on 18 Oct 2010, 05:05 PM
the example in the demo is from xaml
i need to open a record on double click(event from main.xaml.cs)
do you have example of it?
i need to open a record on double click(event from main.xaml.cs)
do you have example of it?
0
Hello guy,
Maya
the Telerik team
On examining the demo for ClickEvents in RadGridView, you may see that the DoubleClick functionality is achieved by adding a handler to GridViewCellBase. So, I am a little bit confused about your exact requirements. What is the exact behavior that you expect ? Any relevant information would be helpful.
Maya
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items