Telerik Forums
UI for WPF Forum
2 answers
128 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
209 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
586 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
304 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
426 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
642 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
133 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
4 answers
592 views

I am displaying couple of rows in the normal view and whenever any of those rows are expanded, display additional 500 rows using hierarchical view.

The radgridview freezes up when trying to display the 500 rows. I tried with 50 rows and the grid did not freeze. 

I have attached a sample project which duplicates the issue. (It is actually a zip file, not jpg).

Please look at the BindableDynamicDictionary.cs.The relevant function which generates the rows dynamically is GetUserDetails.

This function is called whenever TryGetMember function is called by the radgridview with parameter "Details".

Details is the bound property for the child grid.Most of the other code can be ignored.

Can you please help identify the issue?

 

Please note the attachement is a .zip file. Not jpg.

Dimitrina
Telerik team
 answered on 05 May 2015
2 answers
80 views

I have the following Apply method that has been working:

        protected override void Apply(Telerik.Windows.Controls.TreeMap.RadTreeMapItem treemapItem, object dataItem)
        {
            BranchIntegrationDetails details = dataItem as BranchIntegrationDetails;
            SolidColorBrush brush = PickBrush(details);
           
            // Apply the color
            treemapItem.Background = brush;            // Apply additional text
            IntegrationStatisticsControl statisticsControl = new IntegrationStatisticsControl()
            {
                VerticalAlignment = System.Windows.VerticalAlignment.Bottom,
                HorizontalAlignment = System.Windows.HorizontalAlignment.Right,
                Foreground = ForegroundBrush,
                Margin = new System.Windows.Thickness(0,0,10,0)
            };
            statisticsControl.SetValue(Grid.RowSpanProperty, 2);
            Grid grid = treemapItem.ChildrenOfType<Grid>().ElementAt(1);
            grid.Children.Add(statisticsControl);
        }

The expected output can been in the first picture (see "expected.png").

 When I add the theme file into my app.xaml:

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="StyleResources.xaml" />
                <ResourceDictionary Source="TelerikTheme/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="TelerikTheme/Telerik.Windows.Controls.DataVisualization.xaml"/> <!-- this one is bad -->
                <ResourceDictionary Source="TelerikTheme/Telerik.Windows.Controls.Navigation.xaml"/>
            </ResourceDictionary.MergedDictionaries>

The control that I want to apply does not anymore (see "unexpected.png"). The same code is still working, I can see my control is added to the Grid, just I could not know why it is not showing.

Sia
Telerik team
 answered on 05 May 2015
3 answers
285 views

I would like to know the difference between these two types, besides the obvious that one is a generic and the other is not.

Specifically:

1. Why does the generic version not support the same constructors passing an IEnumerable query?

2. Does the non generic version when passed a IEnumerable query inherently know the collection type by the result type of the query?

3. What then is the purpose of the VirtualQueryableCollectionView(IEnumerable, Type) constructor, as the second parameter Type will need to match that of the IEnumerable?

4. Is there a way within the ItemsLoading to force the non generic version to let user code handle the query (ie. e.Handled = true)

The non generic version blocks on the UI thread when requesting new items.  This is very odd coming from Telerik.  .  Even if you don't pass a query on the constructor, the ItemsLoading still blocks while loading nothing.

This blocking UI is very bad, forcing me to use the generic version which allows me to handle the ItemsLoading query (queuing the request on a background thread as is correct).

Thanks,

Mike

 

 

 

 

Dimitrina
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?