Telerik Forums
UI for WPF Forum
2 answers
144 views

I'm re-visiting our previous approach to create an arrow annotation, as our current one is  clunky - a line with a shape appended to the end of it to emulate an arrow. It doesn't scale well with zooming in and out and our QA folks are asking for a better implementation.

Is there any add-on widget to achieve an arrow annotation in a RadCartesianChart ?

Is there a newer Chart that has arrow annotations built in ?

Thanks,

Barry

 

Barry
Top achievements
Rank 1
 answered on 14 Sep 2018
1 answer
110 views

I have a project which is using a base class (called Job) and two derived classes (Hire & Sales) - which share a lot of properties.  When I add a string property to Hire and bind to that column in a gridview - the filtering icon doesn't appear above the column, however it works fine on when I bind to the base class - I've read that perhaps this is because it can't determine the datatype, but it is just a string.

This is a xaml example of two columns, next to each other, the first column displays the filter icon (SiteLocation is held within base class), the second column (SiteLocation1 held in Hire class) doesn't - they both show the correct data.

<telerik:GridViewDataColumn Header="Location"  UniqueName="Location" DataMemberBinding="{Binding ScheduleItemJob.SiteLocation}" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" IsReadOnly="True" CellStyle="{StaticResource GridViewCellStyle}"/>
<telerik:GridViewDataColumn Header="Location1"  UniqueName="Location1" DataMemberBinding="{Binding ScheduleItemJob.SiteLocation1}" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" IsReadOnly="True" CellStyle="{StaticResource GridViewCellStyle}"/>

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Sep 2018
2 answers
374 views

I'm trying to disable moving a child shape of a RadDiagramContainerShape by override DraggingService as below:

public class MyDragging : DraggingService
    {
        private readonly RadDiagram diagram;
 
        public MyDragging(RadDiagram graph)
            : base(graph as IGraphInternal)
        {
            this.diagram = graph;
        }
 
        public override void Drag(Point newPoint)
        {
            if (this.DraggingModels.FirstOrDefault().ParentContainer != null)
            {
                return;
            }
            else
            {
                base.Drag(newPoint);
            }
        }
    }

It does make the child shape immovable. However, after I dragged the child shape, it will be removed from the parent container shape. (subShape.ParentContainer will be null). Then, when I drag the child shape again, it can be moved.

 

How to fix this issue?

rick
Top achievements
Rank 1
 answered on 14 Sep 2018
1 answer
195 views

I'm setting the style of my RadPane just like the 'VisualStudio' example:

<Style TargetType="telerik:RadPane" BasedOn="{StaticResource RadPaneStyle}">
    <Setter Property="CanDockInDocumentHost" Value="False" />
    <Setter Property="Header" Value="{Binding Header}" />
    <Setter Property="IsHidden" Value="{Binding IsHidden, Mode=TwoWay}" />
</Style>
 
<Style TargetType="telerik:RadDocumentPane" BasedOn="{StaticResource RadPaneStyle}">
    <Setter Property="Header" Value="{Binding Header}" />
    <Setter Property="IsHidden" Value="{Binding IsHidden, Mode=TwoWay}" />
</Style>

 

My ViewModel has the IsHidden property, and is notifying fine. Removing the panels works. However, 'unhiding' them fails.

protected override RadPane CreatePaneForItem(object item)
{
    var viewModel = item as IDockPane;
    if (viewModel == null) return base.CreatePaneForItem(item);
 
    var pane = viewModel.PaneType == PaneType.DocumentPane ? new RadDocumentPane() : new RadPane();
    pane.DataContext = item;
    RadDocking.SetSerializationTag(pane, viewModel.Header);
 
    pane.Content = new TextBlock { Text = "Test" };
 
    return pane;
}

 

After some searching these forums, it seems an issue with the binding not updating because it's removed from the visual tree? If so, is there any alternatives? How is the Visual Studio example getting around this? I can find no other code that attempts to restore the hidden panes - but maybe I'm missing it.

