Telerik Forums
UI for WPF Forum
1 answer
376 views

Hi,

I have a GridView with a GridViewCheckBoxColumn that is bound to a 'IsSelected' property of an entity. 

<telerik:GridViewCheckBoxColumn Header="" DataMemberBinding="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AutoSelectOnEdit="True" EditTriggers="CellClick" >

 

The entity also has a property 'NetLength'.  The entities are grouped by some other property.  Each time an entity gets checekd or unchecked, I need to calculate the sum of NetLength.  I've done that by adding a custom aggregate funcion in code behind.

var selectedItemsTotalMetersfunction = new AggregateFunction<PartNumberModel, decimal>();
selectedItemsTotalMetersfunction.AggregationExpression = pnrs => pnrs.Where(pn => pn.IsSelected).Sum(pn => pn.NetLength ?? 0);
selectedItemsTotalMetersfunction.Caption = "Meters:";
grdShippingOrder.Columns["NetLength"].AggregateFunctions.Add(selectedItemsTotalMetersfunction);

 

Now, all this works fine except for the fact that the bounded property 'IsSelected' only gets changed when the row changes.  Also my total of NetLength is recalculated only when row changes.  How can I force the calculation to be done at the moment the checkbox is checked/unchecked ?

In Winforms, the GridViewCheckBoxColumn has a property 'EditMode' which can be set to 'OnValueChange'.  Is there something similar in WPF ?

Regards,
Hans

 

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Mar 2019
3 answers
106 views

Hi,

I am unable to persist the group filters of RadPivotFieldList.

Please suggest a way for the same.

Regards,

Swapnil

Kalin
Telerik team
 answered on 28 Mar 2019
5 answers
254 views

Hi,

I was wondering if the RadPane supports child application window handles. That is, i'm starting a new child process within my application and I want it to live inside one of the panes i've created. I can create the application and set the parent as the main window, but can't figure out how to make it live inside the pane. Any idea?

Thanks

Kalin
Telerik team
 answered on 28 Mar 2019
1 answer
199 views

Hi,

I wanted to validate that UI for WPF has the same requirements as Winforms for redistribution of a free application. I would like to make my software available online free (not open source,  and not the source).

I understand that the WPF assemblies need locked and a copyright for portions of the UI for progress/ telerik, but is there any other requirements for redistribution a free application using the UI for WPF?

I do understand how to lock down the assemblies just want to ensure I meet all requirements set. Note I do have a license, and am currently following the below URL instructions on how to lock the wpf assemblies.

https://docs.telerik.com/devtools/wpf/licensing/protecting-telerik-assembly

 

Martin Ivanov
Telerik team
 answered on 27 Mar 2019
1 answer
707 views

I've got the following buttons:

<telerik:RadPathButton Command="{Binding DoActionCommand}" PathGeometry="{telerik:RadGlyph Glyph={Binding Action.FontIcon}}" PathStyle="{StaticResource UniformPath}" Content="{Binding Action.Label}" ContentPlacement="Bottom" Margin="0,6,6,0" Padding="12" />

 

If I set the Glyph property to something like {StaticResource GlyphGear} then this works.  However when I try to bind to it, the button fails to render and as far as I can tell there is no error.  I have tried setting the bound value to the "&#xe13a;" and "GlyphGear" and tried with and without the StringToGlyphConverter with no luck.  What am I missing?

 

 

 

 

 

Vladimir Stoyanov
Telerik team
 answered on 27 Mar 2019
1 answer
738 views

in the Resources i define the text format for TimelineItemTemplate

<DataTemplate x:Key="ItemWithDurationTemplate">

<TextBlock  Foreground="Black" FontFamily="Segoe UI" FontSize="12"  Text="{Binding  Path=DataItem.recognitions}">

</DataTemplate >

TimelineItemTemplate="{StaticResource ItemWithDurationTemplate}"

How can I change the font size when the mouse  is scrolling?

Shoule i use the Radtimeline_MouseWheel event?

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Mar 2019
3 answers
138 views

Hi,

I've a performance problem with the charts.
Background:

- It's a C# / WPF application mit MVVM Pattern
- Variable amount of Lines Series. My test scenario was with 15 Lines.
- Amount of datapoints of each line: First scenario = 2.000, Second Scenarion 20.000
- Horizontal Axes = DateTime
- Approx time to show the chart: First scenario around 2 seconds, Second Scenarion around 10 - 15 seconds

You can find my XAML Code attached.

How can I improve the performance ?
It can be that a value is the same over a time. For now I have for example for every 15Minutes a point. Even if it's the same value over the whole day.
Is it possible to define one point and to say that it is the same for x hours instead of have hundreds of points ?


Regards
Stefan




Martin Ivanov
Telerik team
 answered on 27 Mar 2019
1 answer
148 views

Hello. I want to use GridView for editing dependable combbox.
For examle I select Club from list in first ComboBox in Grid and after select players of this Club.
                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Name, Mode=TwoWay}" 
                                                ItemsSource="{Binding ClubList}" Width="120" IsReadOnly="False" Header="St Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />
                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding PlayerName, Mode=TwoWay}" 
                                                ItemsSource="{Binding PlayerList}" Width="120" IsReadOnly="False" Header="Player Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />

I don't understand how to make it work.

        private ObservableCollection<Club> _clubs;
        public ObservableCollection<Club> ClubList
        {
            get
            {
                if (this._clubs == null)
                {
                    this._clubs = Club.GetClubs();
                }

                return this._clubs;
            }
        }

 

Vladimir Stoyanov
Telerik team
 answered on 26 Mar 2019
1 answer
131 views

Hello I'm trying to add depandable comboboxes to RadGridView and my Comoboxes always empty. What I do wrong? For examle I want to add Club and Players to grid - Select Club and then Select Player from players of this Club

                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Name, Mode=TwoWay}" 
                                                ItemsSource="{Binding ClubList}" Width="120" IsReadOnly="False" Header="Club Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />
                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding PlayerName, Mode=TwoWay}" 
                                                ItemsSource="{Binding PlayerList}" Width="120" IsReadOnly="False" Header="Player Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />

public class ClubLinks : INotifyPropertyChanged

{

        public string Name
        {
            get { return this.name; }
            set
            {
                if (value != this.name)
                {
                    this.name = value;
                    this.OnPropertyChanged("Name");
                }
            }
        }

        public string PlayerName { get; set; }

        private ObservableCollection<Club> _clubs;
        public ObservableCollection<Club> ClubList
        {
            get
            {
                if (this._clubs == null)
                {
                    this._clubs = Club.GetClubs();
                }

                return this._clubs;
            }
        }

    public ObservableCollection<Player> PlayerList
        {
            get
            {
                if (null == this.players)
                {
                    this.players =
                     new ObservableCollection<Player>()
                        {
                            new Player(){Name = "Pl1_" + name},
                            new Player(){Name = "Pl2_" + name},
                            new Player(){Name = "Pl3_" + name},
                            new Player(){Name = "Pl4_" + name},
                        };
                }

                return this.players;
            }
        }

Vladimir Stoyanov
Telerik team
 answered on 26 Mar 2019
3 answers
117 views
Hello,

how can i determine the visible daterange wich is currently shown on screen?
I have bound the visibleTime property but when i scroll to a another
section the visibleTime property dosn't change.

Regards,
Robert
Vladimir Stoyanov
Telerik team
 answered on 26 Mar 2019
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
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?