Telerik Forums
UI for WPF Forum
3 answers
120 views
Hi,

I have a RadGridView with a GridViewImageColumn, this column is map to a property of my object. Depending of the value of the property, I display 2 differents images. In my dialog, the users have two buttons, when the users click on a button, I change the value of the property of the current object and I switch the the next item in the list. The problem is that I have to call a rebind() to see my image but the rebind seem's to take some time and my users have to wait between each click.

Thank's
Vlad
Telerik team
 answered on 14 Mar 2012
2 answers
443 views
Hello, I am trying to use the RadMaskedNumericInput control for masking text and binding on some customer data, such as phone numbers. I have found this control to be extremely buggy and unusable. 

I am using a custom mask "(###) ###-####" and it works fine. The phone numbers are stored as 10 digit strings with no separators ("0123456789" for example). When I load a customer, the value shows up correctly masked in the control (I see (012) 345-6789). 

The main problem is that the bound property on the model never gets set. So if I am entering a new customer and type in the phone number, it does not get saved. I found that this is because the Value property of the numeric input never gets changed, as the conversion from string always fails. I have tried setting ValueToTextConverter to convert between double? and string, and I found that when NumericInput attempts to convert what is typed and store it the double? Value property, it always includes the mask in the string it's trying to convert. So it tries to convert "(012) 345-6789" to a double and this of course fails. I have tried binding to the Text property instead, but this does not work either as it includes the characters from the mask.

I have TextMode set to MaskedText, please do not recommend that as the solution because it does not work. I have tried setting it in markup and via an extended class. If I set it in markup, the typed text will stay in the control, but still the values will never be set. If I set TextMode via the extended class, the typed characters will disappear when the control loses focus, though they will reappear when it regains focus. But still the databinding will not set the model's properties.

I am using release 2011.3.1116.40 and unfortunately upgrading is not possible as this is the version provided and required by my client.

Here is the code for the value converter I used with MaskedNumericInput:

[CanConvert(typeof(System.String), typeof(System.Nullable<double>))]
public class StringToNullableDouble : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        string s = value as string;
        if (s == null) return null;
        double d;
        if (Double.TryParse(s, out d)) return d;
        return null;
    }
    public object ConvertBack(object value, Type targetType,
    object parameter, System.Globalization.CultureInfo culture)
    {
        double? d = value as double?;
        if (d == null || !d.HasValue) return null;
        return d.Value.ToString();
    }
}


Here is a XAML sample:

<tel:RadMaskedNumericInput
 HorizontalAlignment="Left"
VerticalAlignment="Center"
 EmptyContent="Enter Phone"
 Width="120" 
Margin="2"
Mask="(###) ###-####"
Value="{Binding Path=Customer.Phone, ValidatesOnDataErrors=True, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
FontWeight="Bold"
AllowInvalidValues = "False"
 AutoFillNumberGroupSeparators = false;
  AutoFillZeros = "False"
FlowDirection = "LeftToRight"
 Precision = "0"
 HorizontalContentAlignment = "Left"
TextMode = "MaskedText"
SpinMode = "None"
/>
Mike
Top achievements
Rank 1
 answered on 14 Mar 2012
2 answers
207 views
Hello.

In the past, I used to use the Chart control but migrated a few months ago to the ChartView control due to the memory leak associated with the Chart control.  Everything has been great, the only problem I've found is that I used to be able to specify the opacity of the series (for when different series would overlap) like this:

<telerik:LineSeries Stroke="#FF51B0DD" StrokeThickness="2" Opacity="0.6"/>


This no longer works with the ChartView control.  Any ideas why or what I can do to re-enable this behavior? 
Nick
Top achievements
Rank 1
 answered on 13 Mar 2012
2 answers
580 views
The Separator element does not show in RadRibbonView

This code is from the sample code shipped with telerik wpf controls
<StackPanel Margin="3">                             
    <telerik:RadRibbonButton SmallImage="Images/16/Cut.png" Text="Cut" Command="Cut"/>  
    
<telerik:Separator />                             
    <telerik:RadRibbonButton SmallImage="Images/16/Copy.png" Text="Copy" Command="Copy" />   
</StackPanel>
The panel is in a Ribbon group, itself in a Ribbon Tab.

The Separator does not show in the Visual Studio Editor (it is selectable but not visisble) and it does not show at run time.
Giving the Separator a width and height makes it visible at design time but not at design time.

Any help will be appreciated
PMoransais
Top achievements
Rank 1
 answered on 13 Mar 2012
1 answer
142 views
Hi.

when I place a RadNumericUpDown inside a RadBusyIndicator, the NumericUpDown looks disabled until I move the mouse cursor over it. 
I tested this with a minimal example:

<Window x:Class="WpfApplication1.MainWindow"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"                       
        Title="MainWindow" Height="100" Width="100">
     
    <telerik:RadBusyIndicator>
        <telerik:RadNumericUpDown />     
    </telerik:RadBusyIndicator>
</Window>

When you start the example, the RadNumericUpDown is grayed out, but isn't disabled.
We are using Telerik WPF-Controls 2012.1.215.40. Is there a fix for this issue?

Best regards, 
   Jörg.
Georgi
Telerik team
 answered on 13 Mar 2012
1 answer
161 views
Hello,
I purchase an HP touchSmart PC, I would like to know if I have a WPF application with telerik components (Book) does it works on the Touch PC? I mean what is the behaviour of the Book component, can i open the book and zoom it with fingers?
thanks
Tina Stancheva
Telerik team
 answered on 13 Mar 2012
3 answers
129 views
Hello I would like to implement a tooltip that displays multiple fields of my Object.
So far the only solution I have found is creating a Itemtemple with TooltipService.Tooltip filled in.
This work except for one thing, if I do this I must remove DisplayMemberPath="Name".

But if I do this the search funtion does not work anymore.
Meaning if I type "s" it does not jump anymore to the first item that start with an "s" in its name.

How can I resolve this?
Konstantina
Telerik team
 answered on 13 Mar 2012
2 answers
370 views
Hi,
I have a probelm. In richtextbox I am able to inserting the image.
Its rendering with original size. 

private void AddImages(List<byte[]> productImages)
{
	foreach (var item in productImages)
{
this.rtbEditor.InsertImage(new MemoryStream(item),"png");
this.rtbEditor.Insert("   ");
}
}

But how to insert the images with fixed size (32 x 32) ?

Thanks for your help.

Thanks and Regards
Naresh Mesineni
Iva Toteva
Telerik team
 answered on 13 Mar 2012
1 answer
122 views
Hello EVERYONE!

I am having a problem with RadGuage Major Ticks, See attachment for detailed understanding.

After application get started, We can see everything working fine, but ticks are taking weird look as soon as I maximize the screen and restore it to default view.

Please help me to solve it.

Advanced Thanks!!

Maulik Suchak
www.mauliksuchak.in
Andrey
Telerik team
 answered on 13 Mar 2012
1 answer
119 views
I have created attached example where i would drag controls like pushbuttons or checkbox.

1) In the attached example all works , but my Button is inglobated inside Shape while i would see only my Pushbutton with the real size

2) Have you one simple example or better this modified in binding with one class with width / height properties where the displayed control is Button or textbox dependig by class type using data template ?

Best regards

Claudio Rossi
Tina Stancheva
Telerik team
 answered on 13 Mar 2012
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)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?