Telerik Forums
UI for WPF Forum
1 answer
459 views
Hi, I am using RadGridView to show the grid data. In CellValidating event handler I am validating the data and setting e.IsValid=false if data is not valid. It's displaying the red border and an empty tool tip on the corresponding cell. But I just need to display the red border if there is any invalid data. Can you tell me how can I do this, also provide any sample if there is any?
Stefan
Telerik team
 answered on 07 May 2015
1 answer
396 views

Hi all,

I have a problem with KeyUp event on a RadMenuItem. When I tab to change the focus of an element from textblock to RadMenuItem, it changes as usual but when I pressed the Enter button the focus would be changed automatically from RadMenuItem to the previous textblock but other buttons work properly. What I want is firing a pressing Enter button event to do some activities.

<telerik:RadMenuItem Header="{Binding DisplayHeader}" ItemsSource="{Binding Buttons}" ItemContainerStyleSelector="{StaticResource PageActionCustomButtonItemTemplate}" KeyboardNavigation.IsTabStop="False">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="KeyUp">
                    <cal:ActionMessage MethodName="PressingEnter">
                        <cal:Parameter Value="$eventArgs"/>
                    </cal:ActionMessage>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </telerik:RadMenuItem>

 Thanks,
Tan

Nasko
Telerik team
 answered on 07 May 2015
8 answers
221 views
Hi Guys,
              I am having a problem with maximising the radwindow. The problem arises only when I have two displays connected. The two displays have different resolutions and sizes. Please refer to screenshot1. The display on the right is my primary display(1280x800) and the screen on the left, secondary. (1920x1080)

The radwindow is open in the secondary display as you can see in screenshot 1.

Now, maximize the dialog. The radwindow overflows to the second display. Please refer screenshot2.

This problem doesnt arise when I have two displays of the same size and resolution.

How can I resolve this issue. :)

Thanks a lot.

Best regards,
prithu
Eugene
Top achievements
Rank 1
 answered on 07 May 2015
2 answers
134 views

Hello,

I have a telerik tabcontrol which has 5 TabItems. When I press RightArrow key i can navigate to one tab to other.

This way i reach to the last tab. Now if again i press RightArrow key i need to move back to first tab from where I started.(Cyclic behavior).

This is not happening currently.

Is there some property of telerik tabcontrol which can be use for doing so or we need to find some workaround?

Thanks & Regards,

Abdi

Abdeali
Top achievements
Rank 1
 answered on 07 May 2015
2 answers
221 views

Do you have an example that would show me how to drag and drop between a RadGridView and a RadDiagram?

 

Thanks for your help,

Joel

Joel Palmer
Top achievements
Rank 2
 answered on 06 May 2015
3 answers
600 views

I've got RadGridView with couple of columns. Most of them are standard GridViewDataColumn (or combobox). Some of them uses CellEditTemplate to do some custom editing.

When I edit standard ones, validation errors are shown from edit control - as in attachment1.

When I edit custom ones, validation errors are shown normal at first, but when I try to leave control I get validation error from edit control and cel level - as in attachment2.

How can I make this custom columns behave like standard ones?

Stefan
Telerik team
 answered on 06 May 2015
3 answers
348 views

Good afternoon, Telerik Team!

I have a question, how would I add items in a outlook bar programmatically

Example:

I have a Rad Outlook Bar in a WPF grid without items, in another moment,  I need programmatically include I items 1,2,3  sequentially one by one

including headers too in it

Is this possible?

 

Att

Martin Ivanov
Telerik team
 answered on 06 May 2015
5 answers
440 views
In a forum post from December of 2010 a PITS entry was referenced regarding map shape transformations.  Does anyone know what happened with this request as PITS is gone.  I can find no such item in the Feedback & Feature Requests.  I would like to rotate a MapPath that has, as it Data, a MapRectangleGeometry object.  That object has a Transform member but when a RotateTransform is applied to it, it the resulting shape will not maintain its position as the map is zoomed.
Petar Mladenov
Telerik team
 answered on 06 May 2015
2 answers
655 views

Hello!

Is it possible in the GridView to swap rows and columns?
I want to display my items (bound to ItemsSource) as different columns, while the rows are fixed (and correspond to the "Columns" of the GridView).

