Telerik Forums
UI for WPF Forum
1 answer
107 views
Hello Telerik Team,
Please let me know how to avoid the horizontal white lines in the RadGridView. (Refer the attachment please)
If I do a vertical scroll, the horizontal white lines disappear for some rows and appear for some rows.
Behaves weirdly.
Awaiting for the solution.

Thanks and Regards,
Muhammad Azhar Shah
Martin Ivanov
Telerik team
 answered on 06 Dec 2023
0 answers
110 views

Hello,

I'm using RadRichTextBox (WPF Telerik 2021.1.222.40) and get an error about my span's font can't cannot be italicized. From what I'm investigating, it seems like my FontFamily is specifying the style so I can't reassign the FontStyle. Some fonts where I am experiencing this problem: MS 明朝 Regular, MS Pゴシック Regular, A-OTF 新ゴ Pro B, A-OTF 新ゴ Pro EL... I assume it has to do with the suffixes behind the font names: Regular, B, EL

Has anyone else encountered this issue?

Thanks for your help.

This is the xaml content of RadRichTextBox:


<t:RadDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents" xmlns:s="clr-namespace:Telerik.Windows.Documents.Model.Styles;assembly=Telerik.Windows.Documents" xmlns:r="clr-namespace:Telerik.Windows.Documents.Model.Revisions;assembly=Telerik.Windows.Documents" xmlns:n="clr-namespace:Telerik.Windows.Documents.Model.Notes;assembly=Telerik.Windows.Documents" xmlns:th="clr-namespace:Telerik.Windows.Documents.Model.Themes;assembly=Telerik.Windows.Documents" version="1.2" LayoutMode="Flow" LineSpacing="18.6700000762939" LineSpacingType="AtLeast" ParagraphDefaultSpacingAfter="0" ParagraphDefaultSpacingBefore="0" SectionDefaultPageMargin="73,79,72,64" SectionDefaultPageSize="816,1056" SelectedBibliographicStyleName="\APA.XSL" StyleName="defaultDocumentStyle">
  <t:RadDocument.Captions>
    <t:CaptionDefinition IsDefault="True" IsLinkedToHeading="False" Label="Figure" LinkedHeadingLevel="0" NumberingFormat="Arabic" SeparatorType="Hyphen" />
    <t:CaptionDefinition IsDefault="True" IsLinkedToHeading="False" Label="Table" LinkedHeadingLevel="0" NumberingFormat="Arabic" SeparatorType="Hyphen" />
  </t:RadDocument.Captions>
  <t:RadDocument.ProtectionSettings>
    <t:DocumentProtectionSettings EnableDocumentProtection="True" Enforce="False" HashingAlgorithm="None" HashingSpinCount="0" ProtectionMode="ReadOnly" />
  </t:RadDocument.ProtectionSettings>
  <t:RadDocument.Styles>
    <s:StyleDefinition DisplayName="Document Default Style" IsCustom="False" IsDefault="False" IsPrimary="True" Name="defaultDocumentStyle" Type="Default">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LineSpacing="18.6700000762939" LineSpacingType="AtLeast" SpacingAfter="0" TextAlignment="Justify" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="A-OTF ゴシックMB101 Pro U,MS Gothic" FontSize="14" FontStyle="Normal" FontWeight="Normal" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 1 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading1" Name="Heading1Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontSize="18.6666660308838" FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 2 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading2" Name="Heading2Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontSize="17.3333339691162" FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 3 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading3" Name="Heading3Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 4 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading4" Name="Heading4Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontStyle="Italic" FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 5 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading5" Name="Heading5Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 6 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading6" Name="Heading6Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontStyle="Italic" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 7 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading7" Name="Heading7Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontStyle="Italic" ForeColor="#FF000000" ThemeFontFamily="major" ThemeForeColor="text1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 8 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading8" Name="Heading8Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontSize="13.3333330154419" ForeColor="#FF000000" ThemeFontFamily="major" ThemeForeColor="text1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Heading 9 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading9" Name="Heading9Char" Type="Character">
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontSize="13.3333330154419" FontStyle="Italic" ForeColor="#FF000000" ThemeFontFamily="major" ThemeForeColor="text1" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="Normal" IsCustom="False" IsDefault="True" IsPrimary="True" Name="Normal" Type="Paragraph" />
    <s:StyleDefinition DisplayName="TableDefault" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TableDefault" Type="Table">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LineSpacing="18.6700000762939" LineSpacingType="AtLeast" SpacingAfter="0" TextAlignment="Justify" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.TableStyle>
        <s:TableProperties Borders="1,Single,#FF000000,none,,">
          <s:TableProperties.TableLook>
            <t:TableLook />
          </s:TableProperties.TableLook>
        </s:TableProperties>
      </s:StyleDefinition.TableStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TableNormal" IsCustom="False" IsDefault="True" IsPrimary="True" Name="TableNormal" Type="Table" />
    <s:StyleDefinition DisplayName="TitleLevel1" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel1" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="24" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Gothic" FontSize="18.6700000762939" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel2" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel2" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="24" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Gothic" FontSize="18.6700000762939" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel3" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel3" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="24" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Mincho" FontSize="16" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel4" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel4" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel5" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel5" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel6" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel6" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel7" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel7" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel8" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel8" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
    <s:StyleDefinition DisplayName="TitleLevel9" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel9" Type="Paragraph">
      <s:StyleDefinition.ParagraphStyle>
        <s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
      </s:StyleDefinition.ParagraphStyle>
      <s:StyleDefinition.SpanStyle>
        <s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
      </s:StyleDefinition.SpanStyle>
    </s:StyleDefinition>
  </t:RadDocument.Styles>
  <t:Section PageSize="793.700805664063,1122.51965332031">
    <t:Paragraph Background="#FFD8D6CB" StyleName="TitleLevel1">
      <t:ReadOnlyRangeStart AnnotationID="1" />
      <t:Span Tag="[INDEX_SID:3295715,DOC_DATA_SID:2646844]" Text="てきすと" />
    </t:Paragraph>
    <t:Paragraph FirstLineIndent="-12" FontSize="12" LeftIndent="33.3300018310547" LineSpacing="16" LineSpacingType="AtLeast" RightIndent="0" SpacingAfter="4" SpacingBefore="0" TextAlignment="Justify">
      <t:Paragraph.ParagraphSymbolPropertiesStyle>
        <s:SpanProperties BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" UnderlineDecoration="None" />
      </t:Paragraph.ParagraphSymbolPropertiesStyle>
      <t:ReadOnlyRangeEnd AnnotationID="1" />
      <t:Span BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="*" UnderlineDecoration="None" />
      <t:Span BaselineAlignment="Baseline" FontFamily="MS 明朝 Regular,MS Mincho" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="少額" UnderlineDecoration="None" />
      <t:Span BaselineAlignment="Baseline" FontFamily="MS 明朝 Regular,MS Mincho" FontSize="12" FontStyle="Italic" ForeColor="#FF000000" Text="貯蓄非" UnderlineDecoration="None" />
      <t:Span BaselineAlignment="Baseline" FontFamily="MS 明朝 Regular,MS Mincho" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="課税制度" UnderlineDecoration="None" />
      <t:Span BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="(マル優)" UnderlineDecoration="None" />
      <t:Span BaselineAlignment="Baseline" FontFamily="MS ゴシック Regular,MS Gothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="をご利用いただけます" UnderlineDecoration="None" />
      <t:Span BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="。詳しくは販売会社にお問い合わせください。" UnderlineDecoration="None" />
    </t:Paragraph>
  </t:Section>
