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

I am using a RadMaskNumericInput control, but I am not able to clean the value on the ViewModel. My set property is not hit when the user clicks the RadMaskNumericInput.ClearButton. 
I also tried to set the ClearCommand to an ICommand, but it is neither hit when the user clicks on the Clear button.
The only thing that happens when the clear button is clicked is that the text of the RadMaskNumericInput is cleaned, but not the value bound to it.
The version is the 2011 Q1
What I am doing wrong?

Thanks in advance,

This is the xaml:

            <telerik:RadMaskedNumericInput Grid.Column="1"
                                           VerticalAlignment="Center" HorizontalAlignment="Stretch"
                                           Mask="{Binding Path=Mask}"
                                           IsClearButtonVisible="True"
                                           AutoFillZeros="True"
                                           AutoFillNumberGroupSeparators="{Binding Path=IsNumber}"
                                           AllowSkipPlaceholders="False"
                                           Background="{Binding Path=IsValid, Converter={StaticResource boolToBackgroundConverter}, Mode=OneWay}">                <telerik:RadMaskedNumericInput.Value>
                    <Binding Path="Value"
                             Mode="TwoWay"
                             UpdateSourceTrigger="LostFocus"
                             NotifyOnValidationError="True"
                             ValidatesOnExceptions="True"
                             ValidatesOnDataErrors="True">
                    </Binding>
                </telerik:RadMaskedNumericInput.Value>
            </telerik:RadMaskedNumericInput>

Alex Fidanov
Telerik team
 answered on 29 Mar 2011
5 answers
171 views
Hello,

I use 2 DateTimePicker, and i set the property "telerik:StartEndDatePicker.EndPicker". I'd like to disable the message "The end date you enterd occurs before the start date.". How can i do this?

Thanks
Yana
Telerik team
 answered on 29 Mar 2011
8 answers
192 views
Hi,

i am binding my data  but i want to have my own custom label for data. in addition i dont want to show the label for every data point but for every say 5th point.
how can i achieve this. ???
Missing User
 answered on 29 Mar 2011
3 answers
224 views
I am trying to load a standard xaml file into the RichTextBox and I am getting an exception when I do the import function.  The exception I am getting is:
"Unable to cast object of type 'System.Windows.Documents.FlowDocument' to type 'Telerik.Windows.Documents.Model.RadDocument'."

The file I am trying to import is:
 

<FlowDocument
  xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'
  xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
  <Paragraph FontFamily="Calibri" FontWeight="Bold" FontSize="24">
    WPF Flow Documents</Paragraph>
  <Paragraph>WPF Flow Documents are <Italic>quite sophisticated</Italic>.
    They support all common layout options, as well as many you probably
    do <Span Foreground="Red">not expect</Span>.</Paragraph>
  <List>
    <ListItem><Paragraph>First List Item</Paragraph></ListItem>
    <ListItem><Paragraph>Second List Item</Paragraph></ListItem>
    <ListItem><Paragraph>Third List Item</Paragraph></ListItem>
  </List>
  <Paragraph>Of course, Flow Documents also support the definition
    of <Bold><Span FontFamily="Comic Sans MS" FontSize="24"
    Foreground="Blue">in line</Span></Bold> font sizes and font faces.
  </Paragraph>
</FlowDocument>

 

My code is:

FileStream

 

 

xamlInStream = new FileStream(@"C:\testimport.xaml",FileMode.Open,FileAccess.Read);

 

 

 

 

XamlFormatProvider xamlFormatProvider = new XamlFormatProvider();

 

 

 

RadDocument radDocument = xamlFormatProvider.Import(xamlInStream);

 

 

editor.Document = radDocument;


What do I need to do to open standard xaml files.  Also, I noticed that when documents are saved as xaml documents the file format is of a RadDocument, is there a way to get a standard FlowDocument from the text box?
Ivailo Karamanolev
Telerik team
 answered on 29 Mar 2011
1 answer
77 views
Are documents written by the WPF XamlFormatProvider fully understood by the Silverlight XamlFormatProvider and vice versa? I'm asking because we might need OSX support down the road which we would provide using Silverlight if possible.
Ivailo Karamanolev
Telerik team
 answered on 29 Mar 2011
4 answers
204 views

Hello,

I am currently studying a solution in order to create a 3D menu similar to the menu of the PS3 from Sony.
For this, I use an horizontal RadCarousel to simulate my main menu.
I would like to insert for each item of this horizontal RadCarousel a new RadCarousel but vertically to simulate a sub menu.
Is this possible?

Other difficulties on the RadCarousel :
- How to make the first or the last selected item when I scroll ?
- Is it possible to disable the effect of depth RadCarousel ?

