Telerik Forums
UI for WPF Forum
3 answers
136 views
We are using RadControls for WPF version 2013.2.611.40

A bug was reported to us where the original selected text in a RadRichTextBox was not displayed in our custom Insert Hyperlink dialog.  This is because the RadRichTextBox does not pass along the selected text to the IInsertHyperlinkDialog.ShowDialog() method if the text includes trailing newline characters.

Expected behavior (for example, Microsoft Outlook):

Open a blank new email, type a word, press enter, and select the whole line containing the word.  The editor will select the word, along with the trailing newline character.  When you click Insert -> Hyperlink, the trailing newline character is deselected, so that it will not be included in the created hyperlink.  The "Text to display" field will then contain the word you typed.

Actual behavior (In the WPF RadRichTextBox)

Open a blank document, type a word, press enter, and select the whole line containing the word.  The editor will select the word, along with the trailing newline character.  When you execute the InsertHyperlinkCommand, IInsertHyperlinkDialog.ShowDialog() is called on our implementation of IInsertHyperlinkDialog as expected.  However, the newline character remains selected, and as a result the passed "text" string is null.  The resulting behavior is that we do not display anything in the "Text to display" field of the Insert Hyperlink dialog.

Is this a known issue?

Thanks,
Evan



   
Vasil
Telerik team
 answered on 20 Dec 2013
2 answers
254 views
Hello Telerik,

regarding this thread, I'd like to know if this issue still is not fixed? We really try to make it work, but the RadWindow doesn't resize, when its content size is changed.

Is there something required like setting the MinHeight?

If it works properly, I'd really like to know which properties need to be set to certain values, because I can't figure it out from the documentation.

EDIT: currently we achieve the behaviour we'd like to have through hacking the contents ActualHeight into the RadWindows Height property (content's OnSizeChanged event). We prevent layout cycles through a couple of if-statements, but we'd really like to get rid of this.
tung ngie
Top achievements
Rank 1
 answered on 20 Dec 2013
2 answers
215 views
Hi,

I have had this problem a couple of times now and i dont understand why it happens. 

Every time i try to use a property on for example an AreaSeries, the compiler tells me that this property does not exist in the telerik namespace "http://schemas.telerik.com/2008/xaml/presentation" even though the intellisense suggest the property. 

See attached image.

I have the following code for the graph:
<telerik:RadCartesianChart Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Margin="0,0,0,3" x:Name="lineSeries" ClipToBounds="False">
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis IsInverse="True" Name="verticalAxis" Title="Depth(µm)"/>
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:LinearAxis Name="horizontalAxis" Title="Concentration(µmol/l)"/>
            </telerik:RadCartesianChart.HorizontalAxis>
             
            <telerik:ScatterPointSeries x:Name="pointSeries" XValueBinding="XValue" YValueBinding="YValue" ItemsSource="{Binding}">
                <telerik:ScatterPointSeries.PointTemplate>
                    <DataTemplate>
                        <Ellipse Width="17" Height="17" Fill="Blue"/>
                    </DataTemplate>
                </telerik:ScatterPointSeries.PointTemplate>
            </telerik:ScatterPointSeries>
 
            <telerik:ScatterLineSeries ItemsSource="{Binding}" StrokeThickness="1.5" x:Name="serie" Stroke="Red" XValueBinding="XValue" YValueBinding="YValue">
            </telerik:ScatterLineSeries>
 
            <telerik:AreaSeries StrokeThickness="2" Fill="Gray">
                <telerik:AreaSeries.DataPoints>
                    <telerik:CategoricalDataPoint Value="20"/>
                    <telerik:CategoricalDataPoint Value="40"/>
                    <telerik:CategoricalDataPoint Value="35"/>
                    <telerik:CategoricalDataPoint Value="40"/>
                    <telerik:CategoricalDataPoint Value="30"/>
                    <telerik:CategoricalDataPoint Value="50"/>
                </telerik:AreaSeries.DataPoints>
            </telerik:AreaSeries>
 
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
 
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid Name="chartGrid" MajorLinesVisibility="XY" MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5">
                    <telerik:CartesianChartGrid.MajorXLineStyle>
                        <Style TargetType="Line">
                            <Setter Property="Shape.Stroke" Value="Gray" />
                        </Style>
                    </telerik:CartesianChartGrid.MajorXLineStyle>
                    <telerik:CartesianChartGrid.MajorYLineStyle>
                        <Style TargetType="Line">
                            <Setter Property="Shape.Stroke" Value="Gray" />
                        </Style>
                    </telerik:CartesianChartGrid.MajorYLineStyle>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
        </telerik:RadCartesianChart>


