Telerik Forums
UI for WPF Forum
3 answers
320 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
41 views
but changed in editor
Kalin
Telerik team
 answered on 01 Jul 2013
1 answer
358 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
268 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
203 views
I am dragging within a single treeview

Thanks,
Anders, Denmark
Pavel R. Pavlov
Telerik team
 answered on 01 Jul 2013
1 answer
270 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
204 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
3 answers
380 views
Hello Telerik team

I am trying to style RadMenuItem for my WPF application. I am almost done but I am stuck in one critical part.

I am mostly making use of submenuHeader, so I styled the HighlightVisual to suit my needs (for example changed color to green)
The place that was affecting mentioned HighlightVisual was in the trigger Role of SubmenuHeader.

            <Trigger Property="Role"
                     Value="SubmenuHeader">
                           ...
           <Border x:Name="HighlightVisual"                                        
                                            BorderThickness="1"
                                            CornerRadius="1"
                                            Visibility="Collapsed"
                                            Background="Green" />     

In the same role (SubmenuHeader) I also changed the background of the popup (for example Yellow)
                     ...
     <Popup x:Name="PART_Popup"
                                       AllowsTransparency="True"
                                       Focusable="False"
                                       HorizontalOffset="1"
                                       IsOpen="{TemplateBinding IsSubmenuOpen}"
                                       VerticalOffset="-1" >                                  
                                    
                                    <Grid>    
                                        <Grid x:Name="PopupContentElement">                                        
                                            <Border BorderBrush="#FF848484"
                                                    BorderThickness="1"
                                                    Background="Yellow">

Now my problem is this : How do I change the Highlight color of the items in the popup ? I can see that there is an ItemsPresenter defined in the submenuHeader's popup that probably contains radMenuItems, with a default Highlight (border background) color of a yellow gradient but I don't know where this is coming from or is defined. I need to override this default color so my context menu is consistent. Any help would be appreciated.

Telerik version 2012.1.0402
Thanks in advance
Rosen Vladimirov
Telerik team
 answered on 01 Jul 2013
6 answers
232 views
Hello,

I'm using the ItemChanged event but when the user write a value in a filter, the event is not raised until the user press the enter key.
I need to know when the user change the filter value on property changed.
How can I handle this,

Thank you,

Benjamin
Benjamin
Top achievements
Rank 1
 answered on 29 Jun 2013
1 answer
197 views
Is it possible to have the RichTextBox use a canvas as the editing area?

I am trying to create an application where the user is putting text and images on a canvas.   They can then apply affects to the text.  It is basically so they can create templates to print on T-Shirts.  So the location of items has to be exact.

Is that possible?
Petya
Telerik team
 answered on 28 Jun 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?