Telerik Forums
UI for WPF Forum
1 answer
165 views

Hi Team,

We need to display the multiple different property values in a same column definition. Bind each property in seperate textblock and also have to show the tooltip with respective details. Please refer the attached screenshot, which we are looking for it.

 

Please help us to sort.

 

Thanks,

Sabari.

Vladimir Stoyanov
Telerik team
 answered on 09 Jul 2021
0 answers
155 views

Hello! I am learning an RadDocking example from Telerik Wpf Demo. When I try to unpin (hide) a RadPane I see an System.NullReferenceException. What's the problem?

Here's the code.

 <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <telerik:RadDocking x:Name="radDocking1"
                            RetainPaneSizeMode="DockingAndFloating"
                            CanAutoHideAreaExceedScreen="True"
                            Grid.Row="0" Margin="0 0 0 10"
                            BorderThickness="0"
                            Padding="0">

            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadDocumentPane Title="Description">
                        </telerik:RadDocumentPane>
                        <telerik:RadPane Header="NotDragable" CanFloat="False">
                            <telerik:RadPane.Content>
                                <TextBlock TextWrapping="Wrap" Text="This pane cannot be dragged, because it has its property CanFloat set 'False'." />
                            </telerik:RadPane.Content>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>

            <telerik:RadSplitContainer  MaxWidth="600" telerik:DockingPanel.InitialSize="210,150"
                    Name="LeftContainer" InitialPosition="DockedLeft">
                <telerik:RadPaneGroup x:Name="Group1">

                    <telerik:RadPane x:Name="Pane1" Header="Server Explorer">
                    </telerik:RadPane>

                    <telerik:RadPane x:Name="Pane2" Header="Toolbox">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>

            <telerik:RadSplitContainer MaxWidth="679" telerik:DockingPanel.InitialSize="210,150"
                                       x:Name="RightContainer" InitialPosition="DockedRight">
                <telerik:RadPaneGroup x:Name="Group2">

                    <telerik:RadPane x:Name="Pane3" Header="Solution Explorer">
                    </telerik:RadPane>

                    <telerik:RadPane x:Name="Pane4" Header="Properties">
                    </telerik:RadPane>

                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>

            <telerik:RadSplitContainer InitialPosition="FloatingDockable"
                    telerik:RadDocking.FloatingLocation="450, 250"
                    telerik:RadDocking.FloatingSize="300, 220">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Not Document Pane" CanDockInDocumentHost="False">

                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>

            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="200,180"
                    x:Name="BottomContainer" InitialPosition="DockedBottom">
                <telerik:RadPaneGroup x:Name="Group3">

                    <telerik:RadPane x:Name="Pane5" Header="Output">
                    </telerik:RadPane>

                    <telerik:RadPane x:Name="Pane6" Header="Error List">
                    </telerik:RadPane>

                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Grid>

Leonid
Top achievements
Rank 1
 asked on 08 Jul 2021
1 answer
119 views

I think to create a contact form created from five different HTML webpages:

Four HTML webpages would prompt the user for various kinds of data and the fifth webpage would include a submit button and a success message in case a submit process went well form JavaScript’s side at least — not involving possible problems in the backend (PHP) routing.

My problem is that I don’t know almost anything about Ajax:
Ajax CRUD operation codes always seemed to me very long and complicated; perhaps since EcmaScript 2021 Ajax CRUD operations could be much simpler.

I seek some guidance about how to generally do this, how to save data prompted from the user in each of the four HTML documents) and so forth.

Martin Ivanov
Telerik team
 answered on 08 Jul 2021
1 answer
498 views

I'm using RadGridView quite a lot. One of the major functionality is column sorting.