I tried simply listening for the IsHidden property change:

viewModel.PropertyChanged += (sender, args) =>
{
    pane.IsHidden = viewModel.IsHidden;
};

 

And this half works. The first time it does nothing, but the second time you 'cycle' the IsHidden property (say with a checkbox) it appears again! Except the tabs are missing their headers.

The DataContext is set fine, and if I go in and press 'reset' on the binding in the Visual Studio live property editor it refreshes just fine to the right header.

Dilyan Traykov
Telerik team
 answered on 13 Sep 2018
9 answers
1.1K+ views
Hello,

I want to use the Combobox with IsFilteringEnabled="True" to allow users to select items from a combobox.
However users should also be able to enter new things, that are not (yet) available in the list. Kind of like a recently used list.

When I enable filtering the combobox always clears itself when the focus is lost, thus my users can never enter anything new.
Is there a way to turn this off?
Or is there any other way I can do this?

Thanks!

Regards,
Peter
Stefan
Telerik team
 answered on 13 Sep 2018
2 answers
168 views

Hi,

I need to implement a custom resize tool  in RadImageEditorUI and set default width and hight. Is it possible to override resize tool? 

Thank you very much for your responses

My warmest regards

Mesut

Mesut
Top achievements
Rank 1
 answered on 13 Sep 2018
0 answers
154 views
Hello,

I need help about slider and events. Firstly, I have many events(from three different source) and I want to add these events on timeline. Then, when I change the slider, I want to go the event. (my DateTime format is: (dd/mm/yyyy HH/mm/ss)). So, Is there any controls or anything for my problem's solution.
Thanks.
Serhat
Top achievements
Rank 1
 asked on 13 Sep 2018
36 answers
464 views
Hi!

I recently started to experiment with the PivotGrid and i have to say - very cool! But i couldn't find a way to export the data to excel, is that possible? Or is there a way to iterate through all the cells so i can export them myself?

Kind regards
Michael
Dinko | Tech Support Engineer
Telerik team
 answered on 13 Sep 2018
1 answer
229 views

Hi everyone, 

 

I have a GridView with 5 grouping, lots of data. When I expand the last level of grouping, I have this weird white space. 

The issue is not present when I set the GroupRenderMode to Nested but the performance become terrible.

No difference when I change the value of AutoExpandGroups.

here is the code : 

