Telerik Forums
UI for WPF Forum
1 answer
147 views

We have created an app that allows the user to create templates using the diagram control, and then bind data (several records) to print / export to PDF.  The bind operation does not need the diagram to be visible, and its a desired behavior, the user can click a button and we work with the diagram in the background (bind each record, export the image) without the user seeing the diagram loading every record.

The issue we have encountered is that if the diagram has collapsed visibility or is not visible, the items do not render (they have their isLoaded property set to false). This might be an optimization on the Diagram to render only visible items, however its causing an issue for our use case. 

How do we make the diagram load and render all items even when its not visible?  (Or what trick can we use to keep the diagram hidden and yet have it render?)

We also wish to optimize the loading speed in this scenario, suggestions to speed up diagram loading saved items would really help us, as you can imaging we do not need any UI features such as Dragging, Copy/Paste/Undo etc. in the data-bind and export mode.

 

 

 

 

Stenly
Telerik team
 answered on 24 Aug 2022
1 answer
89 views
An error occurred while running the wizard.

Error executing custom action Telerik.Windows.WPF.VSX.Actions.UpdateAppXamlFileAction: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Telerik.Windows.WPF.VSX.Actions.UpdateAppXamlFileAction.TrySettingUserSelectedAssemblyReferences(IPropertyDataDictionary arguments)
   at Telerik.Windows.WPF.VSX.Actions.UpdateAppXamlFileAction.UpdateAppXaml(IPropertyDataDictionary arguments, IProjectWrap projectWrap)
   at Telerik.Windows.WPF.VSX.Actions.UpdateAppXamlFileAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap projectWrap)
   at Telerik.VSX.Actions.ProjectActionBase.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()
Nikolay Mishev
Telerik team
 answered on 24 Aug 2022
1 answer
423 views

Hi,

I have created a RadGridView with a couple of columns (one of them being GridViewSelectColumn). I have also created a GroupDescriptor with GroupHeaderTemplate and I would like to add a GridViewCheckBox to the GroupHeaderTemplate, so I can select all items in a particular group by one click, however, the GridViewCheckBox is not enabled. I tried different properties on the control, but none of them works for me. 

If I add just a CheckBox then it works, but it does not have the style I need and I would not like to reproduce the Style already present on GridViewSelectColumn.

Can you advise how to enable the GridViewCheckBox ?

Thanks

            <telerik:RadGridView Grid.Row="1" ItemsSource="{Binding Collection}"
                                 AutoGenerateColumns="False"
                                 ShowGroupPanel="False"
                                 RowIndicatorVisibility="Collapsed"
                                 Padding="10"
                                 IsReadOnly="True"
                                 FrozenColumnsSplitterVisibility="Collapsed"
                                 IsFilteringAllowed="False"
                                 SelectionUnit="FullRow"
                                 SelectionMode="Extended">
                <telerik:RadGridView.GroupHeaderTemplate>

    <DataTemplate x:Key="SelectAllGroupHeaderTemplate">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <telerik:GridViewCheckBox VerticalAlignment="Center" HorizontalAlignment="Center">

            </telerik:GridViewCheckBox>
            <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="DemiBold"
                       Margin="10 0 0 0"
                       Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
                                       AncestorType={x:Type telerik:GridViewGroupRow}},
                                       Path=Group.Key}" />
        </StackPanel>
    </DataTemplate>


                </telerik:RadGridView.GroupHeaderTemplate>
                <telerik:RadGridView.GroupDescriptors>
                    <telerik:GroupDescriptor Member="Id"
                                             SortDirection="Ascending" />
                </telerik:RadGridView.GroupDescriptors>
                <telerik:RadGridView.Columns>
                    <telerik:GridViewSelectColumn/>
                    <telerik:GridViewDataColumn Header="Date" MinWidth="150"
                                                DataMemberBinding="{Binding RollDate}" />
                    <telerik:GridViewDataColumn Header="ID" MinWidth="100"
                                                DataMemberBinding="{Binding Id}" />
                    <telerik:GridViewDataColumn Header="Name" MinWidth="220"
                                                DataMemberBinding="{Binding Name}" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
        </Grid>

