Telerik Forums
UI for WPF Forum
4 answers
280 views

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

The Nimble Coder
Top achievements
Rank 2
Iron
 answered on 07 Nov 2021
1 answer
290 views

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

David
Top achievements
Rank 1
Iron
Iron
 answered on 06 Nov 2021
1 answer
173 views

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.

Dilyan Traykov
Telerik team
 answered on 05 Nov 2021
1 answer
215 views

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>

Martin Ivanov
Telerik team
 answered on 04 Nov 2021
3 answers
108 views
In my pivot grid, I would like to display my configured formats item by item.


for example suppose I have already defined the format $ for item1, £ for item2 and m² for item3, I want to display this

Feat1
     Item1 $12 $13 $15 $19

     Item2 £22 £23 £25 £29

     Item3 32m² 33m² 35m² 39m²

instead of displaying them all in one global format as (currently possible)

     Item1 $12 $13 $15 $19

     Item2 22 $ 23 $ 25 $ 29

     Item3 32 $ 33 $ 35 $ 39

how could this be handled?

Thank you very much
Dilyan Traykov
Telerik team
 answered on 04 Nov 2021
16 answers
894 views
Guys,

I'm having issue with my RichTextBox and some funky UI stuff, Its cutting off my Characters (see Link at the bottom of this post) And also the Cursor in this instance appears to be BEFORE the H, but is actually at the end of the H...

<telerik:RadRichTextBox FontFamily="Arial" FontSize="9" DocumentInheritsDefaultStyleSettings="True" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" />

http://www.flickr.com/photos/57960866@N06/5707505816/in/photostream
Any help would be appreciated.
Dimitar
Telerik team
 answered on 04 Nov 2021
1 answer
301 views

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? 

Dilyan Traykov
Telerik team
 answered on 03 Nov 2021
1 answer
122 views

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!

Stenly
Telerik team
 answered on 02 Nov 2021
0 answers
99 views

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...

 

 

 

 

 

 

Dominic
Top achievements
Rank 1
 asked on 02 Nov 2021
1 answer
320 views

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}"/>

Martin Ivanov
Telerik team
 answered on 02 Nov 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?