Telerik Forums
UI for WPF Forum
1 answer
150 views
Hello,

In my project, I need to show a gantview which the user can modify tasks (duration, start, end), with field or with the behavior of the component (drag and drop). The problem is when the user put a start equal to the end for a task, these task is transform to milestone, with a different style and different behavior(including the deactivation of expansion of the task by left or right), which can disrupt the user. How can I keep the style/behavior of the task even start and end of the task is equal ? (it's not important if the tasks have a minimum size)

Thanks for Your Help

Julien
Nasko
Telerik team
 answered on 15 Jan 2015
3 answers
300 views
Hi,
We have an usercontrol that it used to generate several different grids in a same window.
We noticed that when we have 2 or more grids  in a window, the load time begins grow and the performance drops.

Our control uses a DataTable to generate the data because each grid could have different number of columns, here is the way we make the assignment:

dataGrid.ItemsSource = data.DefaultView;

Our problem its related with this line, because this operation its taking between 150 and 200 milliseconds, that seems good for a single grid, but when we have several of this it could take more than a second or two to load a window, which is not acceptable for our customer.

It's there a way to improve this?

Just in case, we are taking in care your tips and tricks help topic
We are using the 2011 Q3 telerik version.

Thanks!
Dimitrina
Telerik team
 answered on 15 Jan 2015
1 answer
249 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.2K+ 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
614 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
151 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
177 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
86 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
344 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
417 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
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?