This is a migrated thread and some comments may be shown as answers.

Double Click Event on the Grid Row

3 Answers 174 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Syed Danish
Top achievements
Rank 1
Syed Danish asked on 01 Nov 2010, 08:57 AM
Hi,

Can any one please help me out of a situation where I need to trigger an event on the Double Click of the Row of the Rad Grid.
Is there any event for double click on the grid.

Thanks and Regards,
Syed Danish

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 01 Nov 2010, 09:15 AM
Hi Syed Danish,

You may take a look at our demos demonstrating Click Events.
 

Kind regards,
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
Syed Danish
Top achievements
Rank 1
answered on 01 Nov 2010, 10:59 AM
Hi Maya,

Thanks for the quick reply. I am using Silverlight 3 and Telerik tool kit 2009.3.1103.1030. Is there any way or the event to handle the Double Click Event, with this tool kit.

Thanks and Regards,
Syed Danish
0
Maya
Telerik team
answered on 03 Nov 2010, 04:56 PM
Hello Syed Danish,

Following up the sample in our demo, you may try to made some slight changes made:

public MainPage()
        {
            InitializeComponent();
            this.clubsGrid.AddHandler(GridViewCell.MouseDoubleClickEvent, new EventHandler<RadRoutedEventArgs>(OnCellDoubleClick), true);      
        }
 
        private void OnCellDoubleClick(object sender, RadRoutedEventArgs args)
        {
            GridViewCellBase cell = args.OriginalSource as GridViewCellBase;
            if (cell != null)
            {
                this.ClickedCell = cell;
            }
        }  

I am sending you a sample project illustrating the proposed solution.
 


Greetings,
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
Tags
GridView
Asked by
Syed Danish
Top achievements
Rank 1
Answers by
Maya
Telerik team
Syed Danish
Top achievements
Rank 1
Share this question
or