Telerik Forums
UI for WPF Forum
0 answers
91 views
Hi,

I didn't find Some Controls like Checkbox, TextBlock available in RadControls. And TextBox in RadControls is in the name like RadMaskedTextInput, RadMaskedNumericInput, RadMaskedTextBox. Am I right?

With Thanks,
M.Vinnarasi


Vinnarasi
Top achievements
Rank 1
 asked on 08 Oct 2013
1 answer
110 views
Hallo, 
I need label time intervals. For example:

06:00-13:00 is "SHIFT 1"
14:00-18:00 is "SHIFT 2"
and so on.

Attached you can see an example.
How can I develop something like that?

Thanks
Kalin
Telerik team
 answered on 08 Oct 2013
0 answers
201 views
I'm trying to add a generic footer row to all my GridView via my style by I keep getting the following error.

'{DependencyProperty.UnsetValue}' is not a valid value for property 'FooterRowStyle'.


        <Style TargetType="telerik:RadGridView"
               x:Key="ManagementWithSummaryStyleLocal">
            <Setter Property="RowIndicatorVisibility"
                    Value="Visible" />
            <Setter Property="IsSynchronizedWithCurrentItem"
                    Value="True" />
            <Setter Property="EditTriggers"
                    Value="CellClick" />
            <Setter Property="GroupRenderMode"
                    Value="Flat" />
            <Setter Property="GridLinesVisibility"
                    Value="Both" />
            <Setter Property="CanUserFreezeColumns"
                    Value="False" />
            <Setter Property="AutoGenerateColumns"
                    Value="False" />
            <Setter Property="ShowGroupPanel"
                    Value="False" />
            <Setter Property="CanUserReorderColumns"
                    Value="False" />
            <Setter Property="ValidatesOnDataErrors"
                    Value="Default" />
            <Setter Property="ActionOnLostFocus"
                    Value="CommitEdit" />
            <Setter Property="ShowColumnFooters"
                    Value="True" />
            <Setter Property="FooterRowStyle"
                    Value="{StaticResource ManagementGridViewFooterRowStyleLocal}" />
        </Style>
 
 
        <Style x:Key="ManagementGridViewFooterRowStyleLocal"
               TargetType="{x:Type telerik:GridViewFooterRow}">
            <Setter Property="Template"
                    Value="{StaticResource GridViewFooterRowTemplateLocal}" />
            <Setter Property="MinHeight"
                    Value="24" />
            <Setter Property="BorderThickness"
                    Value="0,0,0,1" />
        </Style>
 
 
 
        <ControlTemplate x:Key="GridViewFooterRowTemplateLocal"
                         TargetType="telerik:GridViewFooterRow">
            <Border MinHeight="{TemplateBinding MinHeight}"
                    Margin="{TemplateBinding Margin}"
                    Background="{TemplateBinding Background}"
                    Padding="{TemplateBinding Padding}">
                <telerik:SelectiveScrollingGrid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Horizontal"
                                Margin="5,5,2,2">
                        <TextBlock Text="ITEMS: " />
                        <TextBlock Text="{Binding Items.ItemCount,                             
                                           RelativeSource={RelativeSource AncestorType=telerik:RadGridView}, Mode=OneWay}" />
                    </StackPanel>
                </telerik:SelectiveScrollingGrid>
            </Border>
        </ControlTemplate>



        <telerik:RadGridView Style="{StaticResource ManagementWithSummaryStyleLocal}" />
                   
      


Alex Martin
Top achievements
Rank 1
 asked on 08 Oct 2013
0 answers
138 views
Hi guys,

We use Telerik WPF components in our projects. We have more than one projects in our solution. 

We add "Telerik.Windows.Controls.Navigation.dll" file to the references of one of these projects. And we add the dll file of this project to the references of the main project.

When we rebuild the solution, "Telerik.Windows.Controls.Navigation.dll"  file isn't copied to the output(bin) folder of the main  project.

I googled in Telerik's forum, but there is no total answer for this issue.

My environment has:

Win 7
VS 2010 SP1
SQL Server Express Edition
Telerik WPF Components v Q3 2012 

Could anyone help us? 

Thanks in advance.

Kerem
Kerem
Top achievements
Rank 1
 asked on 08 Oct 2013
2 answers
190 views
Hello,
I am trying to use a RadTimePicker with the InputMode property set to "DateTimePicker" inside a DataGrid column. I have the following XAML code:

<DataGrid>
...
  <DataGrid.Columns>
...
    <DataGridTemplateColumn Header="ETA">
        <DataGridTemplateColumn.CellTemplate>
           <DataTemplate>
              <telerik:RadTimePicker InputMode="DateTimePicker" SelectedValue="{Binding ETA}"/>     
           </DataTemplate>   
         </DataGridTemplateColumn.CellTemplate>
      </DataGridTemplateColumn>
