Telerik Forums
UI for WPF Forum
1 answer
120 views
I try to set Binding To ContentControl   with No Success

<telerik:RadOutlookBar.ContentTemplate>
<DataTemplate>

 

    <ContentControl Content="{Binding ActiveBar}"/>

</DataTemplate>
</telerik:RadOutlookBar.ContentTemplate>

Miro Miroslavov
Telerik team
 answered on 14 Mar 2012
2 answers
108 views
Hi

I am new to the telerik wpf controls and because I am am unsure of their capabilities, I don't know which one to select. I've been considering  the radgridview in "hierachical mode" but now I'm not sure whether this is the correct control to use or perhaps the TreeListView.

My use case is as follows:
I have some hierarchical data as follows

Subject A  Name  Address  DoB etc
   HospitalVisit1  VisitDate  SeenBy etc etc
      Treatment1 Location Drug  etc etc
      Treatment2 Location Drug  etc etc 
      Treatment3 Location Drug  etc etc 
   HospitalVisit2  VisitDate  SeenBy etc etc
      Treatment1 Location Drug etc etc
      Treatment2 Location Drug etc etc 

Subject B  Name  Address  DoB etc
   HospitalVisit1  VisitDate  SeenBy etc etc
      Treatment1 Location Drug etc etc
      Treatment2 Location Drug etc etc 

I need to display the above. Then I going to provide the UI to flatten this data into 1 row per subject. To do this, I think I need to add a boolean columns to permit the user to choose which of the child events they want to use in the flattening mechanism. eg for Subject A

X    Subject A  Name  Address  DoB etc
        HospitalVisit1  VisitDate  SeenBy etc etc
           Treatment1 Location Drug  etc etc
           Treatment2 Location Drug  etc etc 
           Treatment3 Location Drug  etc etc 
X      HospitalVisit2  VisitDate  SeenBy etc etc
X         Treatment1 Location Drug etc etc
           Treatment2 Location Drug etc etc  

The rows marked X will then be used to create a flat structure eg

Subject A  Name  Address  DoB HospitalVisit2  VisitDate  SeenBy  Treatment1 Location Drug etc etc 

I'd be grateful if someone could suggest which control would best suit my purposes. I'd assumed the radgridview or the treelistview but perhaps there may be other ways of doing this which may be better

Many thx

Simon



Vlad
Telerik team
 answered on 14 Mar 2012
3 answers
144 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
468 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
247 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
626 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
155 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
178 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
158 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
400 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
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?