Selection Issue

7 posts, 0 answers
  1. Shyu
    Shyu avatar
    10 posts
    Member since:
    Oct 2013

    Posted 03 Oct 2013 Link to this post

    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.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 03 Oct 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Shyu
    Shyu avatar
    10 posts
    Member since:
    Oct 2013

    Posted 03 Oct 2013 Link to this post

    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.
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 Oct 2013 Link to this post

    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 >>
  6. Shyu
    Shyu avatar
    10 posts
    Member since:
    Oct 2013

    Posted 06 Oct 2013 Link to this post

    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.
  7. Shyu
    Shyu avatar
    10 posts
    Member since:
    Oct 2013

    Posted 08 Oct 2013 Link to this post

    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.

  8. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 08 Oct 2013 Link to this post

    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 >>
Back to Top
DevCraft banner