It should look similar to http://blogs.microsoft.co.il/tomershamam/2008/09/22/lthowtogtreplace-listview-columns-with-rowslthowtogt/

However, I would prefer if the style matches our other (telerik) grids.

Alex

Dimitrina
Telerik team
 answered on 06 May 2015
6 answers
138 views

Hello,

 I am evaluating your control suit for WPF and I find it extremely tedious and tiresome to colorize a control. I have to reimplement the control template just for a simple color change. Not only this is extremely counter-productive, it can lead to errors when the template is updated on a future UI for WPF version.

Let's take the simple case of a DropDownButton control. I want to have 2 dropdownbutton controls. I have settled on the theme, say Office2013 theme. I want the e.g. selected background on the first control to be red and on the second control green.

How can I do this easily if I don't have a simple property to set?  You don't even expose the theme colors as *attached* properties, like in the code I am posting below (no complete code included for brevity) in order to make our lives easier.

 

   <Style x:Key="RadDropDownButtonOffice2013ColorizableStyle" TargetType="telerik:RadDropDownButton">

        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="FontFamily" Value="Calibri" />
        <Setter Property="MinHeight" Value="26" />
        <Setter Property="Padding" Value="6 2" />
        <Setter Property="FontSize" Value="15" />
        <Setter Property="BorderBrush" Value="{Binding RelativeSource={RelativeSource Self}, Path=(t:Office2013Brushes.HighDarkBrush)}" />
        <Setter Property="Background" Value="{Binding RelativeSource={RelativeSource Self}, Path=(t:Office2013Brushes.BasicBrush)}" />
        <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource Self}, Path=(t:Office2013Brushes.InvertedBrush)}" />
        <Setter Property="CornerRadius" Value="0" />
        <Setter Property="IsOpen" Value="false" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(t:Office2013Brushes.InvertedBrush)}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="00:00:00.25" Storyboard.TargetName="OuterMouseOverBorder" Storyboard.TargetProperty="(UIElement.Opacity)" To="1" />
                                    </Storyboard>
                                </VisualState>

...... etc.................

 

and a static class to define the attached properties as shown below:

 

namespace Telerik
{
    public static class Office2013Brushes
    {
        #region Attached property BasicBrush
        //Define and register attached property
        public static readonly DependencyProperty BasicBrushProperty = DependencyProperty.RegisterAttached(
            "BasicBrush",
            typeof(Brush),
            typeof(Office2013Brushes),
            new FrameworkPropertyMetadata(new SolidColorBrush(Office2013Palette.Palette.BasicColor), FrameworkPropertyMetadataOptions.Inherits)
        );

        //Get/Set methods
        public static Brush GetBasicBrush(DependencyObject obj)
        {
            return (Brush)obj.GetValue(BasicBrushProperty);
        }
        public static void SetBasicBrush(DependencyObject obj, Brush value)
        {
            obj.SetValue(BasicBrushProperty, value);
        }
        #endregion

        #region Attached property MainBrush
        //Define and register attached property
        public static readonly DependencyProperty MainBrushProperty = DependencyProperty.RegisterAttached(
            "MainBrush",
            typeof(Brush),
            typeof(Office2013Brushes),
            new FrameworkPropertyMetadata(new SolidColorBrush(Office2013Palette.Palette.MainColor), FrameworkPropertyMetadataOptions.Inherits)
        );

        //Get/Set methods
        public static Brush GetMainBrush(DependencyObject obj)
        {
            return (Brush)obj.GetValue(MainBrushProperty);
        }
        public static void SetMainBrush(DependencyObject obj, Brush value)
        {
            obj.SetValue(MainBrushProperty, value);
        }
        #endregion

........ etc..

 The above code works fine: I can set the colors of the controls independently if I want to, or leave it to the default theme color. But, as it's easily understood, it is counter-productive for the developer to rewrite all the templates with the above logic.

The question is:

a) why you haven't created your controls to be "independently colorizable" (using attached properties or any other method you see fit) 

b) if you are planning to implement some pattern to make "colorization" easier.

 

Best regards,

Theodore

Petya
Telerik team
 answered on 05 May 2015
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?