This is radGridView definition. RadGridStyle contains set properties as follows:

    <Style x:Key="RadGridStyle" 
           TargetType="{x:Type telerik:RadGridView}">
        <Setter Property="ItemsSource" 
                Value="{Binding Elements}" />
        <Setter Property="AutoGenerateColumns" 
                Value="False" />
        <Setter Property="EnableRowVirtualization" 
                Value="True" />
        <Setter Property="EnableColumnVirtualization" 
                Value="True" />
        <Setter Property="FrozenColumnCount" 
                Value="5" />
        <Setter Property="ClipboardCopyMode"
                Value="All"/>
        <Setter Property="SelectedItem" 
                Value="{Binding SelectedElement}"/>
        <Setter Property="SelectionUnit" 
                Value="FullRow"/>
        <Setter Property="SelectionMode" 
                Value="Extended"/>
        <Setter Property="MinColumnWidth" 
                Value="75"/>
        <Setter Property="CanUserSortColumns"
                Value="True"/>
        <Setter Property="IsReadOnly"
                Value="True"/>
        <Setter Property="RowHeight"
                Value="20"/>
        <Setter Property="DataLoadMode"
                Value="Synchronous"/>
        <Setter Property="ValidatesOnDataErrors"
                Value="None"/>
        <Setter Property="GroupRenderMode"
                Value="Flat"/>
    </Style>
<telerik:RadGridView Style="{StaticResource RadGridStyle}">
            <telerik:RadGridView.Columns>
<!--int--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Index, Mode=OneTime}" Header="{x:Static localization:Resources.Identifier}"/> <!--string--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name, Mode=OneTime}" Header="{x:Static localization:Resources.Signature}"/> <!--string--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Group, Mode=OneTime}" Header="{x:Static localization:Resources.Group}"/> <!--string--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Code, Mode=OneTime}" Header="{x:Static localization:Resources.Code}"/> <!--string--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Description, Mode=OneTime}" Header="{x:Static localization:Resources.Description}"/> <!--Voltage struct, it implements IComparable/IEquatable--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Data.NominalVoltage, Mode=OneTime}"> <telerik:GridViewDataColumn.Header> <controls:TextBlockForDataGridColumnHeader Text="Un (kV)" /> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> <!--Voltage struct--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Data.SwitchgearRatedVoltage, Mode=OneTime}"> <telerik:GridViewDataColumn.Header> <controls:TextBlockForDataGridColumnHeader Text="Ur (kV)" /> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> <!--string, it doesn't work even for this simple type property--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Data.SwitchgearType, Mode=OneTime}" Header="{x:Static localization:Resources.SwitchgearType}"/> <!--Current struct, it implements IComparable, IEquatable--> <telerik:GridViewDataColumn DataMemberBinding="{Binding Data.RatedCurrent, Mode=OneTime}"> <telerik:GridViewDataColumn.Header> <controls:TextBlockForDataGridColumnHeader Text="Ir (A)" /> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns> </telerik:RadGridView>

RadGridView can use column sorting only for columns no 1-5. Other columns have no ability to sort. There are no sort indicators on column header for each column. When I'm trying to add DataType or SortMemberPath for each column, inidicator appears, but clicking on indicator has no effect. Filter popup contains just only 0 or [null] value

 

This is definition of model, that I'm binding to radGridView. The collection ItemsSource is of type <IEquipment>.


public class Equipment : IEquipment
    {
        public int Index { get; set; }

        public string Name { get; set; }

        public string Code { get; set; }

        public string Description { get; set; }

        public string Group { get; set; }

        public IData Data { get; }
    }

public class Busbar : IData, 
    {
        public Voltage NominalVoltage { get; set; }
        public Voltage SwitchgearRatedVoltage { get; set; }
        public string SwitchgearType { get; set; }
        public Current RatedCurrent { get; set; }
    }

 

I'm afraid that there are some problems with nested objects binding, because whem I'm trying to bind flatten definition of these two types (Equipment and Busbar), there are no problems.

 

Thank you for your help!

Martin Ivanov
Telerik team
 answered on 08 Jul 2021
2 answers
1.5K+ views

I'm using a RadNavigationView in my application that has an existing theme applied - I want to keep this theme rather than use the Telerik themes.  I've been able to manually style most of the control to match the existing theme, with the exception of the mouse over and selected item color. No matter what I try, it is always the default orange color.

Is there any guidance about that shows an example of how to take a standard RadNavigationView, and adjust the highlight colors of the RadNavigationViewItem?

Thanks in advance!       

        

