I am using the version of RadControls for Silverlight Q1 2012 SP1 . There is issue about selection. I am following the steps.
1. Set gridview DragElementAction="ExtendedSelect".
2. Use cell double click event to open a window.
3.Close the window, the gridview become ExtendedSelect.
Is there anyway to fix this issue?
Thanks.
6 Answers, 1 is accepted
The problem is actually caused by a limitation in the Silverlight platform. Once a Window is shown, there is no way to detect that the mouse is released and that's why this behavior occurs.
I would suggest you to set the DragElementAction property of the RadGridView to "None". Thus the undesired behavior on moving the mouse will not be present.
Does this work for you?
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Thank you for your response.
I can't set DragElementAction property to "None". In my project, I do need ExtendedSelect behavior .
What I know is that when used the version of RadControls for Silverlight Q2 2011 SP1, That was no such problem.
Is there any another way to do with this?
Thanks.
As another suggestion, you could use a RadWindow instead of a MessageBox. Please check this online demo for an example.
Do you get the same problematic behavior even with RadWindow?
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Thank you for reply.
Soryy I didn't make it clear. I am using the RadWinow and this issue has occured.
I thank you can make a sample example with the version of RadControls for Silverlight Q1 2012 SP1 and this can be easy reappeared.
Thanks.
I have saw the soure of RadGridView.
#if SILVERLIGHT4
private void OnMouseButtonUpInternal(object sender, Telerik.Windows.Input.MouseButtonEventArgs e)
{
if (e.ClickCount == 2)
{
this.RaiseEvent(new RadRoutedEventArgs(GridViewCellBase.CellDoubleClickEvent, this));
}
}
#elif SILVERLIGHT5
/// <summary>
/// Called when the user presses the left mouse button over the ListBoxItem.
/// </summary>
/// <param name="e">The event data.</param>
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);
if (e.ClickCount == 2)
{
this.RaiseEvent(new RadRoutedEventArgs(GridViewCellBase.CellDoubleClickEvent, this));
if (this.ParentRow != null && this.ParentDataControl != null)
{
this.ParentDataControl.RaiseRowActivated(this.ParentRow, this.ParentRow);
}
}
}
#endif
In Silverlight4 CellDoubleClick event raise in MouseButtonUp event. But in Silverlight5 has been changed in MouseButtonDown event.
I think that is the reason why this issue happens.
Did you have modify this problem in lastest verison?
Regards.
Thank you for sharing your additional notes.
I have logged the issue into our PITS system for further investigation. You can track its progress here.
Regards,
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>