Track bar takes 5 to 10 minutes to initialize.

5 posts, 0 answers
  1. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 18 Feb 2015 Link to this post

    When i set the min value to to -64k and max to 64k. My Application takes around 5 to 10 minutes to start. I also modify the large and min frequency to the same value as my min and max value.

    Thanks,
    Jerome
  2. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 18 Feb 2015 Link to this post

    I just tried the same range in Microsoft version of the track bar and it does not experience that problem.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dimitar
    Admin
    Dimitar avatar
    1408 posts

    Posted 23 Feb 2015 Link to this post

    Hello Huges,

    Thank you for writing.

    I was able to reproduce the observed issue. I have logged it in our Feedback Portal. You can track the item for status changes and add your vote for it here.

    The problem comes from the fact that when such minimum and maximum values are used the control creates a large number of elements. So to workaround this you should use smaller values for this properties. Actually if you think about it there is no way to visualize such amount of ticks (you don't have 128000 pixels on your monitor) so there is no need to use large numbers for the minimum and maximum.

    Your Telerik Points have been updated for this report.

    Should you have any other questions do not hesitate to ask.
     
    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 19 Mar 2015 in reply to Dimitar Link to this post

    I notice that this problem is still not fixed in the Jan 2015 build as well. This issue is still there. I really need a solution for this. Devxpress does not experience that problem with their trackbar control so does the Microsoft version. Telerik is the only one so far who has that issue.

    Thanks.
  6. Dimitar
    Admin
    Dimitar avatar
    1408 posts

    Posted 23 Mar 2015 Link to this post

    Hi Hugues,

    Thank you for writing back.

    This issue requires rewriting of the control's main logic and its resolving will take some time. Meanwhile, you can implement the workaround that I have suggested. For example:
    float value;
    public RadForm1()
    {
        InitializeComponent();
        radTrackBar1.SmallTickFrequency = 10;
        radTrackBar1.LargeTickFrequency = 32;
        radTrackBar1.Minimum = -640;
        radTrackBar1.Maximum = 640;
         
        radTrackBar1.ValueChanged += radTrackBar1_ValueChanged;
        trackBar1.ValueChanged += trackBar1_ValueChanged;
    }
     
    void radTrackBar1_ValueChanged(object sender, EventArgs e)
    {
        value = radTrackBar1.Value * 100;
    }

    I hope this helps.

    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready