Telerik Forums
UI for WPF Forum
9 answers
167 views

        private void RadRibbonView_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
        {

              if (ribbon.SelectedItem is RadRibbonTab)
                {
                    //keepBackstageOpen = false;
                    //MasterRadRibbonView.IsBackstageOpen = false;
                    System.Diagnostics.Debug.WriteLine("RadRibbonTab");
                }
                else if (ribbon.SelectedItem is RadRibbonBackstage)
                {
                    //keepBackstageOpen = true;
                    //MasterRadRibbonView.IsBackstageOpen = true;
                    System.Diagnostics.Debug.WriteLine("RadRibbonBackstage");
                }

        }

 

If I click on the backstage, this always triggers as a tab (the last one selected), and not as the backstage...which is causing me many problems.

Any advice ?

Barry
Top achievements
Rank 1
 answered on 25 Jul 2019
1 answer
128 views

Good morning, i had a issue when a try to move the RadPane that contains the RadGridView only when i use the theme VisualStudio2013. I try everything, with  any other theme work just fine. Pop into Output window in Visual Studio the following binding error for each column i have int the RadGridView, and it slows the application in a way that is very painful :

 

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor AncestorType='Telerik.Windows.Controls.GridView.DataCellsPresenter', AncestorLevel='1''. . BindingExpression:Path=Foreground; DataItem=null; target element is 'ContentControl' (Name='PART_ContentPresenter'); target property is 'Foreground' (type 'Brush')

 

I try taking of styles of header cells and such, but does not work. The others themes works with custom styles and without it.

Dimitar Dinev
Telerik team
 answered on 25 Jul 2019
9 answers
991 views

I want to add context menu for RadGridView and tried below code.. but it gives error as in the attached screenshot. please let me know how to proceed.

 

<telerik:RadGridView x:Name="radGridView" AutoGenerateColumns="False">
            <ui:RadContextMenu.ContextMenu>
                <ui:RadContextMenu x:Name="GridContextMenu" />
            </ui:RadContextMenu.ContextMenu>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Age}" Header="Age"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding IsMarried}" Header="Married"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

 

Martin Ivanov
Telerik team
 answered on 25 Jul 2019
1 answer
153 views

Hello,

Our app is extremely heavy with Telerik controls (we use it for just about everything in our UI). We've been getting complaints about the overall memory footprint of our app. Obviously most of that would likely be due to data and business logic, but we also were looking to do an analysis of all (Terlerik) controls being used to see if any are contributing factors. One of our designers mentioned that he feels the Telerik grid control is "very expensive" from a memory point of view - and we use it all over the place in our app, even in places where the stock WPF grid control may have been good enough.

Are there any utilities to track all the controls memory usage ?....or any ways to tap into the controls to find out the memory usage of each individually ?

Any suggestions would be appreciated.

Thanks,

Barry

Martin Ivanov
Telerik team
 answered on 25 Jul 2019
2 answers
102 views

Can i set the TreeListViewItem visibility to visible or hide, when i use the treelistiview in Virtualization model.

I want to use this method to search something,or may be another?

wang
Top achievements
Rank 1
 answered on 25 Jul 2019
4 answers
303 views
Hello Everyone,

I have users that can have 30 tiles on the RadTileList

I am trying to detect when the RadTileList is selected. Not the tiles inside the RadTileList.

The goal her, is to send the user back to the search textbox in the RadToolBar at the top.

I can't use  RadTileList_SelectionChanged since is not fired when not selecting a tile.

FocusManager.FocusedElement="{Binding ElementName=txtSearch}" doesn't work

and FocusManager.GotFocus="radTileLis_Focus" works once even if you click on a tile.

Is it possible to do that?

If so how?
Kermit
Top achievements
Rank 1
 answered on 24 Jul 2019
2 answers
117 views

Hi.

When clicked crop item and then directly press save button, cropped image is saved.It seems cropped result image save.

What i want  no cropping just save image. Please refer to the file for details.

How can i get uncropped image.

Please give me advise. 

Thanks reading this post.

Martin Ivanov
Telerik team
 answered on 24 Jul 2019
6 answers
329 views

Hi Telerik support team,

I have a TabbedWindow with RadTabItems generated dynamically from code behind. In each RadTabItem, there is frame that I navigated to a Page.

The trouble is that: When a user drags a tab out of a host TabbedWindow, if the drop is inside a RadTabItem (I meant users just drag out the header and drop inside a tab), the tab is not dragging out. In plus, since this moment, all drag-out is not working even drop area is outside a tab.

Many thanks for your support

Here is my code in C#:

var newRadTab = new RadTabItem();
newRadTab.HeaderTemplate = (DataTemplate)this.Resources["HeaderTemplate"];
var frame = new Frame() { Name = "displayMainContent" };
frame.NavigationUIVisibility = NavigationUIVisibility.Hidden;
frame.ContextMenu = new ContextMenu() { Visibility = Visibility.Hidden };
newRadTab.Content = frame;

 

And Xaml as below:

<telerik:RadTabbedWindow x:Class="WpfConcept.MainTabbedWindow" x:Name="radTabbedWindow"
        IsContentPreserved="False"
        xmlns:self="clr-namespace:WpfConcept"
        mc:Ignorable="d"  PreviewTabClosed="OnWindowPreviewClosed" PreviewClosed="radTabbedWindow_PreviewClosed"
        MinWidth="380" MinHeight="260"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Loaded="OnWindowLoaded"
        Width="1800" Height="1000" Header="Concept Family Office v.8.0.1"
        ItemsSource="{Binding Data}"
        DisplayMemberPath="Header" AddButtonVisibility="Hidden">
minh
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Jul 2019
2 answers
99 views

Hi,

I have a GridView with GridViewSelectColumn ,which have binded itemsource and seted selectionmode "Multiple".But the grid always have selected the fist value of itemsource and the selecteditem is same value.

 My expectation is nothing selected,how to solve it.

Regards,
Guo

Dilyan Traykov
Telerik team
 answered on 24 Jul 2019
1 answer
451 views

Hello,

I'm trying to implement GIF for my GridView but it isn't animated. Does GridView support GIFs?

My example:

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:NotWorkingGif"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="NotWorkingGif.MainWindow"
        mc:Ignorable="d"
        DataContext="{Binding RelativeSource={RelativeSource Self}}"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <telerik:RadGridView ItemsSource="{Binding Collection}" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewImageColumn DataMemberBinding="{Binding ImageUri}" Header="" ImageStretch="None" ImageHeight="16" ImageWidth="16" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

namespace NotWorkingGif
{
    using System;
    using System.Collections.ObjectModel;
    using System.ComponentModel;
    using System.Windows;

    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public ObservableCollection<TestClass> Collection { get; set; } = new ObservableCollection<TestClass>();

        public MainWindow()
        {
            InitializeComponent();

            this.Collection.Add(new TestClass() { ImageUri = new Uri(@"path to GIF image") });
        }
    }

    public class TestClass : INotifyPropertyChanged
    {
        private Uri imageUri;
        public Uri ImageUri
        {
            get => imageUri;

            set
            {
                imageUri = value;
                this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("ImageUri"));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}


Dilyan Traykov
Telerik team
 answered on 24 Jul 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?