Telerik Forums
UI for WPF Forum
13 answers
1.0K+ views
Hi.
I Have a RadGridView with a vertical scrollbar.
Is there a possibility to bring a certain Item into view.
I have tried Selected and Current however, the scrollbar remains unchanged.
Ideally I need something like:
var newItemInMyList = GetNewItem();  
this.ItemsSource.Add(newItemInMyList);  
this.SelectedItem = newItemInMyList;  
this.CurrentItem = newItemInMyList;  
this.radGridView1.BringIntoView(newItemInMyList);  

However if that is not possibile I would settle with bringing the scrollbar to the bottom of the Grid. (For the new Item woll most likely be added at the end of the list...)

Yours,
Nils


Boris
Telerik team
 answered on 15 Jan 2015
2 answers
560 views
How can i change the mouse over and selected (color after you click on a column)  color for the GridView columns. I am using this to change the default color

<Style TargetType="{x:Type telerik:GridViewHeaderCell}" >
            <Setter Property="FontFamily" Value="Verdana"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="BorderThickness" Value=".2"/>
            <Setter Property="Background"  Value="#FF8CC63F"/>
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="BorderBrush" Value="#FF8CC63F"/>
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>

        <Style TargetType="telerik:GridViewHeaderRow" >
            <Setter Property="Background" Value="#FF8CC63F" />
        </Style>
Boris
Telerik team
 answered on 15 Jan 2015
2 answers
99 views
Hi,

how can I avoid that a property grid overrides a TextBox's error template. I do not want to see the red triangle and red sliding tooltip there. Could not locate the right place in styles (Office Black).

Thanks.
Arthur
Top achievements
Rank 1
 answered on 15 Jan 2015
3 answers
132 views
Greetings,

I am using the RadScheduleView (2014.2.617.45) with the TimeLineViewDefinition. I created a button that allows the user to increase and decrease the MinAppointmentHeight during runtime. This is done through a binding to a double property on the corresponding viewmodel. By clicking the button, the property is increased/decreased by a constant value. The binding uses Mode="Default" so that the appointments will initially be scaled according to the size of the ResourceGroupHeaders.

Our problem is that once the user changes the MinAppointmentHeight for the first time, the ScheduleView seems unable to render correctly. You can see the difference in the attached screenshots. Image 1 shows the scheduler before any changes to the MinAppointmentHeight, while Image 2 shows the invalid rendering. Somehow, this only happens after the first change to MinAppointmentHeight. Every following change will cause the scheduler to render correctly again.

Could you please evaluate if this is indeed a bug? If so, would you be so kind to see if you could find any reasonable workaround until it is fixed?

Kind regards,
Hendrik
Kalin
Telerik team
 answered on 15 Jan 2015
1 answer
62 views
I have an collection of Employee objects who have a collection of Assignment objects as a property.  The Assignment object has an Employee object property.

I have another collection of "Unassigned" Assignments.

UI-wise I want to drag and drop from the Unassigned RadListBox to the assignment RadListBox of an Employee.

I have the drag and drop down. What I am missing is updating the Assignment.Employee property after an Assignment is dropped into the Employee.Assignments collection.  I have looked at overriding the DragDropBehavior,  but I do not see a way of accessing the data object that contains the DestinationItemsSource.

Help?
Kalin
Telerik team
 answered on 14 Jan 2015
6 answers
284 views
Hi

I get the following error warning when exporting and 'xls' extension:

'The file you are trying to open is in a different format than specified by the file extension.  Verify that the file is not corrupted and id from a trusted source before opening the file.  Do you want to open the file now?'

This happen in the online demo and in my program.  How do I prevent this message from occurring?

I am using Excel 2010 and the latest Telerik libraries

Thanks
Rich
Josh K
Top achievements
Rank 1
 answered on 14 Jan 2015
1 answer
380 views
Hi,

We're using the office 2013 theme and as a result, the headers of our gridviews show the text in uppercase.  This is expected due to the theme.

However, we'd like to have the header not uppercase this text.  The way we currently have our application using the theme is by including the various xaml files (including Telerik.Windows.Controls.GridView.xaml) as resource files and then we merge these in.

So we tried changing the following:

<ControlTemplate x:Key="CommonColumnHeaderTemplate" TargetType="grid:CommonColumnHeader">
        <Grid x:Name="PART_HeaderCellGrid" Background="Transparent">
            <Border x:Name="GridViewHeaderCell"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Margin="-1 0 1 0"/>
            <ContentControl x:Name="ContentPresenter"
                    Content="{Binding Content,Converter={StaticResource UppercaseConverter},RelativeSource={RelativeSource TemplatedParent}}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalAlignment="Center"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    Margin="{TemplateBinding Padding}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Grid>
    </ControlTemplate>

To this:

<ControlTemplate x:Key="CommonColumnHeaderTemplate" TargetType="grid:CommonColumnHeader">
        <Grid x:Name="PART_HeaderCellGrid" Background="Transparent">
            <Border x:Name="GridViewHeaderCell"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Margin="-1 0 1 0"/>
            <ContentControl x:Name="ContentPresenter"
                   
Content="{Binding Content,RelativeSource={RelativeSource TemplatedParent}}"                <----- CHANGE IS HERE
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalAlignment="Center"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    Margin="{TemplateBinding Padding}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Grid>
    </ControlTemplate>

But we think this must not be the right place to make the change.  Could you direct us to what we should change to get the header text showing with regular (not upper) casing?  Thanks!
Dimitrina
Telerik team
 answered on 14 Jan 2015
1 answer
99 views
Hi everyone !
I discovered Telerik few weeks ago and i try to use it since, but i have a problem :

I have one RedCartesianChart with a ChartView. I also have a checkBox which add another ChartView (in the same RedCartesianChart) when checked. How can i assign a tooltipTemplate for each chart ?

I try with something like : TooltipTemplate="{StaticResource MyTooltipTemplate}", but it applies the template for the whole RedCartesianChart and not just for one ChartView

I can add the source if needed.

All tips are welcome !
Thanks
Petar Marchev
Telerik team
 answered on 14 Jan 2015
1 answer
115 views
Simple question. I got my RadLegend element besides my RadCartesianChart with 6 series inside of them. (https://dl.dropboxusercontent.com/u/55589036/Pictures/Screenshots/20150112135601.png)

How can I force the RadLegend to display its items in a row instead of a column?
Petar Marchev
Telerik team
 answered on 13 Jan 2015
5 answers
1.4K+ views
How can i change the border color of combobox when it has keyboard focus, I am trying to change this in combo box style but it has no effect

<Border x:Name="FocusVisual" BorderBrush="#FFFFC92B" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" CornerRadius="1" IsHitTestVisible="False" Visibility="Collapsed">
<Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0"/>
</Border>

Also is there any example that shows how to change several other colors, like background of combo box button chrome, color on mouse over, color when drop down is open, mouse over for items
Are there static brushes for any of these or i have create whole new style

I am using implicit styles

thanks
Vikas
Nasko
Telerik team
 answered on 13 Jan 2015
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?