...
</DataGrid.Columns>
...
</DataGrid>
 However, the InputMode property seems to be ignored and the control is appearing as only a TimePicker. I have tested other properties and of the ones i tested, this is the only one that seems to be ignored.

Am i doing something wrong or is this a bug?
Neill
Top achievements
Rank 1
 answered on 08 Oct 2013
3 answers
133 views
How to ?

I'm Using Ok But It's Impossible.

OK                                                  
Cancel                                                                               Cancel
DataForm_MoveCurrentToFirst First
DataForm_MoveCurrentToPrevious Previous
DataForm_MoveCurrentToNext Next
DataForm_MoveCurrentToLast Last
DataForm_AddNew Add
DataForm_BeginEdit Edit
DataForm_Delete Delete

Dimitrina
Telerik team
 answered on 08 Oct 2013
1 answer
92 views
Hi,
sorry about the silly question.. but, How can I change the verticalAlignment on the  DisplayName property?
Thanks

<telerik:PropertyDefinition Binding="{Binding DateTo}"
                                                            OrderIndex="4"
                                                            GroupName="Filters"
                                                            DisplayName="Date To"
                                                            />
Ivan Ivanov
Telerik team
 answered on 08 Oct 2013
1 answer
104 views
Hello,
I use the Telerik WPF Controls as a trial with a Visual Studio 2012 Professional. So far it's me, unfortunately, not been able to create a simple application window.

I use the RadWindow control. But whenever I run the program, it will run in a separate window that displays below a deactivated navigationbar.

How can I display only the pure application window without this will be shown again in a window?
Kalin
Telerik team
 answered on 07 Oct 2013
3 answers
208 views
We are using version 2009.1.526.35 of the GridView control. Because of our project timeline and for regression reasons, we are unable to upgrade to the newest version of RadGridView at this time. However, it is on our list of tasks once it becomes feasible. We are experiencing an issue where the RadGridView hangs and pegs the CPU at 50% forever in certain circumstances. We would like to know the following:

1) Is this issue fixed in the current version of the control.
2) Is there a workaround for the version of the control we have.

The issue is triggered when there are just enough items in the grid that the grid is full and the last item is even clipped slightly by the bottom of the grid. There are no vertical scrollbars yet. Our testers found the problem by opening a page with a grid that had enough items to produce a scrollbar. Then, when you maximize the screen and the result is a grid that is just full without scrollbars, the application hangs and the CPU is pegged at 50%. We isolated this to the grid by deleting one row from the database and observing the problem no longer occurs. It is the exact number of items in the grid causing the issue. Could you answer our 2 questions listed above? Thanks.
rthorat
Top achievements
Rank 1
 answered on 07 Oct 2013
0 answers
300 views

I have a enum type, and want to display it in column with image, and filter it with description. I directly convert enum type to image path, and can display it in column, but can not filter it. I convert enum type to a class with properties, such as image path, description, but can not binding it correctly.

<Window x:Class="TrafficLight.MainWindow"
        xmlns:local="clr-namespace:TrafficLight" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="600">
 
    <Window.Resources>
        <local:LightConvert x:Key="Converter"/>
        <local:LightStringConvert x:Key="StringConverter"/>
        <local:LightWrpper x:Key="LightWrpper"/>
 
        <DataTemplate x:Key="ImageCellTemplate">
            <Image Height="16" Width="16" HorizontalAlignment="Center" Source="{Binding SouthNorthLight, Converter={StaticResource ResourceKey=Converter}}"/>
        </DataTemplate>
 
        <DataTemplate x:Key="LightListTemplate">
            <StackPanel Orientation="Horizontal">
                <Image HorizontalAlignment="Center" VerticalAlignment="Center" Height="16" Width="16" Source="{Binding ImagePath}"/>
                <TextBlock Text="{Binding Description}" HorizontalAlignment="Left" VerticalAlignment="Center" Padding="5,0,2,0" />
            </StackPanel>
        </DataTemplate>
         
    </Window.Resources>
 
    <Window.DataContext>
        <local:LightViewModel/>
    </Window.DataContext>
    <Grid>
 
        <telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding LightCollection}">
            <telerik:RadGridView.Columns>
                 
                <telerik:GridViewDataColumn Header="Location"
                                            IsReadOnly="True"
                                            DataMemberBinding="{Binding Location}"/>
 
                <telerik:GridViewImageColumn Header="South North Light"
                                             IsReadOnly="True"
                                             ImageHeight="16"
                                             ImageWidth="16"
                                             ImageStretch="Uniform"
                                             IsFilterable="False"
                                             DataMemberBinding="{Binding SouthNorthLight, Converter={StaticResource StringConverter}}"/>
 
                <telerik:GridViewComboBoxColumn Header="South North Light"
                                                IsFilterable="False"
                                                FilterMemberPath="Description"
                                                DataMemberBinding="{Binding SouthNorthLight, Converter={StaticResource Converter}}"
                                                ItemsSource="{Binding Path=LightWrpperList, Source={StaticResource LightWrpper}}"
                                                ItemTemplate="{StaticResource LightListTemplate}"/>
 
                <telerik:GridViewImageColumn Header="East West Light"
                                             IsReadOnly="True"
                                             ImageHeight="24"
                                             ImageWidth="24"
                                             ImageStretch="Uniform"
                                             FilterMemberPath="Description"
                                             SortMemberPath="Description"
                                             DataMemberBinding="{Binding EastWestLight, Converter={StaticResource Converter}}">
                    <telerik:GridViewImageColumn.CellTemplate>
                        <DataTemplate>
                            <Image HorizontalAlignment="Center" Source="{Binding Path=ImagePath}"/>
                        </DataTemplate>
                    </telerik:GridViewImageColumn.CellTemplate>
                </telerik:GridViewImageColumn>
 
                <telerik:GridViewComboBoxColumn Header="South North Light"
                                                IsFilterable="True"
                                                FilterMemberPath="Description"
                                                DataMemberBinding="{Binding SouthNorthLight, Converter={StaticResource Converter}}"
                                                CellTemplate="{StaticResource ImageCellTemplate}"
                                                ItemsSource="{Binding Path=LightWrpperList, Source={StaticResource LightWrpper}}"
                                                ItemTemplate="{StaticResource LightListTemplate}"/>
                 
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
 
    </Grid>
</Window>
 
 
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Windows.Data;
 
namespace TrafficLight
{
    public enum Light
    {
        Green,
        Red,
        Yello,
    }
 
    public class Lights
    {
        public Light SouthNorthLight { get; set; }
 
        public Light EastWestLight { get; set; }
 
        public string Location { get; set; }
    }
 
    public class LightViewModel
    {
        public ObservableCollection<Lights> LightCollection { get; private set; }
 
        public LightViewModel()
        {
            LightCollection = new ObservableCollection<Lights>();
 
            LightCollection.Add(new Lights() { SouthNorthLight = Light.Green, EastWestLight = Light.Red, Location = "The 5th St" });
            LightCollection.Add(new Lights() { SouthNorthLight = Light.Red, EastWestLight = Light.Green, Location = "St John Rd" });
            LightCollection.Add(new Lights() { SouthNorthLight = Light.Yello, EastWestLight = Light.Red, Location = "Sents Rd" });
        }
    }
 
    public class LightWrpper
    {
 
        public static List<LightWrpper> LightWrpperList { get; private set; }
 
        public static LightWrpper Red { get; private set; }
        public static LightWrpper Green { get; private set; }
        public static LightWrpper Yello { get; private set; }
 
        static LightWrpper()
        {
            Red = new LightWrpper() { Light = Light.Red, ImagePath = "Images/Red.png", Description = "Red Light On" };
            Green = new LightWrpper() { Light = Light.Green, ImagePath = "Images/Green.png", Description = "Green Light On" };
            Yello = new LightWrpper() { Light = Light.Yello, ImagePath = "Images/Yello.png", Description = "Yello Light On" };
 
            LightWrpperList = new List<LightWrpper>();
            LightWrpperList.Add(Red);
            LightWrpperList.Add(Green);
            LightWrpperList.Add(Yello);
        }
 
        public Light Light { get; private set; }
        public string ImagePath { get; private set; }
        public string Description { get; private set; }
    }
 
    [ValueConversion(typeof(Light), typeof(LightWrpper))]
    public class LightConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return LightWrpper.Yello;
            }
 
            var light = (Light)value;
            switch (light)
            {
                case Light.Green:
                    return LightWrpper.Green;
                case Light.Red:
                    return LightWrpper.Red;
                default:
                    return LightWrpper.Yello;
            }
        }
 
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return Light.Yello;
            }
 
            var light = (LightWrpper)value;
            switch (light.Light)
            {
                case Light.Green:
                    return Light.Green;
                case Light.Red:
                    return Light.Red;
                default:
                    return Light.Yello;
            }
        }
    }
 
    [ValueConversion(typeof(Light), typeof(string))]
    public class LightStringConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var light = (Light)value;
            switch (light)
            {
                case Light.Green:
                    return "Images/Green.png";
                case Light.Red:
                    return "Images/Red.png";
                default:
                    return "Images/Yello.png";
            }
        }
 
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
 
}






Yu
Top achievements
Rank 1
 asked on 07 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?