Telerik Forums
UI for WPF Forum
5 answers
184 views
Hello,

At the moment I am trying to implement an export function for charts by using the ExportToImage and ExportToExcelML methods of RadChart.
This is done by using for example:
RadChart1.ExportToImage(fileName, new PngBitmapEncoder()); 
or
RadChart1.ExportToExcelML(fileName);
where RadChart1 is a chart with five regular LineSeries drawn in it.
But as soon as these methods are accessed, I get an exception error:
"A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in PresentationCore.dll"

I already tried to use a filestream instead of a filename, I checked the filename, etc, etc, but I keep getting that same error without any additional information. And since I cannot do much different than giving those standard parameters (I also tried with dpi parameters, which also didn't make a difference), I am totally lost on this problem. Any idea what is going wrong or in what direction I should be searching for this problem?

I am using version 2011.1.510.40 of the Telerik controls.

Thank you in advance,
Dominique
Nikolay
Telerik team
 answered on 15 Sep 2011
0 answers
132 views
I have a radio button in a radGridView column, using a DataTemplate. However cannot get binding to work on the radio button. Can you send or point me to a full example of using a radio button in radGridView?
Michael
Top achievements
Rank 1
 asked on 14 Sep 2011
1 answer
110 views
Hi,

I was able to set additional y-axis on the left side of the radchart area but the axis labels, title and ticks are shown on the right side of the additional axis. How can I set the additional axis so that axis labels etc are shown in the left side of the additional axis?

I'm using WPF version of RadChart control (version 2011.2.712.40)

Regards,
Auvo

Sia
Telerik team
 answered on 14 Sep 2011
5 answers
270 views
Hi support team,

I trying to use a special DataTemplate for each data type of column in my grid:
e.g. a DataPicker for Dates, a string editor for strings, ..

I try to achive this by using a style selector, but my problem is that I can't bind the editor to the data of the cell/column.
All the examples  I found always bind a Template to a specific column but not the column of the templated cell.

If I bind the template to a specific column "MyDataColA" like this, it works.
<inh:CellEditTemplateSelector x:Key="cellEditTemplateSelector">
   <inh:CellEditTemplateSelector.DateTimeEditStyle>
      <DataTemplate>
         <telerik:RadDatePicker SelectedValue="{Binding MyDataColA, Mode=TwoWay}"/>
      </DataTemplate>
   </inh:CellEditTemplateSelector.DateTimeEditStyle>
</inh:CellEditTemplateSelector>

But how to bind to the same column as the templated cell?

Is there a way to do this?

Regards
Thomas

Maya
Telerik team
 answered on 14 Sep 2011
2 answers
118 views
Hello everyone,

I am trying to have a Range of 14 days as my X Axis for my Chart Control. The AddRange() only takes doubles, so is there a different method that I can use to get a Range from 13 days ago all the way up to and including Today? If anyone can help that would be great.

Thank you,
Chris
chris
Top achievements
Rank 1
 answered on 14 Sep 2011
3 answers
154 views
Hi,
I have successfully changed the date/time formats used throughout my app (including Telerik controls) by using the following lines:

Thread.CurrentThread.CurrentCulture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongDatePattern = "yyyy-MM-dd";
Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortTimePattern = "HH:mm";
Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongTimePattern = "HH:mm:ss";

However, there is still one instance where the ScheduleView stubbornly refuses to use my formats: when I click on an appoinment's edge and hold the mouse button to resize the appointment, previews are shown for both the start time and end time, but those previews use the AM/PM format. Is there a way to change that ?

Thanks,
Sebastien
Yana
Telerik team
 answered on 14 Sep 2011
12 answers
362 views
I'm not sure if I'm going about this the right way, but here's my situation.

I've got a MVVM Prism WPF app. In my shell, I created a RadToolBar and made it a region since it's an ItemsControl.

In my module, I created a userControl, then instead of deriving from UserControl, I derive it from Button. In my module initialization, I'm adding that derived button to the RadToolBar's region. I'm also creating a new RadToolBarSeparator and adding it to the region as well (just before adding my derived button) and it of course shows up with the right styling.

It adds it correctly and it works as expected, but it isn't taking on the style of the toolbar buttons that would be added the regular way. It just looks like a standard button. Do I need to implement the style explicitly?
Petar Mladenov
Telerik team
 answered on 14 Sep 2011
3 answers
230 views

Hi,

We are trying to use the MaskedInputCurrency control but we're having issues using different cultures.

Especially the data input goes haywire when using cultures with a different decimal seperator. (using the Dutch Culture for example)
Normally entering 123 in the currency control gives 123.00, but when switching culture the input becomes 1.23

Also we cant get a Negative value, when using the
UpdateValueEvent="LostFocus" but it works fine with "PropertyChanged"
You can enter a negative value, but when exiting the field it reverts back to the postivive value.
(except when programaticly setting a negative value, it stays negative all the time, and you cant switch to a positive one)

A smaller issue is that the negative sign (mostly '-' or '()' ) is shown twice ( '--123' and '((123)' ) when the control is unfocussed.

Hope you can help us,
Marinus

PS The MaskedNumeric Input works fine and doesn't have these issues, but it uses the wrong seperators (for numeric instead of currency)

PPS the code we are using; the converter is a toCents converter as we store the values a an Int. we are using the latest build 2.0823.40

 <telerik:RadMaskedCurrencyInput 
    IsCurrencySymbolVisible
="False"     IsClearButtonVisible="False"     InputBehavior="Insert"     Mask="#9.2"     SelectionOnFocus="SelectAll"     TextMode="PlainText"      SpinMode="PositionAndValue"     UpdateValueEvent="PropertyChanged"      Placeholder=" "     AutoFillNumberGroupSeparators="True"  >                 <telerik:RadMaskedCurrencyInput.Value>                     <t:XBinding Path="Parameters.Amount" Mode="TwoWay"                             Converter="{x:Static t:AmountConverter.Default}">                         <Binding.ValidationRules>                             <StaticResource ResourceKey="AmountValidationRule" />                         </Binding.ValidationRules>                     </t:XBinding>                 </telerik:RadMaskedCurrencyInput.Value> </telerik:RadMaskedCurrencyInput>
Petar Mladenov
Telerik team
 answered on 14 Sep 2011
1 answer
122 views
Hello Telerik,

I'm in the situation where the appointment items source is being refreshed async (from some other thread, but delegate to the GUI thread).

However when I select an item, the ensure selection of the appointment item doesn't have it's datacontext (occurenceinfo) set (if the item is removed and added to the items source).

Hence, there is sometimes an nullpointer exception.

Any toughts?

Rosi
Telerik team
 answered on 14 Sep 2011
0 answers
115 views

Hello

Why when in add range to the collection I don’t get to the data loading event?

How can I make it work without change the items source?

Best regard

Ehud

Avi Avni
Top achievements
Rank 1
 asked on 14 Sep 2011
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
PersistenceFramework
DataPager
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?