Telerik Forums
UI for WPF Forum
1 answer
197 views

Hi,

 

I want to set to one RadGridView's vertical scrollbar normal mode.

Something like that but targeting to only one scrollbar.

FluentPalette.Palette.ScrollBarsMode = Telerik.Windows.Controls.Theming.ScrollViewerScrollBarsMode.Normal;

How can I achieve that? Is that possible?

 

Regards!


 

Stenly
Telerik team
 answered on 19 Jul 2021
1 answer
402 views

I am receiving following error when opening specific pdf document. 

I followed article Value cannot be null. Parameter name - Pages But this article belongs to parameter 'pages' instead 'page'


System.ArgumentNullException: Value cannot be null. (Parameter 'page')
   at Telerik.Windows.Documents.Utilities.Guard.ThrowExceptionIfNull[T](T param, String paramName)
   at Telerik.Windows.Documents.Fixed.Text.TextPosition..ctor(TextPage page, Int32 index)
   at Telerik.Windows.Documents.Fixed.Text.TextPosition..ctor(TextPage page)
   at Telerik.Windows.Documents.Fixed.Text.TextPosition..ctor(TextDocument document)
   at Telerik.Windows.Documents.Fixed.Model.RadFixedDocument.get_CaretPosition()
   at Telerik.Windows.Documents.UI.FixedDocumentPresenterBase.AttachToDocumentEvents(RadFixedDocument document)
   at Telerik.Windows.Documents.UI.FixedDocumentPresenterBase.DoOnDocumentChanged(RadFixedDocument oldDocument, RadFixedDocument newDocument)
   at Telerik.Windows.Controls.FixedDocumentViewerBase.OnDocumentChanged(RadFixedDocument oldValue, RadFixedDocument newValue)
   at Telerik.Windows.Controls.FixedDocumentViewerBase.<>c.<.cctor>b__14_1(DependencyObject s, DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.FixedDocumentViewerBase.set_Document(RadFixedDocument value)
   at Telerik.Windows.Controls.FixedDocumentViewerBase.<>c__DisplayClass90_0.<DocumentSource_Loaded>b__0()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

Following Pdf document specs might help you

 


3
 0 obj
[/CalRGB<</Gamma[2.2000000476837158 2.2000000476837158 2.2000000476837158]/Matrix[0.4124000072479248 0.2125999927520752 0.019300000742077827 0.35760000348091125 0.71520000696182251 0.11919999867677689 0.18050000071525574 0.072200000286102295 0.9505000114440918]/WhitePoint[0.9505000114440918 1. 1.0889999866485596]>>]
endobj

6
 0 obj
<</ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/XObject<</Img1 5 0 R>>>>
endobj
7
 0 obj
<</Type/Page/Contents 4 0 R/MediaBox[0 0 595 842]/Resources 6 0 R/Parent 1 0 R>>
endobj


1 0 obj
<</Type/Pages/Count 1/Kids[7 0 R]>>
endobj

2 0 obj
<</Type/Catalog/Pages 1 0 R>>
endobj


xref
0 9
0000000000 65535 f 
0000063589 00000 n 
0000063641 00000 n 
0000000016 00000 n 
0000000350 00000 n 
0000000430 00000 n 
0000063406 00000 n 
0000063490 00000 n 
0000063687 00000 n 

trailer
<</Size 8/Root 2 0 R/Info 8 0 R/ID [<cf5c0accdc040b8a5fd298a765972d13><aab7ac8c45a677c67feb6c1e858ec7c9>]>>
startxref
63899
%%EOF

 

Martin
Telerik team
 answered on 19 Jul 2021
5 answers
266 views

Hi, I am trying to create simple HTML editor that will let user create html content limited to few options and the requirement here is to produce html with only <p> <u> <em> <strong> <font color="#XXXXXX"> without any spans, class or any other inline styles. I know how to limit it from UI so user can only use a few button to bold text, underscore, etc but I don't know how to get rig of these spans and other elements in export html.

Attached picture shows exported html when in RadRichTextBox I only added two texts, one is bold, second is italic.

I would like to have exported html like this: <p><strong>test</strong></p><p><i>test</i></p>

Any ideas?

 

Martin
Telerik team
 answered on 16 Jul 2021
1 answer
361 views

I have a WPF view that contains both watermark text boxes and multicolumn combo boxes. I would like to set their properties in the resources of the view. I am having an issue where the settings of the watermarktextbox are affecting the appearance of the multicolumncombobox. Below is my code for the settings (This is under the resources of the view)


        <Style TargetType="{x:Type telerik:RadWatermarkTextBox}">
            <Setter Property="Padding" Value="3" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="telerik:StyleManager.Theme" Value="Office2019" />
            <Setter Property="Height" Value="25" />
            <Setter Property="Margin" Value="5 5 5 0" />
        </Style>

        <Style TargetType="{x:Type telerik:RadMultiColumnComboBox}">
            <Setter Property="Height" Value="25" />
            <Setter Property="Margin" Value="5,5,5,0"/>
            <Setter Property="telerik:StyleManager.Theme" Value="Office2019" />
        </Style>

Below is a screenshot of the of the view - notice the drop down icon of the combobox is off it has the downarrow on the right but then also up and down arrows to the left of the drop down arrow - i think its a scroll bar

 

I can fix this in a couple ways but neither are ideal:
 1) I can set the height of the multi column combobox to 31 to get rid of those scroll bars. However, I would like all of my controls to be 25

