Telerik Forums
UI for WPF Forum
4 answers
128 views
Hi

I have a question about DataAnnotation in PropertyGrid when the AutoGeneratedPropertyDefinition is set to false. I have tested the Q1 2013 SP1 for this functionality but no luck. I have VM and defined on each property the DataAnnotation. It is working when AutoGeneratedPropertyDefinition is set to true, but when AutoGeneratedPropertyDefinition is set to false I need to set the DisplayName, Description and so on in every property definition.

Are you planning to implement such function?

And it would be great to write the DataAnnotations which I can use in PropertyGrid to the help. There are some, but no all of them. For example the StringLength or Range are working but Required not and so on.

Thanks 

Vitalij

Vitalij
Top achievements
Rank 1
 answered on 02 Jul 2013
1 answer
167 views
Latest Build:  2013.2.611.45
It will not build,  Error I am getting when I try to build:
Error 1 Only public or internal classes can be used within markup. 'Tile' type is not public or internal. .... 13 20 ...

The Preview is showing up as expected in the design view.

<Window x:Class="Management.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="768" Width="1366" ResizeMode="NoResize" WindowStyle="None">
    <Grid Name="MainGrid">
        <Grid.Resources>
            <DataTemplate x:Key="GroupTemplate">
                <Border BorderThickness="1" BorderBrush="Black" Margin="5">
                    <TextBlock Text="{Binding}" Margin="5,0,0,5" FontWeight="Bold"/>
                </Border>
            </DataTemplate>
            <Style TargetType="telerik:Tile">
                <Setter Property="Margin" Value="5,15,0,0"/>
            </Style>
        </Grid.Resources>
        <telerik:RadTileList x:Name="LayoutSetup" GroupTemplate="{StaticResource GroupTemplate}">
 
            <telerik:Tile Group="Continent" Background="Green" TouchUp="Tile_TouchUp" >
                <TextBlock Text="Europe"/>
            </telerik:Tile>
            <telerik:Tile  Group="Country" Background="Blue">
                <TextBlock Text="Germany"/>
            </telerik:Tile>
            <telerik:Tile Group="Continent" Background="Green">
                <TextBlock Text="Asia"/>
            </telerik:Tile>
            <telerik:Tile  Group="Country" Background="Blue">
                <TextBlock Text="Italy"/>
            </telerik:Tile>
        </telerik:RadTileList>
    </Grid>
</Window>


update:  I am no longer looking to use this control,  moved to using a wrap panel and radbuttons instead.  Suits what I need it to do better.
Maya
Telerik team
 answered on 02 Jul 2013
3 answers
129 views
Hello Telerik Team,

I'm working on a project and I'm using the RadScheduleView with a custom appointment.
But, End-users can't set up a reminder to an appointment (via email or sms).
How would I go about doing that?

Any approaches?


Thank You,
hiwa
Hiwa
Top achievements
Rank 2
 answered on 02 Jul 2013
3 answers
302 views

Hi,

My WPF GridView use background color for give some information to user:

-          Green, row completed

-          Orange, row to be process

-          Yellow, row work in progress (WIP)

 

Actual color selection in grid is yellow. How I can change color selection?

 

Actualy, I use this RowStyle for change background color.

 

            <controls:RadGridView.RowStyle>

                <Style TargetType="gridView:GridViewRow">

                    <Setter Property="Background" Value="{Binding Color}"></Setter>

                </Style>

            </controls:RadGridView.RowStyle>           

 

I try with Style.Trigger for IsMouseOver and IsSelected, but the rectangle of selection is always yellow.

I read in your forum that it’s possible override default style.

Can you send me an example in C#?

Dimitrina
Telerik team
 answered on 01 Jul 2013
3 answers
37 views
but changed in editor
Kalin
Telerik team
 answered on 01 Jul 2013
1 answer
321 views
Is there a way to hide the TabStrip when only one tab is open?
Pavel R. Pavlov
Telerik team
 answered on 01 Jul 2013
4 answers
255 views

Consider the following scenario:

 

A grid populated with data, sorted and grouped by one column.

The row count is larger enough to enable scrollbars to be visible.

Data is added continuously to the grid. When added it is sorted in to the grouped list.

 

What we would like to achieve is that the current selected row(s) in the grid is “staying still” relative to the grid viewport when data is added to the grid.

 

We created a test project using Telerik WPF RadGridView, no specific settings in to the grid in XAML, and provided a mock datasource which added one row per second.

 

What happens is when data is added and sorted in “before” the selected row, the selected row is pushed down, out of the viewport.  

 

Is it possible to have Telerik WPF RadGridView behave as mentioned above, the current visible rows stays put in the viewport even though rows are added above them in the grid?

Marcus
Top achievements
Rank 1
 answered on 01 Jul 2013
6 answers
177 views
I am dragging within a single treeview

Thanks,
Anders, Denmark
Pavel R. Pavlov
Telerik team
 answered on 01 Jul 2013
1 answer
253 views
I have tried everything I can think of and I can not get the nodes in my RadTreeView sorted alphabetically. I am using Hierarchical data binding and my tree is heterogeneous, but all of the objects have a Name property which is what I want to sort on. The most promising approach seemed to be using a CollectionViewSource but this is not working (note the tree view and all children show up fine, just not sorted).

The XAML for my CollectionViewSource is

<CollectionViewSource x:Key="ManagerView">
    <CollectionViewSource.SortDescriptions>
        <cm:SortDescription Direction="Ascending" PropertyName="Name"/>
    </CollectionViewSource.SortDescriptions>
</CollectionViewSource>

My RadTreeView is

<telerik:RadTreeView x:Name="ManagerTreeView" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding Source={StaticResource ManagerView}}"/>

And the code behind to connect the CollectionViewSource to my data is 

CollectionViewSource cvs = this.TopLevelGrid.Resources["ManagerView"] as CollectionViewSource;
cvs.Source = RemoteWorkspace.Instance.RemoteManager;

Note that the tree shows up, all the objects are there, they are simply not sorted.

I have resorted to sorting the collections in my application code, but this seems less desirable.

Is there a way to sort the items in a RadTreeView that uses data binding.

Also note that all of my data is stored in ObservableCollections because the content is dynamic (i.e. RemoteWorkspace.Instance.RemoteManager refers to an ObservableCollection). Not sure if this makes a difference or not.

Thanks
Dave
Pavel R. Pavlov
Telerik team
 answered on 01 Jul 2013
2 answers
175 views

Hi,
  
<telerik:RadGridView x:Name="radGridView" ShowGroupPanel="False" AutoGenerateColumns="False" ItemsSource="{Binding DataList}">
.....

</telerik:RadGridView>

ViewModel
----------

        private ObservableCollection<ClientDataRealizationModel> _dataList
        public ObservableCollection<ClientDataRealizationModel> DataList
        {
            get { return _dataList}
            set { _dataList= value; OnPropertyChanged("DataList"); }
        }

        private void OnFilter(string year)
        {
          var list = _dataList.Where(x => x.Year == year).Select(x => x);
           _dataList= new ObservableCollection<DataModel>(list);
        }



The filtered data is not showing. Should we refresh the grid ? Can anyone help me out to solve this issue.
Dimitrina
Telerik team
 answered on 01 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?