radcarousel doesn't support Touch-Events?

4 posts, 0 answers
  1. Gary
    Gary avatar
    5 posts
    Member since:
    Jun 2012

    Posted 02 Jun 2012 Link to this post

    Hi,
    i have to use Touchpad instead of Mouse. All Gestures do work with mouse. With touchpad without radcarousel works too. but after i put carousel Control, Touchpad doesn't recognize any points over this control. should i install something or any trick?
    thanks
    Gary

    PS:i mean, is it possible, that we send radcarousel to background of a panel, but visuelly i could see it and doesn't disappeared? therefore all Gestures can be recognized over the panel, but radcarousel would be effected
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 06 Jun 2012 Link to this post

    Hello Gary,

    Thank you for contacting us.

    Touch and mouse and two different input methods and the events that are fired for each of them is different. RadCarousel supports built-in touch functionality which means that you should be able to rotate through its items with a pan gesture without having to implement any additional functionality.

    Please make sure that your touch device actually provides touch input messages because most of the touchpad devices are used as a replacement for the mouse and therefore provide mouse input only.

    I am not sure I understand what do you mean by "Touchpad doesn't recognize any points over this control". Can you please send us a sample code or project which demonstrates your approach as well as a detailed description of your scenario - the devices you are using and the behavior you are expecting. This will let us provide you with a proper answer.

    Meanwhile you can take a look at our online documentation article regarding the Touch support in TPF and Touch support in RadCarousel.

    I am looking forward to hearing from you.

    Regards,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Gary
    Gary avatar
    5 posts
    Member since:
    Jun 2012

    Posted 14 Jun 2012 Link to this post

    hi Ivan,
    thanks for replying. actually my touch device supports multitouch. i solved this problem. but i have a question about this project and touch functions.
    this project works great. but i have problem when i extend that with pre-defined Multitouch gestures. if the selected item is clicked,then object will be scaled bigger. in this situation  i want to use rotate and zoom gesture for the selectedItem. the rotate works perfect. i can zoom (pinch out/int) easily, but when i click this again for putting the item on the RadCarousel, the item would not be attached to RadCarousel anymore and the item is located somewhere else. 
    i want to do following steps:
    1) click on selectedItem --> item scaled bigger (done)
    2) rotating  the object(done)
    3) pinch in/out(done)
    4) click again and return to the original position on the radcarousel(in this step if i use only rotate gesture works great, but when i use Zoom the item will be removed from radcarousel itemlist). 
    for Zooming:
      
      
            private void radCarousel1_ZoomGesture(object sender, ZoomGestureEventArgs e)
            {
               button = (RadButtonElement)this.radCarousel1.SelectedItem;
                button.ScaleTransform = new SizeF(
                    (float)(button.ScaleTransform.Width * e.ZoomFactor),
                    (float)(button.ScaleTransform.Height * e.ZoomFactor));
                  
            }
      
    for rotating:
      
     private void radCarousel1_RotateGesture(object sender, RotateGestureEventArgs e)
            {
               
                  
                button.AngleTransform -= (float)(e.Angle * 180D / Math.PI);
      
              
            }

    i'm appreciate if someone help me
    thanks
    Gary
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 18 Jun 2012 Link to this post

    Hello Gary,

    Thank you for the detailed info.

    The item was disappearing from the control because RadCarousel uses internally the properties you modify by the gestures. To overcome this, you simply need to reset them when the item is zoomed out by a click. I am sending you a modified version of the CarouseImageGallery project which demonstrates how to achieve this. I have only added some modifications in the ResetZoomedItem method and also changed the way that gestures are handled.

    A bit off topic, you can also check the PhotoAlbum Demo application which implements similar scenario but provides an implementation of full touch support.

    I hope you find this useful. Feel free to contact us if you have any further questions.

    Kind regards, Ivan Todorov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top