</t:RadDocument>

Tran
Top achievements
Rank 1
 asked on 06 Dec 2023
1 answer
104 views

I don't see an easy way to do this.  I Selected the added item in the view model and then sent a message to the view to get it to call the Begin Edit method, but that didn't cause the card to go into edit mode.

Even though I added an item to the list that was bound to the Items source of the RadCardView,  I noticed when I made the below call (from the view code behind), the list of cardViewItems did not contain the newly added object that I added to the source.  Not sure why it is not automatically updating the cardviewitems, as the itemsSource is bound to an Observable Collection.  

  IEnumerable<RadCardViewItem> cardViewItems = cardView.ChildrenOfType<RadCardViewItem>();

 

I think that when BeginEdit is called, it is not finding the CardViewItem and therefore it does nothing.  Not sure how to fix that.   Maybe there is a bug in the cardview class.

Dinko
Telerik team
 answered on 04 Dec 2023
1 answer
96 views

Hi,

I am trying to add new record into Details in Master Details RadGridView (Based on Telerik Demos/GridView/Editing/Entity Framework CRUD). I added option to add new detail record into master, in row details grid view new row with message "Click here to ad new item" appeared. After clicking on message an filling data in GridViewAddingNewEventArgs, I see new record in the details, but when I try to save it with dbContext.SaveChanges(), I've got message in output window about SQL update statement instead of insert (I always got the EntityFrameworkCore.DBUpdateConcurrencyException). 

 

