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

Selection Issue

6 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shyu
Top achievements
Rank 1
Shyu asked on 03 Oct 2013, 09:31 AM
Hi, Telerik
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

Sort by
0
Dimitrina
Telerik team
answered on 03 Oct 2013, 11:11 AM
Hi,

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?
 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Shyu
Top achievements
Rank 1
answered on 04 Oct 2013, 12:19 AM
Hi, Telerik
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.
0
Dimitrina
Telerik team
answered on 04 Oct 2013, 08:19 AM
Hi,

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?
 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Shyu
Top achievements
Rank 1
answered on 07 Oct 2013, 12:16 AM
Hi, Didie.
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.
0
Shyu
Top achievements
Rank 1
answered on 08 Oct 2013, 09:30 AM
Hi, Didie.
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.

0
Dimitrina
Telerik team
answered on 08 Oct 2013, 02:47 PM
Hi,

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
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
Tags
GridView
Asked by
Shyu
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Shyu
Top achievements
Rank 1
Share this question
or