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

How to build and create dynamic indicator in VB code instead of XML

3 Answers 165 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Anoop
Top achievements
Rank 1
Anoop asked on 13 Apr 2011, 11:52 AM

How to build and create dynamic indicator in VB code instead of XML

So the indicator should be change according to my input value

 

Also I wanna change the range and the scale in VB code to make it more flexible.
in radical and simi gauge

 

Please let me know how to do that ASAP

 

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 15 Apr 2011, 06:31 AM
Hello Anoop,

I have attached a sample VB solution which creates the gauge from a code behind.
I hope it helps.

Regards,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Anoop
Top achievements
Rank 1
answered on 17 Apr 2011, 06:50 AM
Thanks a lot for your replay,

But I don’t know why I got this much error once I opened the example you sent
Am using Visual Studio 2008 and this controls RadControls for WPF Q3 2010 SP1
am usually getting errors with any examples

Thanks in advance

Error 1 'Sub Main' was not found in 'GaugeFromVB'. GaugeFromVB
Error 2 Name 'InitializeComponent' is not declared. 
Error 3 Name 'LayoutRoot' is not declared. 
Error 4 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
Error 5 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
Error 6 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
Error 7 'EditorBrowsableAttribute' is ambiguous in the namespace
Error 8 'EditorBrowsableAttribute' is ambiguous in the namespace
Error 9 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
Error 10 'GeneratedCodeAttribute' is ambiguous in the namespace 'System.CodeDom.Compiler'.
Error 11 'EditorBrowsableAttribute' is ambiguous in the namespace
Error 12 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'. 
Error 13 'GeneratedCodeAttribute' is ambiguous in the namespace 'System.CodeDom.Compiler'. 
Error 14 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
Error 15 'ApplicationSettingsBase' is ambiguous in the namespace 'System.Configuration'.
Error 16 'ApplicationSettingsBase' is ambiguous in the namespace 'System.Configuration'. 
Error 17 'HelpKeywordAttribute' is ambiguous in the namespace 'System.ComponentModel.Design'.
Warning 18 The referenced component 'System.Xaml' could not be found.  
0
Andrey
Telerik team
answered on 20 Apr 2011, 12:07 PM
Hello Anoop,

The solution I've sent to you has been created using VS2010 and it is targeted to the .NET Framework 4.0. It can't be opened and compiled using VS2008, because it supports .NET Framework 2.0-3.5 only. You can simple create new project in VS2008 and add .xaml and .vb files from my solution to the new one.

By the way, it looks like you are using RadControls bundle compiled and packaged for .NET Framework 4.0. Since you are using VS2008 you should use bundle compiled and packaged for .NET Framwork 3.5. This bundle should be available from your account.

Greetings,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Gauges
Asked by
Anoop
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Anoop
Top achievements
Rank 1
Share this question
or