Telerik Forums
UI for WPF Forum
4 answers
164 views

There are several other posts that looked similar and I used their code to come close but I am still having problems.  

Problem: I have a datatable with a number of columns which I have bound to the radgridview.  This works.  What I want to do now is restrict the columns based on additional data in the view model.  The modelview contains the datatable and the columns which I would like to bind.  I am somewhat new to WPF and MVVM.  I used the example from this post http://www.telerik.com/forums/column-collections but again it didn't work as I expect. 

 

Thank you for any suggestions or code.

 

Stefan
Telerik team
 answered on 22 Sep 2015
1 answer
202 views

I am using a RadRadicalGuage with an outside bar indicator. When I set the indicator to go full scale it cuts off the top and side of the bar indicator. Not sure how to fix this.

 

            <telerik:RadRadialGauge x:Name="DrillPressureGauge"  telerik:StyleManager.Theme="Windows8" Height="225" VerticalAlignment="Top" HorizontalAlignment="Left" Width="225" Margin="198,44,0,0" >
                <telerik:RadialScale Min ="0" Max="10000" Foreground="Transparent">
                    <telerik:RadialScale.Ranges>
                        <telerik:GaugeRange Min="0"
Max="6000"
                                        StartWidth="0.20"
                                        EndWidth="0.20"
                                        Background="Green"
                                        IndicatorBackground="Green" />
                        <telerik:GaugeRange Min="6000"
Max="7750"
                                        StartWidth="0.20"
                                        EndWidth="0.20"
                                        Background="Orange"
                                        IndicatorBackground="Orange" />
                        <telerik:GaugeRange Min="7750"
Max="10000"
                                        StartWidth="0.20"
                                        EndWidth="0.20"
                                        Background="Red"
                                        IndicatorBackground="Red" />
                    </telerik:RadialScale.Ranges>
                    <telerik:RadialScale.Indicators>
                        <telerik:BarIndicator
                                Value="10000"
                                StartWidth="0.1"
                                EndWidth="0.1"
                                EmptyFill="Transparent"
                                Background="LightGray"
                                BorderBrush="Transparent"
                                StrokeThickness="0"
                                telerik:ScaleObject.Location="Outside"/>
                        <telerik:Needle />
                        <telerik:Pinpoint/>
                    </telerik:RadialScale.Indicators>
                    <telerik:RadialScale.CustomItems>
                        <TextBlock Text="12345"
                           telerik:ScaleObject.RelativeX="0.35"
                           telerik:ScaleObject.RelativeY="0.85" Background="White" Foreground="Black" FontFamily="Calibri" FontSize="32" VerticalAlignment="Bottom" Height="36.063" HorizontalAlignment="Center" FontWeight="Bold" />
                    </telerik:RadialScale.CustomItems>
                </telerik:RadialScale>
            </telerik:RadRadialGauge>

​

Sia
Telerik team
 answered on 22 Sep 2015
1 answer
443 views
Hi,

 My requirement is

1. WPF Treeview control​ it should accept the user defined treeviewitem template and it should supports multiple levels.
2. Treeview inside a treeview with multiple levels.
3.​ Treeview with Lazy loading and Custom defined Paging support. ex: page contains 200 items.
4. In the Paging, When we scroll only 200 items should be display​(Not like a Grid control)..Only scrolling paging will be handled.
5.Treeviewitem with Image.​

Kindly reply me whether mentioned requirements should ​support your WPF Treeview control? if supports please send me sample and will showcase to client. Based on that we are planning to purchase telerik controls.
Martin Ivanov
Telerik team
 answered on 22 Sep 2015
1 answer
143 views

Hi,

What is a way to add custom connection properties? How can i serializing this custom connection properties.

For example i want to add MyCustomCode:string property to connection.

Martin Ivanov
Telerik team
 answered on 22 Sep 2015
11 answers
648 views
I'm using auto generating for a object which has a property of type string[].
the 'add' and 'delete' button are grayed out.
I tried to change the property type to List<string> and 'delete' would be usable but 'add' still not.
Could you give me some example of how to enable the full functionality of collection editor?>


The property definition in the object bind to RadPropertyGrid:

        string[] _mdAddresses;
        public string[] MdAddresses
        {
            get { return _mdAddresses; }
            set { _mdAddresses = value; }
        }

Stefan
Telerik team
 answered on 21 Sep 2015
3 answers
129 views

Hi, 

I have the following problem: 

If you shrink a container (by dragging with the mouse from one of the container corners), that is in a group with its content, both the container and its content is shrinking.
{See Pic1}

