Telerik Forums
UI for WPF Forum
0 answers
97 views
  1. I find GridViewCheckBoxColumn far too dull - the difference between checked and unchecked is not obvious enough when it's not active.  Is there an easy way to punch it up?
  2. I'd like the functionality of GridViewSelectColumn, but from what I've been able to determine, it isn't really intended to be used with MVVM.  The documentation says explicitly that "GridViewSelectColumn does not bind to data".  Am I missing something?

Thanks!

Brad.

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 22 Oct 2024
2 answers
49 views

I'm using a DefaultVisualStyle Property to set the style in order to control the Fill color of ScatterPointSeries via the DataItem.PointColor property (as seen below)

This works fine, but when I try to use a ChartDataSourceStyle to reduce the number of datapoints using Index-based sampling, something breaks and I no longer see ANY points displayed in the graph, due to this binding failure:

Path Tag.DataItem.PointColor Path.Fill Brush PointColor property not found on object of type DataPointSamplingInfo.

 

** How can I redirect the DataPointSamplingInfo points to use the PointColor of its DataItems (they'll all have the same value) **

<Style x:Key="ScatterPointStyle" TargetType="Path" >
            <Setter Property="Fill" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag.DataItem.PointColor}"/>
</Style>

 

  <telerik:ChartSeriesProvider Source="{Binding ChartData}"  >
      <telerik:ChartSeriesProvider.SeriesDescriptors >

         <telerik:ScatterSeriesDescriptor XValuePath="SV"
                                                                         YValuePath="Depth"
                                                                         x:Name="DownCastPoints"
                                                                         ItemsSourcePath="ItemSelectionDown">
                                                            <telerik:ScatterSeriesDescriptor.Style>
                                                                <Style TargetType="telerik:ScatterPointSeries">
                                                                    <Setter Property="PointSize" Value="8,8"/>
                                                                    <Setter Property="Opacity" Value="0.8"/>
                                                                    <Setter Property="Visibility" Value="{Binding DownCastPointsVisible, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                                                    <Setter Property="DefaultVisualStyle" Value="{StaticResource ScatterPointStyle}"/>
                                                                </Style>
                                                            </telerik:ScatterSeriesDescriptor.Style>
                                                            <telerik:ScatterSeriesDescriptor.ChartDataSourceStyle>
                                                                <Style TargetType="telerik:ChartDataSource">
                                                                    <Setter Property="SamplingThreshold" Value="50" />
                                                                </Style>
                                                            </telerik:ScatterSeriesDescriptor.ChartDataSourceStyle>
                                                        </telerik:ScatterSeriesDescriptor>
Stenly
Telerik team
 answered on 16 Oct 2024
0 answers
119 views

Hi 

I've been using the Microsoft WebView2 control lately and find it quite horrible to work with... 

I was wondering if you guys at Telerik would be able to make a wrapper for it that improve the functionality of the control ? 

Problems that i encountered : 

- Initialization is pretty messed up and require that you setup a Rube Goldberg machine to make it work.

- Overflow issues : the Webbrowser may overflow any / all other WPF controls unless you do a lot of scorcery ... 

- Having the WebView inside a scrollbar is pretty messed up with overflow issues all over.


Martin
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 14 Oct 2024
0 answers
89 views

Hi,

Is there a way to change the icon for the rad expander from the circle with a '<' or '>' to an icon and shape that I define?

Thanks

Tony

Tony
Top achievements
Rank 1
 asked on 10 Oct 2024
0 answers
77 views

I'm sure this is trivial, but I've been unable to find the answer.  I have a RadGridView defined as follows:

<telerik:RadGridView
    ItemsSource="{Binding Products}"
    SelectedItem="{Binding SelectedProduct, Mode=TwoWay}">
    ...
</telerik:RadGridView>

However, when I change the "SelectedProduct" programmatically, the RadGridView doesn't show that highlighting.  What am I doing wrong?

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 09 Oct 2024
4 answers
192 views
Hello,

in many menus I use the same buttons.
Is it possible to create a kind of a base class?

In this case it would be nice to have a base class of the complete group header "actions".

eg:

<telerik:RadRibbonView ApplicationButtonVisibility="Collapsed"TitleBarVisibility="Collapsed" HelpButtonVisibility="Collapsed">
            <telerik:RadRibbonTab Header="Home" HeaderVisibility="Collapsed">
                <telerik:RadRibbonGroup Header="Actions">
                    <telerik:RadRibbonButton LargeImage="{StaticResource Back}" Text="Close" Size="Large"
                                                      Command="{Binding CloseViewCommand}" />
                    <telerik:RadRibbonButton LargeImage="{StaticResource Edit}" Text="Edit" Size="Large"
                                                      Command="{Binding EditItemCommand}" />
                    <telerik:RadRibbonButton LargeImage="{StaticResource Save}" Text="Save" Size="Large"
                                                      Command="{Binding SaveItemCommand}" />
                    <telerik:RadRibbonButton SmallImage="{StaticResource Cancel}" Text="Cancel" Size="Large"
                                                      Command="{Binding CancelItemCommand}" />
                </telerik:RadRibbonGroup>
 
                <telerik:RadRibbonGroup Header="Print">
                    <telerik:RadRibbonButton SmallImage="{StaticResource Print}"  Text="xxx" Size="Large"
                                                      Command="{Binding PrintItemCommand}"/>
                </telerik:RadRibbonGroup>
 
                <telerik:RadRibbonGroup Header="Extras">
                    <telerik:RadRibbonButton SmallImage="{StaticResource UpdatePortrait}"  Text="xxxxx" Size="Large"
                                                      Command="{Binding UpdatePictureCommand}"/>
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>


