Hello,
I'm new to WPF but have been developing software for more than 22 years (vast majority has been in C#).
I'm looking for information on how to properly format the CardView's CardHeaderTemplate. I'd like to be able to put a line break between two pieces of data:
Table # 5
Guests 3
Following is my xaml:
<telerik:RadCardView CardLayout="Rows"
Height="Auto" Width="Auto"
ItemsSource="{Binding PartyCards}"
CardHeaderBinding="{Binding Path=.}"
AutoGenerateDataFieldDescriptors="False"
IsReadOnly="true">
<telerik:RadCardView.CardHeaderTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Label Content="Table # " FontWeight="Bold" Foreground="White" />
<Label Content="{Binding TableNumber}" FontWeight="Bold" Foreground="White" />
<Label Content="Guests " FontWeight="Bold" Foreground="White" />
<Label Content="{Binding GuestCount}" FontWeight="Bold" Foreground="White" />
</StackPanel>
</DataTemplate>
</telerik:RadCardView.CardHeaderTemplate>
<telerik:RadCardView.DataFieldDescriptors>
<telerik:CardDataFieldDescriptor Header="" DataMemberBinding="{Binding OrderItems}" />
</telerik:RadCardView.DataFieldDescriptors>
</telerik:RadCardView>
Much appreciated!!
-Mark
We have some performance problems with a large RadDiagram (in one case, there are 372 shapes and 1200+ links, for instance).
While doing some performance profiling, I notice that a great deal of time is spent in RadDiagramConnectionAutomationPeer.GetItemStatusCore and RadDiagramShapeAutomationPeer.GetItemStatusCore. Both of these are calling an AutomationXmlSerializer.Serialize method that takes a the vast majority of the time. This is going on when the diagram is just sitting there with no interaction going on, no changes happening, etc. -- just displaying.
I don't think we've done anything to serialize the diagram intentionally. For instance, I see there is a RadDiagram.Save() method; we are not calling that anywhere, and I can't find it in any of the call history. I also don't see any of our calls leading to these GetItemStatusCore calls, so I'm thinking it's being triggered implicitly somehow.
What are we doing that's triggering this serialization? Is it a critical part of the function of RadDiagram? Since it's causing performance problems, is there anything we can do about it, please?
I also don't (think I) see any documentation for these classes or methods online (or, internet searches turn up nothing for them), so I'm not sure how to proceed on my own.
This is with v. 2021.1.325.40.
Thanks!
-David Marshburn
I'm getting an exception when closing panes with no title:
System.ArgumentNullException HResult=0x80004003 Message=RadPane instance cannot be null. Make sure that override of DockingPanesFactory.GetPaneFromItem method returns a valid RadPane instance. Parameter name: pane Source=Telerik.Windows.Controls.Docking StackTrace: at Telerik.Windows.Controls.Docking.DockingPanesFactory.RemovePane(RadPane pane) at Telerik.Windows.Controls.RadDocking.OnPanesSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
We don't have an override of DockingPanesFactory.GetPaneFromItem so I'm not clear what's going wrong here? Is a pane parameter being passed that's null?
This occurs when we execute 'close all but this pane" type operation.
I put a RadComboBox in GridViewDataColumn, but the selections in combobox don't display When i edit the cell.
But if i use RadComboBox separatly, it works.
Here is my code:
<telerik:GridViewDataColumn Header="AlertLocation" DataMemberBinding="{Binding AlertLocationName}">
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<telerik:RadComboBox ItemsSource="{Binding AlertLocations}" DisplayMemberPath="Name" SelectedValuePath="Name" SelectedValue="{Binding AlertLocationName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>
<
telerik:RadRichTextBox
FontFamily
=
"Arial"
FontSize
=
"9"
DocumentInheritsDefaultStyleSettings
=
"True"
BorderThickness
=
"0"
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
VerticalScrollBarVisibility
=
"Auto"
/>
Hi,
When developing my WPF application using the RadNotifyIcon, I often catch myself stopping Visual Studio rather than selecting the close application menu option. This results in the tray icon not being removed. When you then restart a debugging session the old icon prevents a new icon from being created as I have a fixed appId. However, as soon as you hover over it, the icon disappears.
Everything is happening per design and in release mode where you have to close the application, everything works fine. This is just some development time frustration.
Is there a way to check on startup if the icon exists (previous remnant) and if so first clear it before creating the new icon? Alternatively, is there a "fool-proof" way to detect ungraceful application close (e.g. stop debugging in VS) to first clear the icon?
Hi!
I need a wider SearchPanel Textbox. Changing the Width of SearchPanel didn't change the width of the TexBox within.
I tried to access it this way in Code behind but the result is always null:
https://www.telerik.com/forums/select-searchasyoutype-on-startup
Could anyone help me to achieve this?
Thank you!
Hello,
we have an application running in Silverlight an WPF (we ported it from Silverlight to WPF some time ago, and it can run in both frameworks).
In Silverlight we had no memory problems, everything ist cleared an disposed by us (looping the visual/logical tree,..).
In WPf we have some weird meomry leaks and I´m not able to track them down further.
Some of them root just to Telerik controls and I see not why...
I attached some JustTrace screenshots...
How to change ComboBoxStyle in GridViewComboBoxColumn of RadGridView when i Edit the cell.
<telerik:GridViewComboBoxColumn Header="Location" DataMemberBinding="{Binding AlertLocationId}"
UniqueName="AlertLocation" SelectedValueMemberPath="Id" DisplayMemberPath="Name"
Style="{DynamicResource GridViewColumnStyle}"/>