<telerik:RadGridView x:Name="GridViewListingNumberList" GroupRenderMode="Flat"
                     VerticalAlignment="Top" VerticalContentAlignment="Top"
                     telerik:StyleManager.Theme="Windows"
                     Background="Transparent"
                     ColumnBackground="Transparent"  AlternationCount="2" SelectionUnit="FullRow"
                     ItemsSource="{Binding List.Presenter.ResultDisplay}"
                     MaxHeight="900" Margin="5,5,5,10"
                     CanUserFreezeColumns="False" AutoExpandGroups="False"
                     RowIndicatorVisibility="Collapsed"
                     AutoGenerateColumns="False"
                     IsReadOnly="True"
                     MouseDoubleClick="shareGrid_MouseDoubleClick"
                     ShowGroupPanel="true">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn IsVisible="true" Header="Marché" UniqueName="MarketName" Width="auto"  DataMemberBinding="{Binding MarketName}" IsReadOnly="True" ShowColumnWhenGrouped="False">
            <telerik:GridViewDataColumn.GroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Group.Key, StringFormat='Marché: {0}'}" VerticalAlignment="Center"/>
                </DataTemplate>
            </telerik:GridViewDataColumn.GroupHeaderTemplate>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn IsVisible="true" Header="Payeur" UniqueName="PayerName" Width="auto"  DataMemberBinding="{Binding PayerName}" IsReadOnly="True" ShowColumnWhenGrouped="False">
            <telerik:GridViewDataColumn.GroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Group.Key, StringFormat='Payeur: {0}'}" VerticalAlignment="Center"/>
                </DataTemplate>
            </telerik:GridViewDataColumn.GroupHeaderTemplate>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn IsVisible="true" Header="Périodicité" UniqueName="PeriodicityName"  Width="auto"  DataMemberBinding="{Binding PeriodicityName}" IsReadOnly="True" ShowColumnWhenGrouped="False">
            <telerik:GridViewDataColumn.GroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Group.Key, StringFormat='Période: {0}'}" VerticalAlignment="Center"/>
                </DataTemplate>
            </telerik:GridViewDataColumn.GroupHeaderTemplate>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn IsVisible="true" Header="Lot" UniqueName="MarketBatchName" Width="auto"  DataMemberBinding="{Binding MarketBatchName}" IsReadOnly="True" ShowColumnWhenGrouped="False">
            <telerik:GridViewDataColumn.GroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Group.Key, StringFormat='Lot: {0}'}" VerticalAlignment="Center"/>
                </DataTemplate>
            </telerik:GridViewDataColumn.GroupHeaderTemplate>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn IsVisible="true" Header="Société" UniqueName="CompanyName2" Width="auto" DataMemberBinding="{Binding CompanyName2}" IsReadOnly="True" ShowColumnWhenGrouped="False">
            <telerik:GridViewDataColumn.GroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Group.Key, StringFormat='Société: {0}'}" VerticalAlignment="Center"/>
                </DataTemplate>
            </telerik:GridViewDataColumn.GroupHeaderTemplate>
        </telerik:GridViewDataColumn>
 
        <telerik:GridViewDataColumn Header="" Width="30"  SortMemberPath="Statut" IsReadOnly="True">
            <telerik:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock x:Name="OutwardTextSPState" Width="20" TextAlignment="Center">
                        <TextBlock.Style>
                            <Style TargetType="TextBlock" BasedOn="{StaticResource SmallFontStyle}">
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding Statut}" Value="TOTELETRANSMIT">
                                        <Setter Property="Text" Value="ÀT" />
                                        <Setter Property="ToolTip" Value="À TÉLÉTRANSMETTRE" />
                                        <Setter Property="Background" Value="{StaticResource HighlightBackgroundBrush}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Statut}" Value="TELETRANSMITED">
                                        <Setter Property="Text" Value="T" />
                                        <Setter Property="ToolTip" Value="TÉLÉTRANSMISE" />
                                        <Setter Property="Background" Value="{StaticResource GreenBackgroundBrush}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Statut}" Value="TOVALIDATE">
                                        <Setter Property="Text" Value="ÀV" />
                                        <Setter Property="ToolTip" Value="À VALIDER" />
                                        <Setter Property="Background" Value="{StaticResource RedBackgroundBrush}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Statut}" Value="PRINTED">
                                        <Setter Property="Text" Value="I" />
                                        <Setter Property="ToolTip" Value="IMPRIMÉE" />
                                        <Setter Property="Background" Value="{StaticResource AlternateGreenBackgroundBrush}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Statut}" Value="TOPRINT">
                                        <Setter Property="Text" Value="ÀI" />
                                        <Setter Property="ToolTip" Value="À IMPRIMER" />
                                        <Setter Property="Background" Value="{StaticResource YellowBackgroundBrush}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Statut}" Value="PAID">
                                        <Setter Property="Text" Value="P" />
                                        <Setter Property="ToolTip" Value="PAYÉE" />
                                        <Setter Property="Background" Value="{StaticResource PurpleBackgroundBrush}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Statut}" Value="PARTIALLYPAID">
                                        <Setter Property="Text" Value="PP" />
                                        <Setter Property="ToolTip" Value="PAYÉE PARTIELLEMENT" />
                                        <Setter Property="Background" Value="{StaticResource VeryLightPurpleBackgroundBrush}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Statut}" Value="CREDIT">
                                        <Setter Property="Text" Value="A" />
                                        <Setter Property="ToolTip" Value="CREDIT" />
                                        <Setter Property="Background" Value="{StaticResource BlueGreenBackgroundBrush}" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </TextBlock.Style>
                    </TextBlock>
                </DataTemplate>
            </telerik:GridViewDataColumn.CellTemplate>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn Header="" Width="auto" DataMemberBinding="{Binding Number}" IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Nom/Prénom" Width="auto" MinWidth="100" DataMemberBinding="{Binding CustomerFullName}" IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Date"       Width="auto" MinWidth="100" DataMemberBinding="{Binding Date, StringFormat={}{0:dd/MM/yyyy}}" IsReadOnly="True" SortingState="Ascending"/>
        <telerik:GridViewDataColumn Header="Montant"    Width="auto" MinWidth="100" DataMemberBinding="{Binding Amount, StringFormat={}{0:C}}"            IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Trajet"     Width="*" MinWidth="100" DataMemberBinding="{Binding Trip}"             IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Vehicule"   Width="auto" MinWidth="100" DataMemberBinding="{Binding Vehicle}"          IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Raison"     Width="auto" MinWidth="100" DataMemberBinding="{Binding Reason}"           IsReadOnly="True"/>
 
    </telerik:RadGridView.Columns>
 
    <telerik:RadGridView.GroupDescriptors>
        <telerik:ColumnGroupDescriptor Column="{Binding Columns[\MarketName\], ElementName=GridViewListingNumberList}"  />
        <telerik:ColumnGroupDescriptor Column="{Binding Columns[\PayerName\], ElementName=GridViewListingNumberList}"  />
        <telerik:ColumnGroupDescriptor Column="{Binding Columns[\PeriodicityName\], ElementName=GridViewListingNumberList}"  />
        <telerik:ColumnGroupDescriptor Column="{Binding Columns[\MarketBatchName\], ElementName=GridViewListingNumberList}"  />
        <telerik:ColumnGroupDescriptor Column="{Binding Columns[\CompanyName2\], ElementName=GridViewListingNumberList}"  />
    </telerik:RadGridView.GroupDescriptors>