Dilyan Traykov
Telerik team
 answered on 24 Aug 2022
1 answer
130 views

I'm using the Prism 8 template pack to create a WPF solution.
I'm adding the Nuget package 'Telerik.UI.for.Wpf.60.Trial' (No Xaml)
I'm adding the solution of KB (Using RadWindow with Prism 7 | Telerik UI for WPF)

Now I have problems to start the solution.

No error, but no viwe is visible.

If I use the Nuget package 'Telerik.UI.for.Wpf.60.xaml.Trial' (with Xaml) I have no problems.

Why I have problems with the 'no xaml' version?

Attached a demo with PRISM 8

 

 

Dirk
Top achievements
Rank 1
Iron
 answered on 24 Aug 2022
1 answer
161 views

Hi team,

How can I  change the background of the  tabcontrol header?

And also  I want to set corners  of  header area like image 2.

I have setted  corners  of   content area ,but there is  a outline, look at image 3

 

Thanks in Advance.

 

Vicky
Telerik team
 answered on 24 Aug 2022
0 answers
134 views

Hi,

1-Is it possible to set the RadDesktopAlert height automatically based on the content text?

2-After showing RadDesktopAlert, if we move the mouse over RadDesktopAlert, the background color will change. What should I do if we don't want the background color to change?

3-After RadDesktopAlert is shown, if we move the mouse over RadDesktopAlert, the text of the content will be underlined. What should we do if we don't want this underline to be displayed?

4-After RadDesktopAlert is displayed, if we move the mouse over RadDesktopAlert, a line will be drawn under the content text and RadDesktopAlert will be closed by clicking on the content text. What should I do if RadDesktopAlert is not closed by clicking on the content text?

5-If the Windows theme is in High contrast, it will not be applied to RadDesktopAlert. If we want the background to be black in the contrast theme and the content to be displayed in white, how should we do this?

6-How to change the color of the header & content text?

Thank you

m
Top achievements
Rank 1
Iron
 updated question on 24 Aug 2022
0 answers
138 views

I coded the following XAML

<FileDialogs:ExplorerControl x:Name="ecDeployStuff" HorizontalAlignment="Left" Margin="12,28,0,0" VerticalAlignment="Top" CurrentDirectoryPath="C:\lala\Main\zzzDevelopment\abc" />

when I launch the WPF app it shows as the C: drive

am I missing another property to make the CurrentDirectoryPath work?

Marianne
Top achievements
Rank 1
Veteran
 asked on 23 Aug 2022
0 answers
104 views

I would appreciate help on how to change 12AM to Sunday, Monday, etc.

And how to change the gray 12AM to the days of the month.

And also change the color of this gray including MouseOver.

 

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 23 Aug 2022
1 answer
112 views
A while back, I was looking to implement a pan feature for my ChartView3D, Telerik directed me to this feature request.  It says you aren't implementing the feature but it does contain sample code to allow me to manually pan the view myself.  I have attached a copy of the sample to this post.

It all mostly works. but I've noticed that the horizontal panning is not true horizontal panning.  If you hit the left or right arrow button just a few times sure it looks that way.  But as you keep moving it left or right and the chart approaches the edge of the windows, it begins to move downward also, as if it were the edge of a large, rotating wheel.

What I need is true XY panning. So that if I hit the left button the scene moves left ONLY, not up or down, no matter how far I move it.

Is there some way to adjust the code in the sample to achieve this?  I'll admit that this sort of math is not at all my strong suit.

Martin Ivanov
Telerik team
 answered on 23 Aug 2022
0 answers
216 views

Hi,

