Telerik Forums
UI for WPF Forum
1 answer
144 views

Dear Telerik Team!

I am trying to use "implicit styling" as described in:
http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html

I added the following files to the project:

Telerik.Windows.Controls.xaml
System.Windows.xaml
Telerik.Windows.Controls.Input.xaml
Telerik.Windows.Controls.Navigation.xaml
Telerik.Windows.Controls.GridView.xaml
Telerik.Windows.Controls.ScheduleView.xaml

I believe these files contain all the styles necessary in our project. I also added the necessary entries to Application.Resources dictionary, removed the "telerik:StyleManager.Theme=""" references from our controls XAML's and finally I removed the initialization of StyleManager.ApplicationTheme to ensure that we really use our "implicit styles".

Now - everything seems to work fine (controls like RadMenu, RadMaskedTextBox and other input controls, RadScheduleView! get the correct styles) except for RadGridView. The RadGridViewStyle doesn't get applied from Telerik.Windows.Controls.GridView.xaml. Any ideas? Are we missing some stylesheet files? Or is it something undocumented in the above article.

Many thanks in advance!
Best regards
Krzysztof Kaźmierczak

Dimitrina
Telerik team
 answered on 02 Jul 2013
4 answers
162 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
199 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
148 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
337 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
66 views
but changed in editor
Kalin
Telerik team
 answered on 01 Jul 2013
1 answer
389 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
287 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
224 views
I am dragging within a single treeview

Thanks,
Anders, Denmark
Pavel R. Pavlov
Telerik team
 answered on 01 Jul 2013
1 answer
304 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
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?