Ľubomír
Top achievements
Rank 1
Iron
 updated answer on 04 Dec 2023
0 answers
134 views
g
Paul
Top achievements
Rank 1
 updated question on 04 Dec 2023
0 answers
192 views

Hello, Telerik

I want to create a feature with the following characteristics:

1. Use of the MVVM pattern.
2. The number of columns in the DataGridView is not fixed but dynamic. (Users can specify the number of columns as an option, allowing for dynamic changes.)
3. Only the first column's text is fixed, while the 2nd to nth columns are ComboBoxes, allowing users to select which columns they want to view.

For example, if a class has (name, age, gender, department, major, student number, average grade, highest grade, lowest grade) as fields,
'Name' is always shown in the first column as fixed data.
'Age' to 'Lowest Grade' are available as ComboBox options for users to select and view as they wish.

If n = 5, it could be displayed as follows:

      1st               | 2nd |    3rd    |     4th |    5th
Name (Fixed) | Age | Gender | Major | Avg Score

or
       1st             | 2nd    |      3rd         | 4th         | 5th
Name (Fixed) | Major | Avg Score | Max Score | Min Score

In this way, users can view data in the columns of their choice.

As mentioned, since the number of columns is dynamic, I don't want to write the column code as below.

<telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="column 1" DataMemberBinding="{Binding data_1}"/>
                <telerik:GridViewDataColumn Header="column 2" DataMemberBinding="{Binding data_2}"/>
                <telerik:GridViewDataColumn Header="column .." DataMemberBinding="{Binding data_1}"/>
                <telerik:GridViewDataColumn Header="column n" DataMemberBinding="{Binding data_n}"/>

</telerik:RadGridView.Columns>

 

I searched all the SDK examples and forums, but I don't know how to write it.

Thank you in advance.

Kim
Top achievements
Rank 1
 asked on 04 Dec 2023
0 answers
148 views

Hi, we are looking at using the RadStepProgressBar

in Xaml


  <telerik:RadStepProgressBar
x:Name="SystemStepProgressBar"
ItemsSource="{Binding Steps}"
SelectedItem="{Binding SelectedStep, Mode=TwoWay}">

We are binding to a collection of StepInfo as per example online

When we change the SelectedItem in code behind, this is not registering visually, even though the RadStepProgressBar.SelectedItem and SelectedIndex is as we expect the visual display does not change?

 

Matthew
Top achievements
Rank 1
 asked on 01 Dec 2023
1 answer
92 views

I think I have found i bug with selection with Alt-key on RadScheduleView.

I use a WeekViewDefinition as my active view definition. When I select a square by holding Alt-key while dragging the selection breaks if I have any group descriptions defined.
I have a minor tick length of 15 minutes. When my selection reaches the last tick of any day (after 23:45) the selection jumps to next day close to the time where my selection started.

I am attaching a video that illustrates the problem.

If I dont have any group description on my RadScheduleView I dont get this problem.

