14 Answers, 1 is accepted
May I ask you to share how exactly have you subscribed for the DoubleClick event?
Regards,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
<telerik:RadGridView Grid.Row="1"
ShowGroupPanel="False"
AutoGenerateColumns="False"
ItemsSource="{Binding Products}"
SelectedItem="{Binding SelectedProduct,Mode=TwoWay}"
CanUserDeleteRows="False"
CanUserInsertRows="False"
CanUserFreezeColumns="False"
CanUserReorderColumns="false"
SelectionMode="Single"
MouseDoubleClick="DoubleClickItem"
Name="ProductList"
>
Generally the ScrollBar is a part of the GridView. Would you please share on what visual elements do you intend to click in order to take the proper actions?
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
In that case, I would suggest you to follow the approach from the Click Events WPF Demo and subscribe for the GridViewCell's double click event instead.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I'm looking at that demo in the "Demos - Rad Controls for WPF" tool I installed during the setup of the Telerik tools but I can't find any reference to that event. It looks like maybe I can't see all the files in the demo (I see ClassNameConverter.cs, ConfigurationPanelBehavior.cs, Example.xaml and Example.xaml.cs).
Could you post an example XAML of how to attach this event please?
Thanks
<telerik:RadGridView.RowStyle>
<Style>
<EventSetter Event="telerik:RadGridView.MouseDoubleClick" Handler="DoubleClickItem"/>
</Style>
</telerik:RadGridView.RowStyle>
Just search for the "Click Event" demo. The code to attach this event would be:
this
.grid.AddHandler(GridViewCellBase.CellDoubleClickEvent,
new
EventHandler<RadRoutedEventArgs>(OnCellDoubleClick),
true
);
Kind regards,
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
hi...
i wantu handle doubleclick whenever the form is hidden. please help
I am not sure how to understand your question. How do you double click on a hidden form? This thread is regarding disabling double-click on the scrollbars of RadGridView, do you have a different question? Would you please be a bit more specific?
Regards,
Dimitrina
Telerik
See What's Next in App Development. Register for TelerikNEXT.
Upon double click on any row, then RadGridView's RowActivated event will be raised. You can subscribe for it and try handling the action.
In case, you need something different and as I am not sure how you have currently implemented your specific logic on double click, would it be possible for you to illustrate the specific case in a demo project with your exact setup? You can send it to us via a new support thread. You can also take a look at this blog post for a reference on how to isolate an issue.
Regards,
Dimitrina
Telerik
See What's Next in App Development. Register for TelerikNEXT.
hello.... sorry...
please explain in kendo ui
You have posted your question under category RadGridView for WPF. In case it is related to Kendo UI, I would suggest you checking the Kendo UI forums instead.
Regards,
Dimitrina
Telerik
See What's Next in App Development. Register for TelerikNEXT.