Telerik Forums
UI for WPF Forum
1 answer
113 views

Hello,

When I transfer an object to a RadDiagram (when it happens OnDragEnter), I change the size of the DragVisual. How can I update DragVisualOffset?

Polya
Telerik team
 answered on 09 Aug 2017
2 answers
103 views

Hi, 

I am currently enjoying the trial of Telerik UI for WPF!

I've hit an issue which I really need to solve. My interface contains a RadTimeline and a load of other components. I need the other components to adjust in size and position as I scale/slide the range slider at the bottom of the timeline (I believe it's a RadSlider), as though 'linked' to the timeline. 

To do this, instinctively I would bind to ActualVisiblePeriodRange, ActualVisiblePeriodStart, ActualVisiblePeriodEnd etc. Something like this...

<telerik:RadTimeline x:Name="RadTimeline1" ActualVisiblePeriodRange="{Binding VisiblePeriodRange, Mode=OneWayToSource}" />

However, this doesn't seem to work. I am aware that these properties are readonly.

 

How can I get the above properties into the View Model so that I can make use of them in other view models? Bear in mind, I don't want to set ActualVisiblePeriodRange/Start/End, I just want to get their values.

Many thanks in advance!

Dinko | Tech Support Engineer
Telerik team
 answered on 09 Aug 2017
8 answers
611 views
It seems impossible even though I am using a binding mode of OneWayToSource.  Are there plans to allow us to Databaing to this property.  It would be great to be able to Databind that to a collection on my viewmodel.

Thanks,
David Sandor
Carmen
Top achievements
Rank 1
 answered on 09 Aug 2017
1 answer
163 views

Hello,

When the focus is on a RadComboBox, pressing Ctrl+F4 opens it.

From the documentation, F4 should open / close it, not Ctrl+F4.

This bug is annoying, because Ctrl+F4 is the standard shortcut to close a tab or a pane.

Kalin
Telerik team
 answered on 09 Aug 2017
0 answers
67 views

Hi Telerik Team,

    I want to open a Telerik:Raddocking in a popup on Button Click. And button are there in toolbar. can you please provide a sample example to achieve that thing. i am attaching the image when i click on that button then the copy of the given raddocking will open in a new pop as well.

Regards

Raju

Raju
Top achievements
Rank 1
 asked on 09 Aug 2017
4 answers
165 views

Hi Telerik,

 

I have a RadGridView with some Columns and 2 ColumnGroups. Each ColumnGroup has 2 Columns.

I want to know if is it possible to "merge" 2 child Columns Header in each ColumnGroup and display the Header ColmunGroup parent. Finally, there is just 1 row, with Column Header and ColumnGroup Header inside.

 

I attached 2 screens to show you the actually result and the objective.

 

Thank you !

Stefan
Telerik team
 answered on 09 Aug 2017
1 answer
110 views

hello!

I use ExpressionEditor in a project ,the main code is: 

xaml:

 <TextBox x:Name="aaa"/>
<telerik:RadExpressionEditor Grid.Row="1" x:Name="ExpressionEditor"
ExpressionChanged="ExpressionEditor_ExpressionChanged"
ExpressionText="Sin(100)" />

 

cs:

private void ExpressionEditor_ExpressionChanged(object sender, RadRoutedEventArgs e)
        {
            try
            {
                dynamic dynamicExpression = ExpressionEditor.Expression;
                dynamic compiledExpression = dynamicExpression.Compile();
                object executionResult = compiledExpression();
                aaa.Text = executionResult.ToString();
            }
            catch
            {

            }
            
        }

 

the TextBox can show the result,but result preview of the RadExpressionEditor did not show the result,why? what should I do?

by the way,can we improve the RadExpressionEditor to make the programmer can  add custorm function or constants like Pi?

Wang
Top achievements
Rank 1
 answered on 09 Aug 2017
1 answer
291 views
Hi,

I'm new to telerik products and this is a really simple question that I'm trying to find right now.  I'm currently generating a letter pdf using a method that returns a RadFixedDocument, which is made up of multiple Blocks placed in different positions of a single page using a FixedContentEditor.  Right now I need to convert specific text fragments of the letter string to bold (ones that are wrapped in bold tags) before converting to pdf, but I haven't been able to find a way to separate bold from non-bold text besides using Blocks.  Is there an easier way to do this just with UI for WPF?

Thanks,

Will
Tanya
Telerik team
 answered on 08 Aug 2017
6 answers
105 views
I found that DataFormDataField.ContentTemplate doesn't work since version "RadControls for WPF Q2 2013",  actually i only have the latest 3 versions. I've tried each one, all the same, just display the default textbox. My code is simple, just copy from your online documentation, as below:
     <Grid x:Name="LayoutRoot" Background="White">
            <Grid.Resources>
                <DataTemplate x:Key="MyTemplate">
                    <StackPanel Orientation="Horizontal" >
                        <telerik:DataFormDataField>
                            <telerik:DataFormDataField.LabelTemplate>
                                <DataTemplate>
                                    <Label Foreground="Orange">Title:</Label>
                                </DataTemplate>
                            </telerik:DataFormDataField.LabelTemplate>
                            <telerik:DataFormDataField.ContentTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Text="25" Margin="0,0,10,0" />
                                        <TextBlock Text="years" Foreground="Green" VerticalAlignment="Bottom" />
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:DataFormDataField.ContentTemplate>
                        </telerik:DataFormDataField>
                    </StackPanel>
                </DataTemplate>
            </Grid.Resources>
            <telerik:RadDataForm x:Name="DataForm1"
                           AutoGenerateFields="False" 
                           ReadOnlyTemplate="{StaticResource MyTemplate}">
            </telerik:RadDataForm>
        </Grid>

MOST URGENT, PLEASE ANSWER IT QUICKLY, THANK YOU!!
Yoan
Telerik team
 answered on 08 Aug 2017
4 answers
247 views

I have a RadCartesianChart defined in XAML with multiple series. Each series has the ItemsSource, HorizontalAxis, VerticalAxis and Visibility bound to MVVM model properties. The ChartView itself has the DataContext bound inherently from the DataContext of my chartviewer usercontrol's DataContext.

When my control is first displayed, everything works as expected, the chart is displayed correctly and I can switch through the different series with different data and different label formats.

The chartviewer control is part of a ContentControl which picks the relevant View from the assigned DataContext type. This is switched depending on user input.

Firstly, if I navigate away from the chartviewer control I have to use the following code to prevent a "Cannot modify the logical children for this node at this time because a tree walk is in progress" exception from the ChartView:-

private void ChartViewer_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
{
      if (e.NewValue == null)
      {
            chartCart.DataContext = null;
            chartCart.UpdateLayout();
      }
}

Secondly if I then go back to the ChartViewer reusing he same MVVM model that was previously used, the ChartView now show "HorizontalAxis not set" and "VerticalAxis not set". It does not matter what I change on the model, I cannot get the chart to show anything else. When using Visual Studio to look at the ChartView, the DataContext binding is valid, the series are all there, and all of the series have correct bindings to the model properties and seem to be correct. I noticed that the axes get their Chart property set when assigned to the series, so I have tried rebuilding the axes in the same way I do when the chart is working (first view).

I have also tried binding the DataContext of the ChartView to a different DependencyProperty which allows me to get away from the exception (noted above), but still the same problem. I have tried stepping through the Visual Tree and rebuilding all of the bindings to ensure they are all active, but this has no effect.

What would cause the EmptyContent message to show when there are series available, each with axes set and are visible, and have point data?

Rik
Top achievements
Rank 1
 answered on 08 Aug 2017
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?