Thank you,
Manuel
Jacob
Top achievements
Rank 1
Iron
 answered on 09 Oct 2024
1 answer
53 views

Hey,

I am using a DragDropManager to drag images from a itemscontrol onto a table.
Now I want to rotate the image, if the user presses the Key "R" during Dragging.

But I dont get it to work.
All Input Bindings on the Window and DataTemplate did not fire.
Does anyone have an idea to achieve what I want?

DragDropManager.AddDragInitializeHandler(icImages, OnDragInitialize);
private void OnDragInitialize(object sender, DragInitializeEventArgs e)
        {
          
            clsImage imageData = (clsImage)((FrameworkElement)e.OriginalSource).DataContext;

            DragDropData dragData = new DragDropData
            {
                ImageData = imageData ,
                Column = Column
            };

            e.Data = dragData;
            e.DragVisual = new ContentControl { ContentTemplate = LayoutRoot.Resources["ImageTemplate"] as DataTemplate, Content = imageData };
            e.AllowedEffects = DragDropEffects.All;

            e.Handled = true;
        }
            <DataTemplate x:Key="ImageTemplate">
                <Grid>
                    <telerik:RadSvgImage
                        UriSource="{Binding file}"
                        HorizontalAlignment="Left"
                        SizeType="ContentToSizeStretch"
                        OverrideColor="{Binding ImageColor}"
                        />
                </Grid>
            </DataTemplate>
Stenly
Telerik team
 answered on 09 Oct 2024
1 answer
84 views

I ran into this problem when experimenting with VirtualGrid, but trying to work with Multiple selection mode seems completely broken. I have even created a new project from scratch and only imported the following packages:

telerik.windows.controls.for.wpf.xaml (2024.3.924)
telerik.windows.controls.virtualgrid.for.wpf.xaml (2024.3.924)

My MainWindow.xaml looks like:

<Window x:Class="TestVirtGrid.MainWindow"
        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:TestVirtGrid"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <telerik:RadVirtualGrid x:Name="VirtGrid" CanUserEdit="False" Grid.Row="0" SelectionMode="Multiple" SelectionUnit="Row" />
        <Button Grid.Row ="1" Content="amon"/>
    </Grid>
</Window>

The code-behind looks like:

using System.Collections.ObjectModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls.VirtualGrid;

namespace TestVirtGrid
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            ObservableCollection<Test> list = [];
            for (int i = 0; i < 20; i++)
                list.Add(new Test() { a = i, b = i });
            VirtGrid.DataProvider = new DataProvider(list);
        }

    }
    public class Test
    {
        public int a { get; set; }
        public int b { get; set; }
    }
}

When running the application, I'm able to select rows, but deselecting is clearly not working as intended. When I try to deselect, it often just completely fails to do so. Sometimes (like, 1 in 5 tries?) it does end up deselecting the row.

If there's something I've done wrong here, please let me know, otherwise I'd like to get some confirmation that this module doesn't work.

Martin Ivanov
Telerik team
 answered on 09 Oct 2024
1 answer
44 views

Hey guys,

I'm currently using the CloudUpload to upload files to an internal server.
This happens over multiple single steps in clsDaten.UploadReklamationsDateienKEMdoc.
This would return a true if succesfull uploaded and a false, as well as an error message if not.
I now want to show this error message in the interface and an Error sign instead of the succesfull check.
But I dont find anywhere how.

Does anyone have an idea?

Greetings Benedikt

    public class clsCloudUploadProvider : ICloudUploadProvider
    {
		long uploadFilesCount = 0;

		clsReklamation Reklamation;

		public Task<object> UploadFileAsync(string fileName, Stream fileStream, CloudUploadFileProgressChanged uploadProgressChanged, CancellationToken cancellationToken)
		{
			return Task.Factory.StartNew<object>(() => UploadFile(fileName, fileStream, uploadProgressChanged, cancellationToken), cancellationToken);
		}

		private object UploadFile(string fileName, Stream fileStream, CloudUploadFileProgressChanged uploadProgressChanged, CancellationToken cancellationToken)
		{
			this.uploadFilesCount++;
			var fileLength = fileStream.Length;

			uploadProgressChanged(fileLength);

			object[] ImportState = Import(fileStream, fileName);

			if ((bool)ImportState[0])
			{
				return fileName;
			}
			else
			{
				return null;
            }
		}

		public object[] Import(Stream filestream, string filename)
		{
			return clsDaten.UploadReklamationsDateienKEMdoc(Reklamation, (filestream as FileStream).Name);
		}

		public clsCloudUploadProvider(clsReklamation reklamation)
		{
			Reklamation = reklamation;
		}
	}


Martin Ivanov
Telerik team
 answered on 08 Oct 2024
1 answer
44 views

Our application has a RadVirtualGrid that can be much wider than the window (so it scrolls).  Our SelectionUnit is set to "Row".  But when I hit Ctrl + End the grid not only jumps to the last row, but also scrolls the last column into view.  It seems to me that if the SelectionUnit  is "Row" the control should just jump to the last row and not change the column or scroll status at all.  I guess the same thing is true about ctrl+Home to go to the top.  Anyone agree?

Thanks!

Nathan

Martin Ivanov
Telerik team
 answered on 07 Oct 2024
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
TimeBar
Styling
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
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?