Thanks

huu phuc
Top achievements
Rank 1
 answered on 29 Mar 2011
2 answers
85 views
Can you please tell me the best way to achieve all the following:
1.  combobox in grid
2.  multi-column display in drop down list only
3.  type head in combobox

I tried the GridViewComboColumn but could not get type ahead or multi-column in the drop down list only.  I now have a CellTemplate with a RadCombobox but am having other issues like tab not changing the focus from a regular cell directly to the combobox and the selected row not changing when focus does hit the combobox.

Please help as the current implementation of trying to get an editable combobox in a grid seems very unweildy.

Thank you.
Mohamed
Top achievements
Rank 2
 answered on 29 Mar 2011
1 answer
135 views
When running the demo of the wpf controls and running the map example "First Look". Its possible to pan the map right off the screen.
I have the same issue in my application and I need to stop this from happening.

I see this was a previous issue under Issue ID 3713 - Map: Ability to limit panning and zoom ranges.
This issue has the status of resolved but I don't see what the solution is.

I figured out how to limit zoom ok by using MinZoomLevel and MaxZoomLevel but I see nothing for limiting panning.

I still need a solution for panning?

Please help.

Thanks
Andrey
Telerik team
 answered on 29 Mar 2011
3 answers
83 views
I have setup RadialGauge in xaml like this:
                <telerik:RadGauge x:Name="wciGauge" Width="300" Height="300" HorizontalAlignment="Right" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2"><br>                    <telerik:RadialGauge><br>                        <telerik:RadialScale Min="0" Max="100"><br>                            <telerik:RangeList><br>                                <telerik:RadialRange Name="Green" Min="0" Max="30" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Green" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Yellow" Min="30" Max="50" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Yellow" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Orange" Min="50" Max="70" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Orange" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Red" Min="70" Max="100" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Red" BorderBrush="LightGray"/><br>                            </telerik:RangeList><br>                            <telerik:IndicatorList><br>                                <telerik:Needle Name="needleIndicator" Value="{Binding CurrentWci.Score}" /><br>                                <telerik:StateIndicator Name="stateIndicator" Left="0.48" Top="0.60" RelativeWidth="0.1" RelativeHeight="0.1" Value="{Binding CurrentWci.Score}" /><br>                                <telerik:NumericIndicator Name="numericIndicator" Value="{Binding CurrentWci.Score}" Format="{}{0:F0}" FontSize="16" FontFamily="Arial" BorderBrush="Transparent"<br>                                                          Background="Transparent" Foreground="AntiqueWhite" Left="0.3" Top="0.80" RelativeWidth="0.55" RelativeHeight="0.16"><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                </telerik:NumericIndicator><br>                            </telerik:IndicatorList><br>                        </telerik:RadialScale><br>                    </telerik:RadialGauge><br>                </telerik:RadGauge><br>

It works well running the application inside VS 2010.  It crashes when I run a ClickOnce version of the application on the same computer.  Exception given Is:
Cannot create instance of 'Needle' defined in assembly 'Telerik.Windows.Controls.Gauge, Version=2010.3.1314.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Exception has been thrown by the target of an invocation.  Error at object 'Telerik.Windows.Controls.Gauges.IndicatorList' in markup file.

Nothing in code behind except these using statements:
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Gauges;

Regards
Arnvid
Andrey
Telerik team
 answered on 29 Mar 2011
1 answer
193 views
Hi Telerik,

It's perfectly possible that my issue is due to not understanding the focus topic, but the general WPF examples I find do not seem to work for me with RadDocking.

Goal / What I try to achieve:
- I wish to be able to double-click a row in a RadGridView, which is inside a RadPane.
- When double-clicking, I wish to open another RadPane, potentially one that's already open and focus a specific control (RadMaskedTextBox) inside the new RadPane.

(Our inspiration is the Error List in Visual Studio - our goal is exactly the same, directing the user to be able to edit a specific, problematic value).

Problem:
The control is not focused, rather the initial window is focused.

What I do:
I use Keyboard.Focus() to focus the RadPane
I use Keyboard.Focus() to focus the specific control.
It's done after the control is loaded and the specific control has .Focusable==.IsVisible==true
Result: System.Windows.Input.Keyboard.FocusedElement shows the desired control.
So far so good!
In the eventhandler OnRowActivated I set e.Handled = true

But when I exit the eventhandler OnRowActivated (that is: after debugging, the app is running again), the Error window has focus, not the one I just gave focus to.

So do my Telerik controls 'draw back' the focus as part of wrapping up the OnRowActivated event handler, or do you have some ideas on what to try out?

Thanks,

Anders, Denmark
Milan
Telerik team
 answered on 29 Mar 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?