in my application we have an ui which displays transaction data in it's raw form (XML Data), it's optional exception and a further content control with some parsed datails.

The structure of the RadWindow the following:

<UserControl x:Class="TransactionXmlDataView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

    <telerik:RadBusyIndicator x:Name="BusyIndicator">
        <Grid HorizontalAlignment="Stretch"
              Height="Auto"
              Width="Auto">

            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="1*" />
            </Grid.RowDefinitions>

            <ContentControl x:Name="ParsedTransactionDataViewer"
                            Visibility="{Binding HasParsedTransactionData, Converter={StaticResource BoolToVisibilityConverter}}" />

            <TextBlock Text="{Binding DisplayName}"
                       HorizontalAlignment="Left"
                       Grid.Row="1"/>


            <telerik:RadLayoutControl Grid.Row="2">
                <ContentControl x:Name="XmlDocumentFileViewer" Width="{Binding XmlViewerWidth}"/>
                <telerik:LayoutControlSplitter Visibility="{Binding ExceptionViewerVisible, Converter={StaticResource BooleanToVisibleCollapsedConverter}}"/>
                <TextBox x:Name="ExceptionText"
                         TextWrapping="Wrap"
                         IsReadOnly="True"
                         VerticalContentAlignment="Top"
                         Visibility="{Binding ExceptionViewerVisible, Converter={StaticResource BooleanToVisibleCollapsedConverter}}"/>
            </telerik:RadLayoutControl>
        </Grid>
    </telerik:RadBusyIndicator>
</UserControl>

Not all parts of the UI are always shown:

  • The ParsedTransactionDataViewer is optionally shown in the first row of the grid. The whole row is collapsed if there is nothing to show
  • The LayoutControlSplitter and the Textbox "ExceptionText" within the third row are optionally shown. When there is no Excpetion to show the Splitter and Textbox shall be collapsed

Only the ContentControl XmlDocumentFileViewer is always displayed. This ContentControl is a UserControl with another ContenControl inside which Content is Binding to an RadSyntaxEditor in the Code.

<UserControl x:Class="XmlDocumentFileViewerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ContentControl Width="Auto"
                    Height="{Binding ContentHeight}"
                    Content="{Binding XmlRadSyntaxEditor}" />
</UserControl>
The UI works perfectly well with smaller XMLs but with bigger ones (tested with ~24MB) the entire window and application freezes.

In regard to this I have found the follwoing article: SyntaxEditor inside a LayoutControl which points out that my SyntaxEditor looses the ability to virtualize... Followingly I tried the approach with a surrounding Canvas but still the UI freezes.

Addtionally I tried to simplify the application even more and making the width and height of the Syntax Editor fixed and defining it directly within xaml.

<UserControl x:Class="TransactionXmlDataView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

    <telerik:RadBusyIndicator x:Name="BusyIndicator"
                              Style="{DynamicResource InputRadBusyIndicatorStyle}">
        <Grid HorizontalAlignment="Stretch"
              Margin="10"
              Height="Auto"
              Width="Auto">

            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="1*" />
            </Grid.RowDefinitions>

            <ContentControl x:Name="XmlDocumentFileViewer" Width="1000" Height="1000"/>

        </Grid>
    </telerik:RadBusyIndicator>
</UserControl>

<UserControl x:Class="XmlDocumentFileViewerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

    <telerik:RadSyntaxEditor
        x:Name="XmlEditor"
        IsReadOnly="True"
        AllowScaling="False"
        VerticalScrollBarVisibility="Visible"
        HorizontalScrollBarVisibility="Visible"
        Height="1000"
        Width="1000"/>
</UserControl>

Even with this very simplified UI the whole UI freezes when trying to load a ~20MB xml file.

Is there any solution to this problem? Or are these files simply to big to display?

Thanks a lot in advance for your help! I'm looking forward to your suggestions!



Margret
Top achievements
Rank 1
 updated question on 23 Aug 2022
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?