Telerik Forums
UI for WPF Forum
2 answers
226 views

Hi,

When I try to set the padding for the Row Header in my pivot grid it causes the row expand buttons to disappear? I need to adjust the padding so the text sits correctly (in the middle not bottom) of the row.

I have attached images showing the missing expand button. Should the RowHeaderStyle maybe based on a different style?

Thanks for you help!

 Dom

1.<pivot:RadPivotGrid x:Name="radPivotGrid1" Grid.Column="0" DataProvider="{Binding DataProvider}" AllowSelection="True" RowHeight="20" CellTextPadding="2" >
2.  <pivot:RadPivotGrid.RowHeaderStyle>
3.    <Style TargetType="pivot:PivotHeader" BasedOn="{StaticResource PivotHeaderStyle}">
4.      <Setter Property="Padding" Value="20 2 5 0"></Setter>
5.    </Style>
6.  </pivot:RadPivotGrid.RowHeaderStyle>
7.</pivot:RadPivotGrid>
Dom
Top achievements
Rank 1
 answered on 18 Oct 2019
1 answer
239 views
Is it possible to change the size of the thumbnails from code behind?
Martin
Telerik team
 answered on 17 Oct 2019
3 answers
508 views

I have the following .xaml and it correctly colorizes the foreground on specific items when a certain condition is met (Impinged = True).
However, when I select that item, it doesn't maintain the color. I attempted the following suggestion on this thread but it didn't work. Either because I am working with Telerik or something else.

I tried this but didn't work:

https://stackoverflow.com/questions/49936272/combobox-change-selected-item-background-color-by-trigger-condition

 

<telerik:GridViewDataColumn.CellTemplate>
  <DataTemplate>
     <telerik:RadComboBox
        x:Name="cbLowBand"
        DisplayMemberPath="Name"
        ItemsSource="{Binding DataContext.LowBandItems, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"
        SelectedItem="{Binding SelectedLowItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
        Style="{StaticResource MyCustomStyle}"

        <telerik:RadComboBox.ItemContainerStyle>
       <Style TargetType="telerik:RadComboBoxItem">
              <Style.DataTriggers>
         <DataTrigger Binding="{Binding IsImpinged}", Value="True">
        <Setter Property="Foreground" Value="Red" />
        <Setter Property=ToolTip", Value="{Binding ImpingedTooltip}" />
         </DataTrigger>
      </Style.DataTriggers>
    </Style> 
    </telerik:RadComboBox.ItemContainerStyle>

       <!--other non related stuff>
       <telerik:EventToCommandBehavior.EventBindings>
     <telerik:EventBinding
              Command="{Binding DataContext.LowBandItem, RelativeSource=...........

Dimitar Dinev
Telerik team
 answered on 17 Oct 2019
3 answers
192 views

Hi,

we have a strange behavior, when we bound a group filter.

                <telerik:RadScheduleView.ViewDefinitions>
                    <telerik:DayViewDefinition  GroupFilter="{Binding VmGroupFilter}" DayStartTime="06:00" DayEndTime="19:00" TimerulerMajorTickStringFormat="{}{0:H:mm}"/>
                    <telerik:WeekViewDefinition GroupFilter="{Binding VmGroupFilter}" DayStartTime="06:00" DayEndTime="19:00"/>
                    <telerik:MonthViewDefinition GroupFilter="{Binding VmGroupFilter}"/>
                </telerik:RadScheduleView.ViewDefinitions>
            </telerik:RadScheduleView>

The DayView works like expected, but now the week view is still a day view and the month view is the week view.
See attached screen shots.

Do you have any explanation for this?

 

Vladimir Stoyanov
Telerik team
 answered on 17 Oct 2019
1 answer
312 views

We are currently using a simple map component which allows us to load our "map" as a picture (.png). I would like to use the Telerik RadMap instead because you provide several features (virtualization, zooming, layers) which are only supported in a basic way by our current component. We are displaying industrial plant maps which could be represented in "GPS" coordinates however our systems are built to use a different coordinate system. The problem is that we do NOT use shape files, a global coordinate system or such things however the RadMap component is mostly built to be used like that. I tried to use the UriImageProvider which displays my map however I don't know how to configure my coordinate system.

Our map has the following data:

- map image (.png)

- defined coordinate origin (-> e.g. bottom right of the image)

- 1 Pixel = 20mm

- drawings (polylines) based on coordinates located in a SQL DB

 

Is it possible to use the RadMap for our purposes and if so how?
Martin Ivanov
Telerik team
 answered on 17 Oct 2019
19 answers
1.1K+ views

Hello admins.

I have a problem with RadPdfViewer.

normal case is good.

--MainWindow.cs------------------------------------------

    public partial class MainWindow : Window
    {
        string pdfFilePath = @"C:\Temp\PDFs\20170707 learnwpf.pdf";

        public MainWindow()
        {
            InitializeComponent();
            
            this.pdfViewer.DocumentSource = new PdfDocumentSource(new System.Uri(pdfFilePath, System.UriKind.RelativeOrAbsolute));
        }
    }

------------------------------------------------------------

 