2) I can remove the Height and Margin setters from the watermarktextbox but then I would have to go through and add those properties to each individual watermark textbox in my view

 

is there a setter property I can add to either the resources that would cancel out the values from the watermarktextbox or is there a way to cancel them out via a setting on each individual multicolumncombobox??

 

Thank you!

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Jul 2021
1 answer
160 views

Hello.

 

I read this article.

https://www.telerik.com/forums/radcartesianchart-synchronize-scrolling

 

If I set to XAML, It's works.

But, I want to know how to set code behind Binding property. (Because, chart is making dynamic numbers)

I try to like below. But It doesn't work. 

Please check and help me.

 

RadCartesianChart chart = new RadCartesianChart();

RadCartesianChart chart1 = new RadCartesianChart();

chart.Name = "chart";

Binding bds = new Binding();
bds.ElementName = "chart";
bds.Mode = BindingMode.TwoWay;
bds.Path = new PropertyPath("VerticalZoomRangeStart");

Binding bde = new Binding();
bde.ElementName = "chart";
bde.Mode = BindingMode.TwoWay;
bde.Path = new PropertyPath("VerticalZoomRangeEnd");

BindingOperations.SetBinding(chart1, RadCartesianChart.VerticalZoomRangeStartProperty, bds);
BindingOperations.SetBinding(chart1, RadCartesianChart.VerticalZoomRangeEndProperty, bde);

 

Thanks.

Stenly
Telerik team
 answered on 15 Jul 2021
1 answer
179 views

The Week is started at the start of the month but not ended at end of the month.
Is it possible to do it? 

 

Code :

        <telerik:RadGanttView x:Name="ganttView" TasksSource="{Binding Tasks}" VisibleRange="{Binding VisibleRange}">
            <telerik:RadGanttView.TimeRulerLines>
                <telerik:GroupTickLine>
                    <telerik:TickInterval Interval="OneMonth" />
                </telerik:GroupTickLine>
                <telerik:GroupTickLine>
                    <local:WeekTickInterval Interval="OneWeek" />
                </telerik:GroupTickLine>
                <telerik:MajorTickLine>
                    <telerik:TickInterval Interval="OneDay"  />
                </telerik:MajorTickLine>
            </telerik:RadGanttView.TimeRulerLines>
            <telerik:RadGanttView.Columns>
                <telerik:TreeColumnDefinition Header="Project" Width="AutoHeaderAndContent" MinWidth="200"/>
            </telerik:RadGanttView.Columns>
        </telerik:RadGanttView>

Martin Ivanov
Telerik team
 answered on 15 Jul 2021
0 answers
143 views

Hi,

I use RadTabbedWindow and some items should be hidden in some cases. But if I set visibility Collapsed for such items empty space in tabs panel is exists anyway (See attached pic). How I can avoid it?

Is it possible not to set ItemWidth and ItemMinWidth or set auto width for them to get something like in usual tabcontrol where items width changes with its content?

Best regards,

Julia

 

 

Julia
Top achievements
Rank 1
 asked on 15 Jul 2021
0 answers
85 views

Hi Telerik,

I have the same needs as below:

Nested ColumnGroups in UI for WPF | Telerik Forums

Do we have solution for this now?

Lily
Top achievements
Rank 1
 asked on 15 Jul 2021
0 answers
115 views

Hi All,

We are using 2016.1.217.45 version of Telerik. We are setting the row height based on the value selected in the combo box. 

While loading the content, application freezes. It seems to be issue with scroll functionality. Below are our observations:

  1. When RadGridView row height is set to 17 application freezes.
  2. When I removed the RowHeight change completed no freeze is observed.
  3. When I change the RowHeight to 18 no freeze is observed.
  4. When I leave the RowHeight as 17 and disabled the Row virtualisation for RadGridView no freeze is observed.

Could you please suggest why application freezes when setting the RowHeight as 17?


 <telerik:RadGridView Name="GridViewMain" Grid.Row="2" AutoGenerateColumns="False" ShowColumnHeaders="False" SelectionUnit="FullRow" SelectionMode="Extended" 
                                 CanUserDeleteRows="False" CanUserInsertRows="False" CanUserFreezeColumns="False" GridLinesVisibility="None"                                 
                                 ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"  IsFilteringAllowed="False"
                                    AlternationCount="2" ValidatesOnDataErrors="InEditMode" EditTriggers="None" >

                <telerik:RadGridView.Style>
                    <Style TargetType="{x:Type telerik:RadGridView}">
                        <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource TelerikWin7Theme}"/>
                        <Setter Property="GridLinesVisibility" Value="None"/>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value=".5">
                                <Setter Property="RowHeight" Value="17" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value=".75">
                                <Setter Property="RowHeight" Value="17" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value="1">
                                <Setter Property="RowHeight" Value="17" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding SelectedItem.Tag, Source={x:Reference ComboBoxZoom}, Mode=OneWay}" Value="1.25">
                                <Setter Property="RowHeight" Value="22" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </telerik:RadGridView.Style>

 

Thanks in advance,

Manohar

Manohar
Top achievements
Rank 1
 asked on 14 Jul 2021
1 answer
129 views

I tried to reset Thumbnail as below code snippet, but it doesn't work as I expected.

this.xNavigationPane.Diagram = null;
this.xNavigationPane.RefreshThumbnail();

Could you show me how to make it like no RadDiagram is attached to RadDiagramNavigationPane? Like below screenshot,

Thanks!

Aeroth

Vladimir Stoyanov
Telerik team
 answered on 14 Jul 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?