Telerik Forums
UI for WPF Forum
1 answer
225 views
Ok, I'm troubleshooting an issue in our app.  We've got several RadGridViews, but in this one particular view, when you click on any column header to sort the grid, all of the grid data disappers.  the data remains invisible if the column state is ascending or descending, but reappears if you toggle the column back to no sort.

Obviously we are doing something wrong in this specific RadGrid.  I've tried to copy what is going on in our other grid views but I haven't figured out the difference yet.  I figure I can't be the first person to have seen this behavior, so if someone else has seen this can they point me in the right direction towards fixing this problem?  Thanks!
Dimitrina
Telerik team
 answered on 15 Jan 2015
13 answers
1.1K+ 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
585 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
125 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
150 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
74 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
318 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
403 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
120 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
142 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
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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?