I must be doing something wrong here i just cant see what it is :)

Best regards,
Jeppe
Unisense
Top achievements
Rank 1
 answered on 20 Dec 2013
1 answer
143 views
Hi

Is it possible to have a Barcode column in a gridview?  If so do you have an example?

Regards,
Joe
Vanya Pavlova
Telerik team
 answered on 20 Dec 2013
7 answers
260 views
Hi,

I'm having trouble with the scroll and zoom feature on the RadChart. I have a 2D Range bar set up to mimic a Gantt style chart where certain products are on sale over different weeks and the chart allows users to keep track of the movement.

I have the chart set up to use the High/Low co-ordinates for start week and end week respectively, with the Y axis labels using the Low value while the X axis uses the product name as a label instead of the High value.

The trouble I'm having is when i add the scroll bar to the chart as per the example in the demos, it only works for the Y axis and not the X. The actual scroll bar does appear and the zoom buttons do change the dimensions of the scroller, and the drag select option also seems to work properly, but the actual chart remains unchanged for some reason...

As you can see, the scroll bar on the left is set to a high level of zoom, yet the entire chart is still displayed and no zooming actually happens.



The XAML that I use looks like this:

<telerik:ChartArea Grid.Row="0" x:Name="ChartArea" NoDataString="" LabelFormatBehavior="None" ItemClick="ChartArea_ItemClick"
                                            PaletteBrushesRepeat="False" EnableAnimations="False" >
                            <telerik:ChartArea.ZoomScrollSettingsX>
                                <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom" MinZoomRange="0.005"/>
                            </telerik:ChartArea.ZoomScrollSettingsX>
                            <telerik:ChartArea.PaletteBrushes>
                                <SolidColorBrush Color="Orange"/>
                            </telerik:ChartArea.PaletteBrushes>
                            <telerik:ChartArea.AxisY>
                                <telerik:AxisY Title="Week" ExtendDirection="Up" DefaultLabelFormat="W20#VAL" AutoRange="True">
                                    <telerik:AxisY.AxisStyles>
                                        <telerik:AxisStyles TitleStyle="{StaticResource CustomAxisTitleStyle}" />
                                    </telerik:AxisY.AxisStyles>
                                </telerik:AxisY>
                            </telerik:ChartArea.AxisY>
                            <telerik:ChartArea.AxisX>
                                <telerik:AxisX LayoutMode="Between" />
                            </telerik:ChartArea.AxisX>
                        </telerik:ChartArea>


The code for the zoom is the same as in the demo and works fine if I set it for the Y axis but for some reason, not the X...

public void ZoomIn(object parameter)
        {
            this.ChartArea.ZoomScrollSettingsX.SuspendNotifications();
 
            double zoomCenter = this.ChartArea.ZoomScrollSettingsX.RangeStart + (this.ChartArea.ZoomScrollSettingsX.Range / 2);
            double newRange = Math.Max(this.ChartArea.ZoomScrollSettingsX.MinZoomRange, this.ChartArea.ZoomScrollSettingsX.Range) / 2;
            this.ChartArea.ZoomScrollSettingsX.RangeStart = Math.Max(0, zoomCenter - (newRange / 2));
            this.ChartArea.ZoomScrollSettingsX.RangeEnd = Math.Min(1, zoomCenter + (newRange / 2));
 
            this.ChartArea.ZoomScrollSettingsX.ResumeNotifications();
 
            ((Telerik.Windows.Controls.DelegateCommand)_zoomInCommand).InvalidateCanExecute();
            ((Telerik.Windows.Controls.DelegateCommand)_zoomOutCommand).InvalidateCanExecute();
        }


