Telerik Forums
UI for WPF Forum
10 answers
804 views
Hi all, 
I want to do the following behavior in my program.
I have a GridView and below form, which is still visible. I need to change the background when the form gets focus. Standard background is gray, and if form get the focus to look the same(background) as the selected row in the DataGrid. It is not difficult, but if I change the main theme from SummerTheme to Office_SilverTheme, I have a complicated background to change.

My query is as follows.
Can I use this
 
<Setter Property="Background" Value="StaticResource GridViewRowSelectedBackground}" />
And call value in TelericTheme.  

If I change the StyleManager.ApplicationTheme in the future, I will get right background.


Thank you for the tip.

My definition style in Themes/Generic.xaml
<LinearGradientBrush x:Key="GridViewRowSelectedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFCA5D" Offset="1"/>
        <GradientStop Color="#FFFFDC9C" Offset="0"/>
</LinearGradientBrush>
   
<Style  x:Key="Form_Style" TargetType="Border" >
    <Setter Property="BorderBrush" Value="White" />
    <Setter Property="BorderThickness" Value="2" />
    <Setter Property="Padding" Value="1" />
    <Setter Property="Margin" Value="1" />
    <Setter Property="CornerRadius" Value="5"/>
    <Setter Property="Background" Value="{StaticResource Form_Background}"    />
    <Style.Triggers>
      <Trigger Property="IsKeyboardFocusWithin" Value="True" >
        <Setter Property="Background" Value="{StaticResource GridViewRowSelectedBackground}"  />
      </Trigger>
    </Style.Triggers>
</Style>

Zdero Pero
Top achievements
Rank 1
 answered on 25 Feb 2013
1 answer
168 views
hi,
i want to add a new row to the grid, when the user completes the editing of the last row (i am having 3 columns, in that first two columns only editable, so the user when completes editing the second column focus should be set to the newly added row's second column, so that the user can start typing it.

In this once i added a new row (when user presses tab after editing last row's second column) focus is moved out of the grid, but the new row is added.

how can acheive this?

Thanks
Subash
Yoan
Telerik team
 answered on 25 Feb 2013
1 answer
157 views
Hello,

we use a donut chart for some statistics. Is it possible, to change the alignment of the donut?


<Window x:Class="WpfApplication1.Window1"
    xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"       
    Title="Window1" Height="300" Width="300">
 
    <WrapPanel Orientation="Vertical">
        <Border telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True">
            <telerik:RadChart x:Name="RadChart1" ItemsSource="{Binding StaticResource Umsatzdaten}" VerticalContentAlignment="Top">
                <telerik:RadChart.Content>
                    <Label Content="Umsätze der letzten 6 Monate" FontWeight="Bold"/>
                </telerik:RadChart.Content>
                 
                <telerik:RadChart.DefaultSeriesDefinition>
                    <telerik:DoughnutSeriesDefinition LegendDisplayMode="None">
                        <telerik:DoughnutSeriesDefinition.InteractivitySettings>
                            <telerik:InteractivitySettings HoverScope="Item" SelectionScope="Item" SelectionMode="Single" />
                        </telerik:DoughnutSeriesDefinition.InteractivitySettings>
                    </telerik:DoughnutSeriesDefinition>
                </telerik:RadChart.DefaultSeriesDefinition>
 
                <telerik:RadChart.SeriesMappings>
                    <telerik:SeriesMapping>
                        <telerik:SeriesMapping.ItemMappings>
                            <telerik:ItemMapping DataPointMember="YValue" FieldName="Umsatz" />
                            <telerik:ItemMapping DataPointMember="Label" FieldName="MonatsnameMitUmsatz" />
                            <telerik:ItemMapping DataPointMember="LegendLabel" FieldName="Monatsname" />
                            <telerik:ItemMapping DataPointMember="XCategory" FieldName="Monat" />
                        </telerik:SeriesMapping.ItemMappings>
                    </telerik:SeriesMapping>
                </telerik:RadChart.SeriesMappings>
            </telerik:RadChart>
        </Border>
    </WrapPanel>   
</Window>

Please take a look at the attached screenshots to understand what we want to do :)


Best regards

J
Evgenia
Telerik team
 answered on 25 Feb 2013
1 answer
148 views
Hi!

I have a problem. I've RadTreeView with event IsLoadOnDemandEnabled=true and LoadOnDemand assigned to event. It's work the first time. When i try another time collapse and expand item, the event LoadOnDemand dont work...

Any ideas?

Thanks!
Pavel R. Pavlov
Telerik team
 answered on 25 Feb 2013
2 answers
76 views
Hi There,

I have a requirement to hide the minimize and maximize buttons on header but i want to use the resize the window with cursor at bottom right corner. can you please tell me how i can achieve this ?

Regards,
Srinivas.
Ravi
Top achievements
Rank 1
 answered on 25 Feb 2013
7 answers
1.0K+ views
dear all,
for window i have topmost function.
 
how can i use this functionon radwindow ( t.BringToFront() never work for me);
Miroslav Nedyalkov
Telerik team
 answered on 25 Feb 2013
3 answers
151 views

I have the following comboboxcolumn that is bound to a collection of strings.  The DataMemberBinding points to a property in the object model.  This property gets updated in another part of the system, but the comboboxcolumn does not reflect the new value in view mode.  As soon as I click on the field, the combox displays the updated value.  How can I get it to update in view mode?

<telerik:GridViewComboBoxColumn Header="M"
DataMemberBinding="{Binding SummaryGroupDetail.MisclassifiedType, Mode=TwoWay, NotifyOnSourceUpdated=True}"
UniqueName="MisclassifiedType"
ItemsSourceBinding="{Binding Path=DataContext.MisclassifiedTypes, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
Yoan
Telerik team
 answered on 25 Feb 2013
1 answer
212 views
RadGridView breaks when you have no data in it and you try and paste. I get a DataGrid_DisplayIndexOutOfRange exception. Here is an example: 

<Window x:Class="TestTablePaste.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="350" Width="525">
   <Grid>
        <telerik:RadGridView>
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu>
                    <telerik:RadMenuItem Header="Paste" Command="ApplicationCommands.Paste"></telerik:RadMenuItem>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
        </telerik:RadGridView> 
    </Grid>
</Window>

I was wondering if this is a known issue and if there was a work around.
Yoan
Telerik team
 answered on 25 Feb 2013
11 answers
159 views
I am using the MultipleUndoControl; is there a MultipleRedoControl? Or is there a way to use the MultipleUndoControl with Redo?
Boby
Telerik team
 answered on 25 Feb 2013
14 answers
1.5K+ views
Hi

I'm trying to set the background color of a Grid (LayoutRoot) of a RadWindow consitent with application theme (that could be changed); RadWindow has alway a white background color despite any ApplicationTheme I could set.
Currently I'm adding a dummy element

<telerik:RadMenu Name="radMenu" Visibility="Collapsed" Width="0" Height="0"/>

and copy color from radMenu.

layoutRoot.Background = radMenu.Background;

Is there a better way to do that?

Thanks
Ivano
Yana
Telerik team
 answered on 25 Feb 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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?