<telerik:RadNavigationView DockPanel.Dock="Bottom" ItemsSource="{Binding Items}" IsPaneOpen="True" SelectedItem="{Binding Item}" DisplayMemberPath="DisplayName" DisplayMode="Expanded" PaneToggleButtonVisibility="Visible" ExpandedPaneWidth="300" AllowMultipleExpandedItems="True" PaneBackground="{DynamicResource MahApps.HamburgerMenu.Pane.Background}" PaneHeaderBackground="{DynamicResource MahApps.HamburgerMenu.Pane.Background}" ><Style TargetType="telerik:RadNavigationViewItem" > <Setter Property="Background" Value="{DynamicResource MahApps.HamburgerMenu.Pane.Background}"/> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Foreground" Value="{DynamicResource MahApps.HamburgerMenu.Pane.Foreground}" /> <Setter Property="FontSize" Value="16"/> <Setter Property="ItemsSource" Value="{Binding Items}" /> <Setter Property="DisplayMemberPath" Value="DisplayName" /> <Setter Property="Icon" Value="{Binding Icon, Mode=OneWay}" /> </Style>

<telerik:RadNavigationView.ContentTemplate>...

Martin Ivanov
Telerik team
 answered on 08 Jul 2021
1 answer
237 views

Hello.

I am using Telerik UI for WPF.

I want to know if there is way to show the sum of cumulative bar chart values on Chartview.

Such as like this. (Values in Green)

 

 

Thanks.

Martin Ivanov
Telerik team
 answered on 08 Jul 2021
1 answer
137 views

Hello.

I am using Telerik UI for WPF.

I want to know if there is Trellis function in Chartview.

Such as like this.

https://docs.tibco.com/pub/spotfire/6.5.1/doc/html/vis/vis_trellis_visualizations.htm

Thanks.

Martin Ivanov
Telerik team
 answered on 07 Jul 2021
1 answer
161 views

Hi,

I'm trying to simulate having an application that just runs from the system tray icon.

I can get the NotifyIcon to appear but if i set the main window to hidden it disappears, which makes sense as its part of that main window.

Is there any way to have the NotifyIcon visible but have the window it is part of hidden?

Cheers,

Steve.
Martin Ivanov
Telerik team
 answered on 07 Jul 2021
4 answers
252 views
Hello

To use SelectedItems, "GridViewSelectionUtilities" of Telerik GridView SDK was used.

A normal gridview works just fine.
Here, the Model adds another hierarchical gridview. and run.
Multiselecting the parent gridview works fine.
But when I select the child gridview, an error appears.

An exception was thrown because the model format is different.
"Cannot be used for this generic collection."

How do I solve this?
I need to get the SelectedItmes of both the parent GridView and the child Gridview.

Thanks.
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 updated answer on 07 Jul 2021
8 answers
468 views
Hi, 

Check out this simple scenario (zip project)
Its a RadTreeListView, bound up to an entity with a combobox to expand to each level. The performance is crap. 
I'm using the lightweight metro (windows8) style, and have overridden CreateCellElement as follows. 
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
{
    if (cell.Content != null && cell.DataContext == dataItem)
    {
        return (FrameworkElement)cell.Content;
    }
 
    return base.CreateCellElement(cell, dataItem);
}

Open it up, drag to fill the height of your screen, expand all items a couple of levels deep (using the combo, top left) and scroll around - it's extremely laggy. Any suggestions? In my work version a similar scenario is entirely unusable, and I'm currently forced to loop through all expanded rows and dispatch 'ExpandHierarchyItems' calls which ties up the UI for ages, just to prevent a horrendous scrolling experience (extremely slow/massive UI lockups, nodes not expanded, no children, rows at wrong level). Latest version of telerik WPF, windows 7 x64.
 
I'm now comparing this simple scenario with the alternatives (devexpress etc) ... 


cross posted here: http://stackoverflow.com/questions/16623749/telerik-radtreelistview-poor-performance
duplicate of http://www.telerik.com/community/forums/wpf/gridview/radtreelistview-poor-performance.aspx (wrong channel)
Thiago
Top achievements
Rank 1
Iron
 answered on 06 Jul 2021
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?