</telerik:RadGridView>

 

v.2018.1.220.45

 

Any Idea ?

 

thanks.

https://i.imgur.com/XGtKWeK.png

here , a gif of the issue : https://imgur.com/a/mNGwYA7

 

Vladimir Stoyanov
Telerik team
 answered on 12 Sep 2018
3 answers
273 views

Hi Team,

I was using Q2 2010 SP2 - 2010.2.924.40 version and in that I was using RadGridview ScrollIntoView method to scroll to the last record.

It was only taking around 30 seconds for 1000 records

Now we updated to latest version  2018.2.515.45 version now with same code it is taking more than 1 minutes to autoscroll to last record.

Xaml Code: 

<telerik:RadGridView Grid.Row="1" Grid.Column="0" Name="EmployeeSheetGrid" Height="300" CanUserInsertRows="False" ItemsSource="{Binding Path=WorkItems}" ColumnWidth="*" AutoGenerateColumns="False" ScrollMode="RealTime" CanUserReorderColumns="False" DataLoadMode="Synchronous" CanUserSortColumns="False" CanUserFreezeColumns="False" ShowGroupPanel="False" IsReadOnly="True" >

Xaml.cs record.

 public class Employee { public int EmpId { get; set; } public string Name { get; set; } public string Address { get; set; } public string State { get; set; } public String Country { get; set; } public DateTime CurrentDate { get; set; } }

EmployeeList having 1000 records 

employeeList.OrderBy(i => i.EmpId).ToList().ForEach(s => { EmployeeSheetGrid.ScrollIntoView(s); });

 

Please provide solution for the issue.

Thanks

 

 

 

Dilyan Traykov
Telerik team
 answered on 12 Sep 2018
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?