Vertical LinearGauge unable to properly draw 13 in certain circumstances

6 posts, 0 answers
  1. Marcy
    Marcy avatar
    4 posts
    Member since:
    Jun 2016

    Posted 03 Jun Link to this post

    Hello, I am evaluating your demo software and found a peculiar bug in a vertical gauge that has a needle indicator. It is the gauge that has the needle indicator that points at a value of 66 in the 'Select a gauge type from gallery' window. If I set the RangeEnd property of the gauge to 14 and the RangeStart to 13, it correctly draws the the 13. If I set the RangeEnd to any number greater than 13 but less than 14, the RangeStart text incorrectly draws. It appears as if multiple paint events are occurring on top of each other on the RangeStart text property. It is easy to replicate. Unfortunately this is a range I need to operate in as I plan to monitor a barometric pressure sensor that reads between 13 and 14 and need more fine detail than a difference of 1 gives me (14 - 13). Ideally, I'd want the RangeStart to be at 13.4 and RangeEnd to be at 13.8.
  2. Marcy
    Marcy avatar
    4 posts
    Member since:
    Jun 2016

    Posted 03 Jun Link to this post

    Also, with a RangeStart of 13.4 and RangeEnd of 13.8 the RangeEnd label completely disappears!
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    710 posts

    Posted 08 Jun Link to this post

    Hello Marcy,

    Thank you for writing.

    I think I managed to reproduce a layout similar to the one described. It is needed that you also sync the RangeStart and RanEnd properties of the other items building the gauge. This can be accomplished in the designer of Visual Studio.

    I am sending you attached a sample project. Additional information is also available in the documentation: Design Time.

    I hope this helps. Please let me know if you need further assistance.

    Regards,
    Hristo Merdjanov
    Telerik
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
  5. Marcy
    Marcy avatar
    4 posts
    Member since:
    Jun 2016

    Posted 08 Jun in reply to Hristo Merdjanov Link to this post

    Hello Hristo,

    Thanks for your reply, but I tried changing the RangeEnd and RangeStart in the linear gauge and every child control in it that has such a property to 13.8 and 13.4 respectively and it does not draw correct. Please do the same to your attached project so that you can see, it does not work. It is very important that the RangeEnd and RangeStart but are in the 13 range to see that it does not work properly.

  6. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    710 posts

    Posted 13 Jun Link to this post

    Hello Marcy,

    Thank you for writing back.

    We investigated in details the described scenario and it appears the issue with the labels is a limitation of the current implementation. I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item. I have also updated your Telerik points.

    If it is applicable for your project please use a factor, for example, 10 and scale all of the range starts and end you would be having. In case this approach is not suitable please check the attached project with a sample implementation handling your scenario.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
  7. Marcy
    Marcy avatar
    4 posts
    Member since:
    Jun 2016

    Posted 19 Jun Link to this post

    Thank you, this workaround worked beautifully.
Back to Top
UI for WinForms is Visual Studio 2017 Ready