Telerik Forums
UI for WPF Forum
4 answers
570 views

I'm trying to add maximize, minimize and restore buttons to the header of floating radpanes.  I know it's maximizeable by double-clicking the header, but there is no way to minimize, and I'll like to add both options for a better user experience.

 

I've been successful in adding floating panes to the taskbar using the following code by overriding DefaultGeneratedItemsFactory.CreateToolWindow:

        public override ToolWindow CreateToolWindow()
        {
            var window = base.CreateToolWindow();

            //make floating windows show in taskbar
            RadWindowInteropHelper.SetShowInTaskbar(window, true);
            RadWindowInteropHelper.SetIcon(window, Application.Current.MainWindow.Icon);

            window.SetBinding(RadWindowInteropHelper.TitleProperty, new Binding("Header") { Source = window });
            
            return window;
        }

and I now just need to minimize/maximize/restore to work like a standard window.

Nathan
Top achievements
Rank 1
 answered on 16 Dec 2016
4 answers
159 views
I have 55 merge fields right now in the RadRichTextBox Merge collection. As you have implemented it, this list does not have a scroll bar when the list gets cut off at the bottom of the screen. Here is my current XAML, which is from your template:

	<telerik:RadRibbonDropDownButton Name="MailingsInsertFieldButton"
				 CollapseToMedium="WhenGroupIsMedium"
				 telerik:ScreenTip.Description="You can insert fields such as Name or Address, which will be replaced automatically with information from a database or contact list for each copy of the form letter."
				 LargeImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertMergeField.png"
				 telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding InsertMergeFieldEmptyCommand}"
				 Size="Large"
				 Text="Insert Merge Field"
				 telerik:ScreenTip.Title="Insert Merge Field" />
Boby
Telerik team
 answered on 16 Dec 2016
3 answers
99 views

This code doesn't change anything...

SetCurrentAuthor("test", System.Windows.Media.Colors.Purple)

Public Sub SetCurrentAuthor(ByVal authorName As String, ByVal color As System.Windows.Media.Color)
        RadRichTextBox1.CurrentUser = New Model.UserInfo(authorName, authorName, authorName, String.Empty)
        RadRichTextBox1.TrackChangesOptions.CurrentAuthorColor = color
End Sub

 

I have an older version, so maybe I just need the update?

 

 

Petar Mladenov
Telerik team
 answered on 16 Dec 2016
2 answers
118 views

Hi,

our license has expired, and we consider to renew it.

we really liked the new 3D chart view, and I tried to use it with a different new user which I opened and asked for 30 free trial.

I downloaded and installed the telerik UI in a different computer and everything went good.

Then I opned new WPF Telerik Project and tried to use the 3D chart view, but I can't compile it.

I added all the 3 needed references:

Telerik.Windows.Controls.ChartView;
Telerik.Windows.Data;
Telerik.Windows.Controls.Chart;

 

The error is:

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorThe tag 'RadCartesianChart3D' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'. Line 7 Position 10.TelerikWpfApp1c:\users\Me\documents\visual studio 2015\Projects\TelerikWpfApp1\TelerikWpfApp1\MainWindow.xaml7

 

What can I do in order to test the new chart?

Another problem:

I downloaded the Demo Application, and I want to export the demo code of the 3D ChartView to my VS in order to modify it and test it, but I can't find any way to download/export the code from there.

 

Thanks

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Dec 2016
3 answers
144 views

Basically I try to follow the example :

http://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-integration-radcontextmenu-wpf

 

I use an ItemTemplate not to see the base class used for dynamic item

<telerik:RadContextMenu x:Name="RadContextMenu"
                                        ItemTemplate="{StaticResource MenuItemTemplate}"
                                        ItemClick="OnContextMenuClick">

 

defined like this

HierarchicalDataTemplate x:Key="MenuItemTemplate"
                                  DataType="{x:Type local:ContextMenuItem}"
                                  ItemsSource="{Binding Items}">
            <TextBlock Text="{Binding Text}" />
        </HierarchicalDataTemplate>

 

I have a problem applying the <telerik:RadContextMenu.ItemContainerStyle> : the menu disappears.

In the attached example, I can see the context menu when no style is applied but I can not apply the settings like separator item.

How can I have this example working with Telerik 2016.3.1024.45.NoXaml ?

 

Philippe Laval
Top achievements
Rank 1
 answered on 15 Dec 2016
1 answer
194 views

We are using Telerik UI for WPF and are having some problems with the RadRadioButton when applying themes. The problem is that the style of the theme is not fully applied to the control if the content is custom, and in this case it has a stackpanel with an image and a textblock. Then the textblock won´t get the correct foreground color when selected:

       <telerik:RadRadioButton x:Name="MyRadioButton">
            <StackPanel Orientation="Horizontal">
                <Image Width="16" Height="16" Source="../Images/icon_16x16.png"/>
                <TextBlock>My radiobutton</TextBlock>
            </StackPanel>
        </telerik:RadRadioButton>
        

 