But, in MvvM not working.

--MainWindow.xaml------------------------------------

<Window x:Class="TelerikWpfPDFViewerBinding.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <telerik:RadPdfViewerToolBar RadPdfViewer="{Binding ElementName=pdfViewer, Mode=OneTime}" SignaturePanel="{Binding ElementName=signaturePanel, Mode=OneTime}"/>
            <telerik:SignaturePanel x:Name="signaturePanel" PdfViewer="{Binding ElementName=pdfViewer, Mode=OneWay}" Grid.Row="1"/>
            <telerik:RadPdfViewer x:Name="pdfViewer" 
                                  DataContext="{Binding CommandDescriptors, ElementName=pdfViewer}" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterSignSignatureDialog="True" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterFindDialog="True" 
                                  Grid.Row="2" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterSignaturePropertiesDialog="True" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterContextMenu="True"
                                  Document="{Binding PDFDocument,Mode=TwoWay}"/>
        </Grid>

    </Grid>
</Window>

-------------------------------------------------------------------------------------

--MainWindow.xaml.cs-------------------------------------------------------

namespace TelerikWpfPDFViewerBinding
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            DataContext = new MainWindowViewModel();
        }
    }
}

---------------------------------------------------------------------------------

--MainWindowViewModel.cs-------------------------------------------

using System.IO;

using Telerik.Windows.Controls;

using Telerik.Windows.Documents.Fixed.FormatProviders;
using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf;
using Telerik.Windows.Documents.Fixed.Model;

namespace TelerikWpfPDFViewerBinding
{
    public class MainWindowViewModel: ViewModelBase
    {
        private RadFixedDocument _PDFDocument;
        public RadFixedDocument PDFDocument {
            get { return _PDFDocument; }
            set {
                _PDFDocument = value;
                OnPropertyChanged("PDFDocument");
            }
        }
        public MainWindowViewModel()
        {
            string pdfFilePath = @"C:\Temp\PDFs\20170707 learnwpf.pdf";
            LoadPDFDocument(pdfFilePath);
        }

        private void LoadPDFDocument(string pdfFilePath)
        {
            MemoryStream stream = new MemoryStream();

            using (Stream input = File.OpenRead(pdfFilePath))
            {
                input.CopyTo(stream);
            }

            FormatProviderSettings settings = new FormatProviderSettings(ReadingMode.OnDemand);
            PdfFormatProvider provider = new PdfFormatProvider(stream, settings);
            PDFDocument = provider.Import();
        }

    }
}
----------------------------------------------------------------------------------------------

Where am I wrong?

thanks.

Georgi
Telerik team
 answered on 16 Oct 2019
7 answers
256 views

Hi,

SizeAll cursor(Four headed Sizing Cursor) only appears when we hover the mouse pointer on the sides of RadDiagram shapes .But expectation is , SizeAll Cursor has to enable before the mouse pointer touches the sides of shapes (approximately in 0.5 gap). we would like to show the cursor behavior as like powerPoint.

In powerpoint , we could see SizeAll cursor appears in some distance when we move the mouse pointer closer to the shapes. I have attached screenshot for reference .

We have also tried the solution which is given in previous post, yet couldn’t find a solution to fix this issue. Can you kindly check and let us know a appropriate solution.
Note: Need to implement a cursor behavior out of the RadDiagram Shapes (Distance of 0.5 gap).

Regards,

Jeevitha S.

 

 

Martin Ivanov
Telerik team
 answered on 16 Oct 2019
6 answers
369 views

Hello,

 I was wondering if there is any way to set up a TimeSpanPicker so that negative values can be provided?

I tried setting the "Minimum" option on the components to a negative value, but it seems this isn't respected and the minimum remains at 0.

 Any help would be appreciated

Cheers

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Oct 2019
5 answers
701 views

This seems like an easy one and I'm probably missing something obvious.  If so, I apologize in advance.  But I'm confused how to style the Busy indicator associated with the RadGridView.  If I drop an independent RadGridView on my UI, I can used Blend to create a copy of the template and style it.  But I can't figure out how to bind that with my GridView. 

I included a screenshot that is a composite of 2 screenshots.  The top is GridView.IsBusy = false.  The bottom is GridView.IsBusy = true.  The arrows include the Busy Indicator I'm trying to style.  

 

Scott
Top achievements
Rank 1
 answered on 15 Oct 2019
5 answers
250 views

I am trying to use the RadWindow.Alert() dialog however when I am trying to call it I get an "infinite loop". It seems the code never returns from the Win32 call. It can be seen clearly when the Alert() is executed and "debugger pause" is pressed in Visual Studio. The problem is quiet strange. I checked the demo on two additional computers. It was working with none. All three are using Windows 10. The issue also occurs for Confirm(). Please see the attached project (disguised as a .gif) as a very trivial example.

 

System information:

Visual Studio 2019, Project build with .NET v4.6

Windows 10

Telerik WPF v2019.3 (.NET v4.5) and Telerik WPF v2019.2 (.NET v4.5)

Dilyan Traykov
Telerik team
 answered on 15 Oct 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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?