Here is my schedule view detinition:


        <telerik:RadScheduleView
            x:Name="ScheduleView"
            AppointmentsSource="{Binding Appointments}"
            VisibleRangeChangedCommand="{Binding VisibleRangeChangedCommand}"
            VisibleRangeChangedCommandParameter="{Binding VisibleRange, RelativeSource={RelativeSource Self}}"
            SnapAppointments="True"
            TodayButtonVisibility="Hidden"
            IsInlineEditingEnabled="False"
            NavigationHeaderVisibility="Collapsed"
            SpecialSlotsSource="{Binding SpecialSlots}"
            FirstVisibleTime="0:00"
            ResourceTypesSource="{Binding ResourceTypes}"
            TimeRulerItemStyleSelector="{StaticResource TimeRulerItemStyleSelector}"
            AppointmentStyleSelector="{StaticResource AppointmentItemStyleSelector}"
            ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}"
            GroupHeaderStyleSelector="{StaticResource SchemaGroupHeaderStyleSelector}"
            GroupHeaderContentTemplateSelector="{StaticResource SchemaGroupHeaderContentTemplateSelector}">
            
            <b:Interaction.Behaviors>
                <schedules:PreventCloseDialogBehavior/>
                <behaviors:PreventAddScheduleDialogException/>
                <behaviors:FastAppointmentAddBehavior Appointments="{Binding Appointments}"/>
                <behaviors:FilterAppointmentsBehavior/>
            </b:Interaction.Behaviors>
            
            <telerik:RadScheduleView.ActiveViewDefinition>
                <telerik:WeekViewDefinition
                    MinTimeRulerExtent="200"
                    TimerulerMajorTickStringFormat="{}{0:%H}:{0:mm}"
                    GroupHeaderDateStringFormat="{}{0:ddd}"
                    ShowWeekGroupHeaders="False"
                    MinorTickLength="15min"
                    Orientation="Horizontal"
                    StretchGroupHeaders="True"
                    FirstDayOfWeek="Monday"
                    VisibleDays="7" />
                
            </telerik:RadScheduleView.ActiveViewDefinition>
            
            <telerik:RadScheduleView.DragDropBehavior> 
                <behaviors:ScheduleDragDropBehavior />
            </telerik:RadScheduleView.DragDropBehavior> 
            <telerik:RadScheduleView.SlotSelectionBehavior> 
                <behaviors:ScheduleSlotSelectionBehavior/> 
            </telerik:RadScheduleView.SlotSelectionBehavior> 

            <telerik:RadScheduleView.GroupDescriptionsSource>
                <telerik:GroupDescriptionCollection>
                    <telerik:DateGroupDescription/>
                    <telerik:ResourceGroupDescription ResourceType="Schedules" />
                </telerik:GroupDescriptionCollection>
            </telerik:RadScheduleView.GroupDescriptionsSource>
        </telerik:RadScheduleView>

Petar Mladenov
Telerik team
 answered on 01 Dec 2023
1 answer
121 views

Hey,

I have set my TextField to ReadOnly but the RadPdfViewer doesnt react to it. Im getting a pdf File that im importing using the telerik PdfFormatProvider after that im trying to set some of the fields to readOnly like this: 

if (formField is TextBoxField textBox)
{
	if (field is not null)
	{
	
		textBox.Value = field.ViewValue(viewMode);
		if (field.VarType != 0)
			formField.IsReadOnly = true;
			
	}
}

 

Im sure its setting it because if i export it to a pdf the fields are set to ReadOnly but not in the Telerik PdfViewer

 

Thanks

Dominik

Martin Ivanov
Telerik team
 answered on 01 Dec 2023
0 answers
128 views

We updated our WPF Telerik controls from 2021.3.1109 to 2023.3.1114 and now our RadPDFViewer is not displaying text on some PDF documents. Please see before and after images. 

Before:

After:

The file is a form fill PDF document that has been flattened. This displays correctly in Acrobat, Acrobat Reader, Chrome and Edge. 

We also opened the file the 2023.3.1114 PDFViewer demo with the same results.

Roger
Top achievements
Rank 1
 asked on 30 Nov 2023
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?