Telerik Forums
UI for WPF Forum
1 answer
231 views
Hello,

When I use InsertFragment(document) to insert text from one document to another it is getting inserted with a new paragraph and a new line after the fragment. But I want to insert text without that. It must be exactly as in the original file.

I've tried this code:

var editor = new RadDocumentEditor(document);
editor.Document.Selection.SelectAll();
var fragment = new DocumentFragment(editor.Document.Selection);

But it was wrong if there were CustomAnnotationRange in the copied fragment (CopyContentFromOverride is not called and values of my properties are lost).

Can you help me?
Thanks in advance.

Alexandre.
Mihail
Telerik team
 answered on 27 Mar 2015
4 answers
170 views
I have a RADGridview and I would like to be able to tell what cell is loading (ex: row 3 cell 2) from the CellLoaded event. I need to change some of the properties of the cell based on what cell it is.   
Dimitrina
Telerik team
 answered on 27 Mar 2015
5 answers
420 views
When you group or sort the GridView by one column and afterwards change the corresponding property, the items are more or less randomly inserted in the list.
In my case, the items have some natural sorting by some item number (as indicated by the underlying ItemsSource). There is a property which determines the ordering, however this is not exposed as a column.

Is there any way to force the items to keep this order (inside their respective groups)?

Alex
Dimitrina
Telerik team
 answered on 27 Mar 2015
1 answer
119 views
The chart in my app performs relatively well with exception to one odd behavior.

First, I am creating a point series manually.  I say manually meaning I am creating it point by point.  I do this using a PointTemplate so I can control the color of each point in the series.  The retrieval of data and the creation of each point in the series happens pretty quickly.  Less than 80 milliseconds on average.

Also on the window is a grid where when selecting a row the point series is drawn in the chart.  Clicking another row removes the previous point series and creates a new one.

If I start by clicking the first row and then hold down the down arrow, it draws the first 4 to 5 rows with ease and then seems to pause.  When it finally unpauses, it has "skipped" about 10 to 12 rows and from then on never pauses again.  I have verified in code that the data for the "skipped" rows is being loaded.  They series just aren't being rendered.

A few observations:
  1. When the chart is very small I do not experience this.  When the chart is larger I do.
  2. As I said, after the pause, it continues and then never pause again.  However if I move in the opposite direction in the grid it does pause.  But again after the pause it does not do it again.  Then going in the opposite direction again it does the same thing.

I have tried all the different RenderOptions available.​  I have also tried the RenderMode setter which is obsolete.  I have also tried not using a PointTemplate.

Are there other tweaks that can be done to resolve this?


<telerik:RadCartesianChart Name="Chart"
                           Grid.Column="0">
 
    <telerik:RadCartesianChart.Resources>
        <DataTemplate x:Key="PointSeriesTemplate">
            <Ellipse Fill="{Binding DataItem.Color, Converter={StaticResource ColorToBrushConverter}}" Width="3" Height="3"/>
        </DataTemplate>
    </telerik:RadCartesianChart.Resources>
 
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartPanAndZoomBehavior/>
    </telerik:RadCartesianChart.Behaviors>
 
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:DateTimeCategoricalAxis DateTimeComponent="Minute"
                                         LabelFitMode="MultiLine"
                                         LabelFormat="H:mm"
                                         LineThickness="1"
                                         MajorTickInterval="60"
                                         MajorTickLength="5"
                                         TickThickness="1"/>
    </telerik:RadCartesianChart.HorizontalAxis>
 
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis LineThickness="1"
                            MajorTickLength="5"
                            TickThickness="1"
                            Title="Percent Change" />
    </telerik:RadCartesianChart.VerticalAxis>
 
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
    </telerik:RadCartesianChart.Grid>
 
    <telerik:RadCartesianChart.SeriesProvider>
        <telerik:ChartSeriesProvider Source="{Binding ChartData}">
            <telerik:ChartSeriesProvider.SeriesDescriptors >
 
                <telerik:CategoricalSeriesDescriptor ItemsSourcePath="ChartItems" ValuePath="YValue" CategoryPath="XValue">
                    <telerik:CategoricalSeriesDescriptor.Style >
                        <Style TargetType="telerik:PointSeries">
                            <Setter Property="PointTemplate" Value="{StaticResource PointSeriesTemplate}"/>
                            <Setter Property="RenderOptions">
                                <Setter.Value>
                                    <telerik:BitmapRenderOptions/>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </telerik:CategoricalSeriesDescriptor.Style>
                </telerik:CategoricalSeriesDescriptor>
 
            </telerik:ChartSeriesProvider.SeriesDescriptors>
        </telerik:ChartSeriesProvider>
    </telerik:RadCartesianChart.SeriesProvider>
 
</telerik:RadCartesianChart>
Petar Marchev
Telerik team
 answered on 27 Mar 2015
3 answers
383 views
Hi,

In my solution, in namespace B, I have a project named CustomControls. This project contain 5 customs UserControls based on existing Telerik UserControls.

ie:

public class CustomExpander : RadExpander (no xaml attached to the class)
{
}

When I try to use my customs UserControls in my main project which is in namespace A in the same solution, in my xaml I can add as an example my CustomExpander but all the properties of the RadExpander are not accesssible in the xaml?!?

Thank's
Alain
Kalin
Telerik team
 answered on 27 Mar 2015
1 answer
252 views
Hello.

