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

Vertical LinearGauge unable to properly draw 13 in certain circumstances

5 Answers 51 Views
Gauges (RadialGauge, LinearGauge, BulletGraph)
This is a migrated thread and some comments may be shown as answers.
Marcy
Top achievements
Rank 1
Marcy asked on 04 Jun 2016, 01:18 AM
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.

5 Answers, 1 is accepted

Sort by
0
Marcy
Top achievements
Rank 1
answered on 04 Jun 2016, 01:21 AM
Also, with a RangeStart of 13.4 and RangeEnd of 13.8 the RangeEnd label completely disappears!
0
Hristo
Telerik team
answered on 08 Jun 2016, 04:42 PM
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.
0
Marcy
Top achievements
Rank 1
answered on 09 Jun 2016, 02:01 AM

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.

0
Hristo
Telerik team
answered on 13 Jun 2016, 11:25 AM
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.
0
Marcy
Top achievements
Rank 1
answered on 19 Jun 2016, 06:50 PM
Thank you, this workaround worked beautifully.
Tags
Gauges (RadialGauge, LinearGauge, BulletGraph)
Asked by
Marcy
Top achievements
Rank 1
Answers by
Marcy
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or