What am I doing wrong?

Regards,
Nemanja
Peshito
Telerik team
 answered on 20 Dec 2013
5 answers
366 views
Hi
I’m working on a project to create pivot table dynamically.

The goal is to build a pivot table based on 2 Collections, which is generated by reading some file. The 1st collection defines the column names and type (e.g. double, string, etc.) of the data. The 2nd one contains a list of strings, which represents all the data, so the type of the data is only known at run time.

I'd like to know is it possible to bind the above data structure to the RadPivotGrid. 

I've tried to set a Collection of dynamic objects to the ItemsSource by using LocalDataSourceProvider, but it seems the data are not shown in the pivot table.

An example of the dynamic object.
dynamic dObject1 = new ExpandoObject();
dObject1.Name = "Name1";
dObject1.Value = 1;

Thanks in advance.

Regards,
Gong
Kalin
Telerik team
 answered on 20 Dec 2013
1 answer
106 views
How do I raise a RowDeleting event manually in code behind?

The RadGridView has the "Deleting" event for which you can specify an event handler in XAML. So when the user presses the Del-Key, this event handler will be called. I'd like to do the same programatically from C# code.
Dimitrina
Telerik team
 answered on 20 Dec 2013
3 answers
477 views

Hi, 
  
   I have been using the RadMaskedTextBox with MaskType "Numeric" and am getting an issue "Input string not in correct format" when following the below steps:

1) Enter a number
2) Modify the number to a negative value (-)
3) Delete the number using BackSpace
 
  i.e., Exception thrown with negative symbols.

As a workaround to this issue , telerik forums suggested to use RadMaskedNumericInput instead. But there comes another issue that I have to give fixed number of digits only in the Mask.

My concerns are :-

1) How to give the mask if the maximum number of numeric places is 18 and decimal digits as 2 ( say for eg., 123456789122345567.55)? 
2) Is there any alternative other than giving mask?
3) Can I give negative symbols as well ? If so, will it figure out the exception thrown with negative symbols.

Please help to figure out this issue..

Thanks
Petar Mladenov
Telerik team
 answered on 20 Dec 2013
5 answers
520 views
I have the following style defined in my WPF;

<Style TargetType="{x:Type telerik:GridViewRow}">
    <Style.Triggers>
        <MultiDataTrigger>
            <MultiDataTrigger.Conditions>
                <Condition Binding="{Binding Path=IsActive}" Value="False" />
                <Condition Binding="{Binding Path=InPlan}" Value="True" />
            </MultiDataTrigger.Conditions>
 
            <Setter Property="Background" Value="AntiqueWhite" />
            <Setter Property="Foreground" Value="Red" />
        </MultiDataTrigger>
    </Style.Triggers>
</Style>

My problem is that this style is only applicable to one grid on the form, consequently I am getting binding errors on each of the other grids when the form loads.  How do I apply this style to the appropriate grid?

Thanks in advance.
Raymond
Top achievements
Rank 1
 answered on 19 Dec 2013
2 answers
126 views
I'm using the Telerik themes provided in the 'Binaries.NoXaml' folder of the RadControls installation folder and setting and switching the themes at runtime using the tutorial provided here: http://www.telerik.com/help/wpf/styling-apperance-themes-runtime.html

When I switch themes all RadControls update to the new theme except the RadMap control. I can see in the WPF demos that the RadMap control has many different themes (i.e. Windows7, Windows8, Windows8Touch, OfficeBlack, etc...) but it doesn't seem to use them. Any advice?
Mel
Top achievements
Rank 1
 answered on 19 Dec 2013
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?