Unfortunately, you can shrink the container only as small as the content was before the start of the shrink operation.
{See Pic2}

This behavior seems to be ok if the content do not shrink with the container because of the container should not be smaller as its content.
But why do the shrink operation stops if the content is shrinking too?

Regards,

Kiril Vandov
Telerik team
 answered on 21 Sep 2015
4 answers
876 views

I have RadCartesianChart and i am create the AreaSeries view code behind:

RadCartesianChart chart = new RadCartesianChart();
chart.HorizontalAxis = new CategoricalAxis();
chart.VerticalAxis = new LinearAxis();
chart.HorizontalAxis.Visibility = System.Windows.Visibility.Collapsed;
chart.VerticalAxis.Visibility = System.Windows.Visibility.Collapsed;
 
// Get the style
Style smartLabelStyle = (Style)this.Resources["labelStyle"];
 
// Create new labelDefinition and set its DefaultVisualStyle property
ChartSeriesLabelDefinition labelDefinition = new ChartSeriesLabelDefinition()
            {
                DefaultVisualStyle = smartLabelStyle,
                Format = "{0:N2}",
                Margin = new Thickness(-40, 0, 0, 0)
            };
 
MyInstanse = new AreaSeries(); // this is my series
MyInstanse .ShowLabels = true;
MyInstanse .LabelDefinitions.Add(labelDefinition);
 
chart.Series.Add(MyInstanse);
 
And this is my XAML label style:
 <Style x:Key="labelStyle" TargetType="TextBlock">
   <Setter Property="Foreground" Value="Gainsboro" />
   <Setter Property="Background" Value="Transparent" />
</Style>

So all i want to add is border around my Label like in this example:

 http://docs.telerik.com/devtools/wpf/controls/radchartview/features/labels/smart-labels.html

 

Martin Ivanov
Telerik team
 answered on 21 Sep 2015
3 answers
706 views
With standard WPF TabControl it's possible changing tab using standard keyboard shortcut CTRL+TAB to move next and CTRL+SHIFT+TAB to move backward.

Is it possible to do the same with RadTabControl ?

Thanks,

Ivan
Martin Ivanov
Telerik team
 answered on 18 Sep 2015
3 answers
1.0K+ views

I've been using some usefull telerik controls for a while, at this point I'm adding some more options voor accessibility to my applications. Narrator or other screen readers are able to read AutomationProperties like Name and HelpText. But when setting these properties on the RadRichTextBox they are not reqognized by windows and the applications reading the AutomationProperties (tool to check: Inspect)

The AutomationMode of the Telerik AutomationManager is already set to FrameworkOnly. When something else is selected all my automationproperties on controls are ignored.

Here is the used xaml:

01.<telerik:RadRichTextBox HorizontalAlignment="Stretch"
02.                        VerticalAlignment="Stretch"
03.                        x:Name="radRichTextBox"
04.                        BorderThickness="0"
05.                        Margin="0,2,0,0"
06.                        DocumentInheritsDefaultStyleSettings="True"
07.                        Focusable="True"
08.                        FontSize="13"
09.                        FontFamily="Segoe UI"
10.                        AutomationProperties.Name="Message for chat">
11.    <i:Interaction.Behaviors>
12.        <behaviors:TelerikRichTextBoxOptionsBehavior />
13.        <behaviors:ChatRadTextBoxBehavior />
14.    </i:Interaction.Behaviors>
15.    <telerik:RadRichTextBox.InputBindings>
16.        <KeyBinding Modifiers="Control"
17.                    Key="Tab"
18.                    Command="{Binding Path=DataContext.NextTabCommand, RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}" />
19.        <KeyBinding Modifiers="Control+Shift"
20.                    Key="Tab"
21.                    Command="{Binding Path=DataContext.PreviousTabCommand, RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}" />
22.    </telerik:RadRichTextBox.InputBindings>
23.</telerik:RadRichTextBox>
24.<telerik:TxtDataProvider x:Name="TextDataProvider"
25.                         Text="{Binding PlainContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
26.                         RichTextBox="{Binding ElementName=radRichTextBox}"  />

Any suggestions how I can fix this or about what I'm doing wrong?

Boby
Telerik team
 answered on 18 Sep 2015
3 answers
297 views
I am trying to use ItemTemplateSelector for RadOutlookBar because I want the selected Item to ​look different from the non selected. Using ItemTemplate works fine but when I use an ItemTemplateSelector the constructor for ​​that custom DataTemplateSelector is called but method SelectTemplate is never called. I am using Version 2013.3.1316.45.
Peshito
Telerik team
 answered on 18 Sep 2015
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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?