Hi, I'm running into an issue with the RadRibbonTab obscuring other content that should be in front of it.
The easiest way to illustrate this is with the attached screenshot. I put a breakpoint in the app when I click on an item inside the radRibbontab what is part of the RadRibbonView. The Z-order of the tab is higher than anything else on the screen, in this case obscuring other applications like visual studio. Note the order of the layers in the screenshot is my running WPF app is behind visual studio as expected, but the expanded ribbon tab is in front of it, obscuring part of visual studio.
This causes other issues in the application as well where the tab obscures other controls until the user explicitly hides the rad ribbon tab by focusing on the other control.
I am using VS Professional 2017, Version 15.8.0, .net version 4.7 and Telerik UI for WPF R3 2018
Thank you,
Chris
Hi,
i'm trying to use KeyboardCommandProvider, with binding in a MVVM scenario for managing the Enter key(i don't want to move down). I've read this post, https://docs.telerik.com/devtools/wpf/controls/radgridview/commands/keyboardcommandprovider and i try to implement my CustomKeyboardCommandProvider without success; i've a usercontrol with insede a GridView but i've an error message: "The type CustomKeyboardCommandProvider does not include any accessibile constructor". How can i solve it in my scenario?
This is my code:
XAML:
<UserControl.Resources>
<Conditional:CustomKeyboardCommandProvider x:Key="MyKeyboardCommand" />
</UserControl.Resources>
<telerik:RadGridView Grid.Column="0" Grid.Row="1" Name="MyRadGridArtworks"
ItemsSource="{Binding GridViewList, Mode=TwoWay}"
SelectedItem="{Binding GridViewRowSelected, Mode=TwoWay}"
EnableColumnVirtualization="False"
ValidatesOnDataErrors="None"
ShowColumnSortIndexes="False"
AutoGenerateColumns="False"
telerikControls:StyleManager.Theme="Office2013"
ColumnWidth="auto"
CanUserFreezeColumns="True"
LeftFrozenColumnCount="3"
ShowColumnFooters="True"
KeyboardCommandProvider="{StaticResource MyKeyboardCommand}"
IsLocalizationLanguageRespected="False"
RowIndicatorVisibility="Collapsed">
</telerik:RadGridView>
C# --> CustomKeyboardCommandProvider
public class CustomKeyboardCommandProvider : DefaultKeyboardCommandProvider
{
private GridViewDataControl dataControl;
public CustomKeyboardCommandProvider(GridViewDataControl dataControl ) : base(dataControl)
{
this.dataControl = dataControl;
}
public override IEnumerable<System.Windows.Input.ICommand> ProvideCommandsForKey(System.Windows.Input.Key key)
{
if (key != System.Windows.Input.Key.Return)
// use default behavior for all keys except Return
return base.ProvideCommandsForKey(key);
List<ICommand> commandsToExecute = new List<ICommand>();
if (this.dataControl.CurrentCell == null)
return commandsToExecute;
if (this.dataControl.CurrentCell.IsInEditMode)
{
commandsToExecute.Add(RadGridViewCommands.CommitEdit);
}
else
{
commandsToExecute.Add(RadGridViewCommands.ActivateRow);
}
return commandsToExecute;
}
}
Hello,
I have problem with displaying group headers after when ever I change date in timeline view. There is xaml for schedule view:
<
model:OrientedGroupHeaderContentTemplateSelector
x:Key
=
"GroupHeaderContentTemplateSelector"
>
<
model:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate
>
<
DataTemplate
>
<
Border
Background
=
"{Binding Name.Brush}"
Width
=
"250"
Margin
=
"1 0 1 0"
>
<
StackPanel
Margin
=
"10 10 10 10"
Orientation
=
"Horizontal"
>
<
TextBlock
Foreground
=
"{StaticResource GroupHeaderForeground}"
FontSize
=
"16"
Margin
=
"0"
Text
=
"{Binding Name.Name}"
/>
</
StackPanel
>
</
Border
>
</
DataTemplate
>
</
model:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate
>
<
model:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate
>
<
DataTemplate
>
<
Border
Background
=
"{Binding Name.Brush}"
Width
=
"250"
Margin
=
"1 0 1 0"
>
<
StackPanel
Margin
=
"10 10 10 10"
>
<
TextBlock
Foreground
=
"{StaticResource GroupHeaderForeground}"
FontSize
=
"16"
Margin
=
"0"
Text
=
"{Binding Name.Name}"
/>
</
StackPanel
>
</
Border
>
</
DataTemplate
>
</
model:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate
>
</
model:OrientedGroupHeaderContentTemplateSelector
>
<
LinearGradientBrush
x:Key
=
"ReadOnlyBrush"
MappingMode
=
"Absolute"
SpreadMethod
=
"Repeat"
StartPoint
=
"0,0"
EndPoint
=
"1,1"
>
<
LinearGradientBrush.Transform
>
<
ScaleTransform
ScaleX
=
"3"
ScaleY
=
"3"
/>
</
LinearGradientBrush.Transform
>
<
GradientStop
Offset
=
"0.15"
Color
=
"#FF4040C2"
/>
<
GradientStop
Offset
=
"0.15"
Color
=
"White"
/>
</
LinearGradientBrush
>
<
model:SpecialSlotStyleSelector
x:Key
=
"SpecialSlotStyleSelector"
>
<
model:SpecialSlotStyleSelector.NonWorkingHourStyle
>
<
Style
TargetType
=
"telerik:HighlightItem"
>
<
Setter
Property
=
"Canvas.ZIndex"
Value
=
"{Binding Slot.ZValueIndex}"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
>
<
Border
Background
=
"{StaticResource ReadOnlyBrush}"
Opacity
=
"0.7"
/>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
model:SpecialSlotStyleSelector.NonWorkingHourStyle
>
</
model:SpecialSlotStyleSelector
>
<
telerik:RadScheduleView
SpecialSlotsSource
=
"{Binding SpecialSlots}"
GroupDescriptionsSource
=
"{Binding GrpDescriptionCollection,UpdateSourceTrigger=PropertyChanged}"
GroupHeaderContentTemplateSelector
=
"{StaticResource GroupHeaderContentTemplateSelector}"
ResourceTypesSource
=
"{Binding ResourceTypesCollection, UpdateSourceTrigger=PropertyChanged}"
AppointmentsSource
=
"{Binding SeznamOperaciPlan, UpdateSourceTrigger=PropertyChanged}"
>
<
telerik:RadScheduleView.ViewDefinitions
>
<
telerik:TimelineViewDefinition
Orientation
=
"Vertical"
TimerulerGroupStringFormat
=
"{}{0:dddd - dd.MM.yyyy}"
VisibleDays
=
"6"
GroupTickLength
=
"1d"
MajorTickLength
=
"1h"
MinorTickLength
=
"15min"
TimerulerMajorTickStringFormat
=
"{}{0:HH:mm}"
TimerulerMinorTickStringFormat
=
":{0:mm}"
StretchAppointments
=
"True"
StretchGroupHeaders
=
"False"
Title
=
"Timeline"
/>
</
telerik:RadScheduleView.ViewDefinitions
>
</
telerik:RadScheduleView
>
GroupDescriptionsSource and ResourceTypesSource are initialized and filled by some data in view model constructor.
On image grupheader-ok.jpg - is all OK and this what I want every when I change date, but if I go to the future date, it displays like on image groupheader-problem.jpg and If I go back to the actual week (current date) then it displays like on image groupheader-problem-back.jpg.
Where could be problem?
Thank you for your answers.
I'm trying to display high speed live network traffic data in RadGridView with sort/filter support. There will be about 5000 record per second, each record is about 500 bytes in average. And user need to see the latest records as soon as possible.
I found that RadGrivView is unresponsive in this scenario, even after I followed the Tips and Tricks of RadGridView Performance. I had profiled the performance with VS, and the result as follows. And we can see RadGridView related operation cost too much time.
Is the any way to improve the performance?
I have uploaded my test project to TelerikGridViewPerf.zip
Thanks in advance!
I'm getting this error in my code and I'm beyond frustrated
Could not load file or assembly 'Telerik.Windows.Controls, Culture=neutral' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
It started with a problem in my project where it wasn't running the same version of the code that I had, no idea why but at some point the project stopped building. If I tried to place a breakpoint it wouldn't reach it saying code doesn't match. My first step was to delete the bin\debug folder and rebuild: nothing, folder remains empty. Research, try to figure out why. Finally go into my project and see that my main project doesn't have a check next to the build column. I check that and build and get a ton of errors because now it can't find the RadGlyph. I do more research and most of the comments are about cleaning and rebuilding but that doesn't work.
I decide to unreference all my telerik DLLs and add in only the ones I need and make sure they are all the same version. I finally get it to build and now my bin folder is filled with files. I try to run my program and get the above issue. I've checked all the forums, I've done a clean and rebuild multiple times, I checked my cproj file, here are my telerik versions
<Reference Include="Telerik.Windows.Controls, Version=2018.3.911.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
<Reference Include="Telerik.Windows.Controls.Data, Version=2018.3.911.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
<Reference Include="Telerik.Windows.Controls.GridView, Version=2018.3.911.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
<Reference Include="Telerik.Windows.Controls.Input, Version=2018.3.911.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
<Reference Include="Telerik.Windows.Data, Version=2018.3.911.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
<Reference Include="Telerik.Windows.Themes.Office2013, Version=2018.3.1016.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
<HintPath>..\packages\Telerik.Windows.Themes.Office2013.for.Wpf.2018.3.1016\lib\net45\Telerik.Windows.Themes.Office2013.dll</HintPath>
</Reference>
I even commented out the Office2013 theme, I figured the difference in version is because it's a theme but just in case I tried it with no luck.
I'm at the end of my rope. Any help would be appreciated.
Hello,
I am new to Telerik and i am trying my first tests in order to get a better understanding. I am not sure though if i have post in the right section in the forum.
I am dealing with a problem which is the following.
I want to test a desktop application (WPF tests). So, when i set the exe file in the telerik test studio form the configure menu, every time i press record the application starts with the login screen of the application. Is there any way to bypass that.
The problem is that i want to skip the login procedure and not execute that step every time and therefore start the recorder and test steps from a different point inside the application and execute from he selected point and onward each time.
Thanks
Regards
Tom
My goal is mark with frame some "linked" task. When user select one appointment, then linked appointmemts have to be marked with frame.
I have changed the OrientedAppointmentItemStyleSelector.HorizontalStyle - template of AppointmentItem.
<
Border
x:Name
=
"CommonStatesVisual"
BorderThickness
=
"3, 3, 3, 3"
CornerRadius
=
"1"
Visibility
=
"{Binding Appointment.LinkedVisibility}"
>
<
Border.BorderBrush
>
..................
</
Border.BorderBrush
>
<
Border
x:Name
=
"CommonStatesVisualInnerBorder"
BorderBrush
=
"OrangeRed"
BorderThickness
=
"3"
CornerRadius
=
"1"
/>
</
Border
>
So, my problem is refresh the view after changing Appointment.LinkedVisibility property, because only selected Appointment is change the drawing after updating.
P.S. this approach is not applicable for me https://www.telerik.com/forums/need-to-refresh-scheduleview
Can you help me to force redraw for all appointments?
Hi,
I would like to scroll into view on a specific appointment having a start date not in the visible range.
My problem is that the range is correctly changed but the view is not scolled into this appointment.
I perform this action from a command where I reload the itemsource, then set the current date to the appointment start date and finally use : scheduler.ScrollIntoView(this.SelectedAppointment);
Do you have a suggestion on how to make this work?
Best Regards.
public
class
Client
{
public
string
Name {
get
;
set
;}
public
string
AccountCode {
get
;
set
;}
public
string
Address {
get
;
set
;}
}
radacbox.SearchFunction += (client, search_text) => { client.Name.Contains(search_text) || client.AccountCode.Contains(search_text) };