I was trying to make a simple UI-test (with NUnit framework), and my test needs to click on telerik RadDropDownButton on WPF window.
When I click on this button using mouse, it works fine (I can see 'RadContextMenu' with 'RadMenuItem' items), but when my test doing this, RadContextMenu does not appear.

Here is the part of Veiw.xaml file:

<telerik:RadDropDownButton x:Name="btnDrop" AutomationProperties.AutomationId="btnDropMenu">
         <telerik:RadDropDownButton.DropDownContent>
                    <telerik:RadContextMenu BorderThickness="0">
                                <telerik:RadMenuItem Header="option1" Command="{StaticResource op1CommandReference}"/>
                                <telerik:RadMenuItem Header="option2" Command="{StaticResource op2CommandReference}"/>
                                <telerik:RadMenuItem Header="option3" Command="{StaticResource op3CommandReference}"/>
                   </telerik:RadContextMenu>
         </telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>

This is my code:

var button = win.Find.ByName<Telerik.WebAii.Controls.Xaml.RadDropDownButton>("btnDrop");
button.User.Click();

There is no exception, test finds this button, but when I'm trying to find RadMenuItem, I get this exception (just because RadContextMenu does not appear):

ArtOfTest.Common.Exceptions.FindElementException : Element Not found!

How can I fix this?
Peshito
Telerik team
 answered on 27 Mar 2015
8 answers
108 views
Hi,

In my application, I am using a RadPaneGroup with dynamically loaded RadPanes. As new RadPanes get added to this group, the pane header shrinks. How to prevent this shrinking issue when new panes get added to the group?

Any pointers?

Thanks,
Lax
Kalin
Telerik team
 answered on 27 Mar 2015
1 answer
122 views
Hello.

I was writing UI-test for WPF application (using NUnit Framework and ArtOfTests), and in my test I need to click on RadDropDownButton:

                   <telerik:RadDropDownButton x:Name="btnDrop">
                        <telerik:RadDropDownButton.DropDownContent>
                            <telerik:RadContextMenu >
                                <telerik:RadMenuItem Header="op1" Command="{StaticResource op1CommandReference}"/>
                                <telerik:RadMenuItem Header="op2" Command="{StaticResource op2CommandReference}"/>
                                <telerik:RadMenuItem Header="op3" Command="{StaticResource op3CommandReference}"/>
                            </telerik:RadContextMenu>
                        </telerik:RadDropDownButton.DropDownContent>
                    </telerik:RadDropDownButton>

To click on this button, I use the following code:

var button = win.Find.ByName<Telerik.WebAii.Controls.Xaml.RadDropDownButton>("btnDrop");
button.User.Click(MouseClickType.LeftClick);

The test works fine (no exception have been thrown), but RadContextMenu does not appear.
When I click on this button using mouse, I can see this menu with 3 RadMenuItem items.

How can I solve this problem?
Peshito
Telerik team
 answered on 27 Mar 2015
1 answer
82 views
Hi there, 

we are currently developing a wrapper control of your RadChartView RadCartesianChart. In this control we are using a DateTimeContinuousAxis like this:

<telerik:RadCartesianChart.HorizontalAxis>
  <telerik:DateTimeContinuousAxis x:Name="dateTimeContinuousAxis" PlotMode="OnTicks" LabelFitMode="Rotate" MajorStepUnit="Second"  LabelFormat="HH:mm:ss" FontSize="{Binding AxisFontSize, FallbackValue=14}" />
 </telerik:RadCartesianChart.HorizontalAxis>

When changing the AxisFontSize we entirely re-add all Series with new loaded data to get rid of this problem without success. In that process it does not even matter the new data is in a different time range or not. This is happen in design time and in runtime after changing the AxisFontSize of our control: 

https://dl.dropboxusercontent.com/u/55589036/Pictures/Animated%20Screenshots/20150326_1440.gif

Besides the AxisFontSize we provide some other DependencyProperties:

· TimeRange to adjust the duration time. When changing the TimeRange we will also re-add everything and generate some empty data to get the desired time span on the X axis.
· TimeTickCount to change the number of time ticks on the X axis. When this is changed we only re-calculate the desired MajorStep value for the DateTimeContinuousAxis. 

Combining those three settings together results in strange behaviors with the X axis date time value labels when changing the AxisFontSize in the first place: 

https://dl.dropboxusercontent.com/u/55589036/Pictures/Animated%20Screenshots/20150326_1441.gif

Now how can we get rid of it? We already tried to re-add entirely new data in a different time scope. We also tried using UpdateLayout() and InvalidateVisual() in the end of our Update() method that re-adds the series. It seems this is a bug and we cannot find a way to bypass it. As I see you are keeping the old labels even on adding new data plots. This might be useful for resource management, but it disallows us to get rid of this display bug by simply redrawing those labels. 

How can we fix it? Or is there a way to force your control to really redraw the labels?


Thank you!

Peshito
Telerik team
 answered on 27 Mar 2015
3 answers
70 views
I've noticed that if I have a document with a table in it and am doing MergeFields as well. Whenever I hit one of the buttons to change what the MergeField is showing (Field Codes, Preview, etc.). The ribbon UI immediately switches to the "Layout" tab for the table, even if I am not in the table. After you press the next button once for previewing MergeFields, the issue appears to go away, but to a client using this, it would be rather annoying.
Amruta
Top achievements
Rank 1
 answered on 27 Mar 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
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
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?