When the RadRadioButton only has a text as content the styling is correct:

 

<telerik:RadRadioButton x:Name="MyRadioButton" Conent="My radiobutton">
</telerik:RadRadioButton>

 

I have tried to use RelativeSource and AncestorType in the binding but it doesn´t seem to work:

ForeGround={Binding RelativeSource={RelativeSource AncestorType=TextBox}, Path=Tag}
Evgenia
Telerik team
 answered on 15 Dec 2016
2 answers
465 views

Hi to all,

I can't canter Header and cell of GridViewCheckBoxColumn...

Is it normal for specific reason?

<telerik:RadTabItem Header="Dettaglio Campi">
    <telerik:RadGridView ItemsSource="{Binding DettaglioCampiEnteCertificante}" Style="{StaticResource DettaglioCampiStyle}">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding CampoId}" Header="ID" IsReadOnly="True"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding CampoCertificatoReference.Nome}" Header="Nome" IsReadOnly="True"/>
            <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding Obbligatorio}" Header="Obbligatorio" TextAlignment="Center" HeaderTextAlignment="Center"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Ordinamento}" Header="Ordinamento" TextAlignment="Center" HeaderTextAlignment="Center"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding SchedeCertificatoMaterialeReference.Count}" Header="Riferimenti" TextAlignment="Right" HeaderTextAlignment="Right"/>
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>
</telerik:RadTabItem>
Dario Concilio
Top achievements
Rank 2
 answered on 15 Dec 2016
2 answers
127 views

Hello I'm working with ScheduleView dragging from my ListBox to the ScheduleView I followed the documentation and it works okay.

Now I needed to extend the default class Appointment with my Custom class called CustomVideoAppointment

 public  class CustomVideoAppoiment:Appointment
    {

        public string Name { get; set; }
        public string Path { get; set; }
        public TimeSpan Duration { get; set; }
    
        public bool IsCloud { get; set; }
    }

 

Actually it works just changing the types of my Behavior ScheduleViewCustomDragAndDropBehavior

 public override IEnumerable<IOccurrence> ConvertDraggedData(object data)
        {
            if (Telerik.Windows.DragDrop.Behaviors.DataObjectHelper.GetDataPresent(data, typeof(VideoInfo), false))
            {
                var videos = Telerik.Windows.DragDrop.Behaviors.DataObjectHelper.GetData(data, typeof(VideoInfo), true) as IEnumerable;
                if (videos != null)
                {
                    var item = videos.OfType<VideoInfo>().FirstOrDefault();
                    if (item != null)
                    {
                        var newItem = new CustomVideoAppoiment()
                        {
                            Subject = item.Name,
                            Start = DateTime.Now,
                            End = DateTime.Now.Add(item.Duration),
                            Path = item.Path,
                            Name = item.Name,
                            IsCloud = item.IsCloud
                        };
                        return new List<IOccurrence>() { newItem };
                    }
          
                
                }
            }
            return base.ConvertDraggedData(data);

 

Now when I need to check all the dragged items I see all my custom properties are always null.

 

I attached two images showing the problem. I think is a bug of the control.

 

Kalin
Telerik team
 answered on 15 Dec 2016
4 answers
100 views

Hi there,

I have found a problem exporting from RadGridView with individual precision for each column. My .dll does not support ExportToXlsx method. I use Export(Stream stream, GridViewExportOptions options) method.

There is definitely an option to set precision for number columns but only the same for all of them thru GridViewElementExportingEventArgs.

I can definitely make my export done by exporting the data from binding sources but there is one exception for aggregate functions results which are located at GridViewColumn footer in fact but at runtime cannot be obtained because Footer property of particular column is null and which are computed at your side code.

So I need know either how to set precision on columns individual according to some input thru Export(Stream stream, GridViewExportOptions options) method or how to obtain the string representation of aggregate functions located in column footer.

I definitely can compute aggregate function result separately but I really do not want to.

Thank you very much.

 

 

Dilyan Traykov
Telerik team
 answered on 15 Dec 2016
1 answer
301 views

I have a Grid and inside that grid I have a RadGridView filled with items. Below the RadGridView I have four buttons.

What I want is that by pressing the Tab key I navigate like this: When I open the windows and Press Tab I focus on the first item in the view of the RadGridView, on the second Tab press I jump out of the RadGridView and the focus is now on the Button below. On the next Tab press I jump to the next button and so on and so on till I reach the end and than I start the same from the beginning.

In the RadGridView if I want to move through the Items I do so with the Arrow keys Up and Down.

How can I do that ? I set in the RadGridView IsTabStop="False" but that is not enough, because on the first Tab press I want to Focus on the first item in the View of the RadGridView and then on the second Tab press I want to jump out to the next button. 

Devid
Top achievements
Rank 1
 answered on 15 Dec 2016
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
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
Bronze
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
Bronze
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?