Telerik Forums
UI for WPF Forum
3 answers
185 views
Hello,

I have successfully created the guage that I want to use a design-time in XAML. However, I have a need to create the guage at runtime. Everytime that I try to add a RadialScale to a Grid, WPF throws an Exception that says:

The calling thread cannot access this object because a different thread owns it.

What am I doing wrong? Here is my code:

// Setup the grid that the gauge will be defined in
System.Windows.Controls.Grid gaugeGrid = new System.Windows.Controls.Grid();
gaugeGrid.Height = 140;
gaugeGrid.Width = 140;
gaugeGrid.Margin = new Thickness(0, 20, 0, 0);

// Define the radial scale with the Telerik control
RadialScale radialScale = new RadialScale();
radialScale.Min = 40;
radialScale.Max = 60;
radialScale.MinorTicks = 2;
radialScale.MajorTicks = 6;

// Exception gets thrown here
gaugeGrid.Children.Add(radialScale);
Andrey
Telerik team
 answered on 27 Mar 2009
6 answers
956 views
hello,

I have a requirement that the treeView should get sorted according to some parameter.
Is this possible to achieve ?
A code sample would be helpful.

Thanks and regards 
Prash
Top achievements
Rank 1
 answered on 27 Mar 2009
1 answer
144 views
Good Afternoon,

Is it possible to make the Bar Chart a horizontal chart?

If not, does Telerik plan to release one with Q2?

Thank you for your time,

David
Ves
Telerik team
 answered on 26 Mar 2009
1 answer
168 views

I have replaced some TextBox controls with RadMaskedTextBox controls in a few dialogs.

sample:

 

<telerikInput:RadMaskedTextBox Name="somedata" MaskType="Numeric" Mask="" Value="{Binding Source={StaticResource somesource}, Path=somedata}"/> 

 

 

 

After the replacement, the databinding only works for setting the data upon loading. When retrieving the data after closing the dialog, the fields have not changed.

The same databinding using a TextBox works fine.

I have circumvented the problem by manually setting the data upon closing the dialog, but that is obviously not a very good solution.

SomeObject r = (SomeObject)(((ObjectDataProvider)datagrid.Resources["somesource"]).ObjectInstance);  
r.somedata = Convert.ToInt16(this.somedata.Value); 

Any suggestions would be most welcome.

Best regards,
Tomas

 

Bobi
Telerik team
 answered on 26 Mar 2009
0 answers
148 views
Can someone point me to right direction on creating an 3D Carousel in WPF?

thanks,
Ravi
Kamachi
Top achievements
Rank 1
 asked on 26 Mar 2009
1 answer
120 views
When the numeric updown receives focus, I need it to highlight or select the current value to enable the user to type over it.  The normal WPF textbox has a select method that enables this.  Is there a similar method here?  I am using the 2009 Q1 release.

Also the focus method does not put the cursor in the control; it just puts the focus on the container control (UIElement).

Doug
Kaloyan
Telerik team
 answered on 26 Mar 2009
5 answers
158 views
Where can I find documentation on how to use this control?
Bobi
Telerik team
 answered on 26 Mar 2009
2 answers
136 views
Hello,

I have recently run into an issue where an exception gets thrown after reordering the columns in my grid (version 2009.1.312.35).  I have column filtering enabled and have a couple of custom filters applied to the grid, such as a text box for searching the title and description of the objects that are bound to the grid.  Whenever I drag and drop a column header to reorder the columns, I get the following exception.  Is this a bug in the grid or am I doing something wrong in my code?

Here is part of the stack trace.  Please let me know if you need any other information.

2009-03-23 11:40:19,481 [11] ERROR - Unhandled exception.  System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Unable to cast object of type 'IRC.Gear.WorkItemManager.Controls.Filters.TitleDescriptionFilter' to type 'Telerik.Windows.Data.FieldFilterDescription'.
   at Telerik.Windows.Controls.GridView.GridViewDataControl.AssignFilterDescriptionsToControls()
   at Telerik.Windows.Controls.GridView.GridViewItemsControl.ReorderColumns(Int32 oldIndex, Int32 newIndex)
   at Telerik.Windows.Controls.GridView.GridViewItemsControl.ColumnsReorderingRequested(Object sender, RadRoutedEventArgs e)

Thanks,

Joel



JP
Top achievements
Rank 1
 answered on 25 Mar 2009
4 answers
474 views
Hello,

I am deriving from your RadNumericUpDown control and would like to override the DefaultStyleKey property and set my own style. Whenever I do this, I do not get any type of display no matter which properties I set in the new style. My guess is that there is no implementation for the BasedOn attribute for this control, so when I override the DefaultStyleKey I would need to create a new control template. Is there a chance that this feature could be implemented in the future? Or is there another way I could override the DefaultStyleKey without losing the base control template? Any suggestions would be appreciated. Thanks!
Martin
Top achievements
Rank 1
 answered on 25 Mar 2009
3 answers
283 views
Good Afternoon,

In order to implement a scatter graph I have been trying to use a bubble chart, with the intent of setting them to the same size. At best I was able to set all the bubbles to a size of 2.5 if one bubble was large, whihc was set to size 100. The smaller I make this large bubble, the bigger the other bubbles appear.

Obviously I don't fully understand how the bubble chart works, why do you think this is occurring? I saw the Bubble class has a Radius property, although I couldn't see how to set it. Are you able to give me a little example showing this if the radius property is my answer to the problem?

Otherwise, is it possible to remove the lines for the LineChart?

Thank you for your time,

David
Giuseppe
Telerik team
 answered on 25 Mar 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?