Telerik Forums
UI for WPF Forum
1 answer
155 views
We are using implicit themes and all we want to do is change the transparency of the highlight color (i.e. increase it) for the gridrow when it is selected. Depending on the theme selected the selected highlight color changes and we want to keep that functionality but merely make it more transparent. I understand that we could go change all of the underlying XAML files and recompile the assembly but for such a small change we would rather not do that. Can you suggest any other way of accomplishing this. Thank you
Vanya Pavlova
Telerik team
 answered on 16 Apr 2014
8 answers
161 views
Hi,

My Requirement: I am using WPF RadscheduleView. I have 2 buttons in the bottom of the grid which will be used to navigate prev/next week.

I am using FirstVisibleRange and navigate to next week based on the calculation of next date. The scroll moved to calculated date , but the FirstVisibleRange property of schedule view grid still showing previous date only.

Pls help me out on this. Or let me know the best way to achieve prev and next week navigation in schedule view.

Regards,
Sugumar P
Sugumar
Top achievements
Rank 1
 answered on 16 Apr 2014
2 answers
225 views
Hello,

I have a problem with the RadComboBox control. The telerik version that I use is Q1 2014.

When I group data using ICollectionViewSource, the data are well grouped but some items are not accessible because the scroll go directly to the next group.

How can I solve that problem ?

The code of the Group style is defined below:

01.public FormatBox()
02.        {
03.            this.IsEditable = false;
04.            this.EmptyText = Translator.Translate("Generic_SelectFormat");
05. 
06.             
07.            ScrollViewer.SetCanContentScroll(this, true);
08. 
09.            DataTemplate itemTemplate = new DataTemplate();
10. 
11.            FrameworkElementFactory stackPanelFactory = new FrameworkElementFactory(typeof(StackPanel));
12.            stackPanelFactory.SetValue(StackPanel.OrientationProperty, System.Windows.Controls.Orientation.Horizontal);
13. 
14.            FrameworkElementFactory textBlock = new FrameworkElementFactory(typeof(TextBlock));
15.            textBlock.SetBinding(TextBlock.TextProperty, new Binding("Name"));
16.            stackPanelFactory.AppendChild(textBlock);
17. 
18.            textBlock = new FrameworkElementFactory(typeof(TextBlock));
19.            textBlock.SetValue(TextBlock.TextProperty, " - ");
20.            stackPanelFactory.AppendChild(textBlock);
21. 
22.            textBlock = new FrameworkElementFactory(typeof(TextBlock));
23.            textBlock.SetBinding(TextBlock.TextProperty, new Binding("Description"));
24.            stackPanelFactory.AppendChild(textBlock);
25. 
26.            itemTemplate.VisualTree = stackPanelFactory;
27. 
28.            this.ItemTemplate = itemTemplate;
29. 
30. 
31.            GroupStyle style = new GroupStyle();
32.            style.HidesIfEmpty = true;
33. 
34.            DataTemplate headerTemplate = new DataTemplate();
35. 
36.            textBlock = new FrameworkElementFactory(typeof(TextBlock));
37.            textBlock.SetBinding(TextBlock.TextProperty, new Binding("Name") { Converter = new FormatBoxBooleanToTranslationConverter() });
38.            textBlock.SetValue(TextBlock.FontWeightProperty, FontWeights.Bold);
39.            textBlock.SetValue(FrameworkElement.MarginProperty, new Thickness(5, 0, 5, 0));
40.            textBlock.SetValue(FrameworkElement.VerticalAlignmentProperty, VerticalAlignment.Center);
41.            style.HeaderTemplate = headerTemplate;
42. 
43.            FrameworkElementFactory border = new FrameworkElementFactory(typeof(Border));
44.            border.SetValue(Border.BackgroundProperty, new SolidColorBrush(System.Windows.Media.Color.FromArgb(255, 227, 239, 255)));
45.            border.SetValue(FrameworkElement.HeightProperty, 20d);
46. 
47.            border.AppendChild(textBlock);
48. 
49.            headerTemplate.VisualTree = border;
50. 
51.            this.GroupStyle.Add(style);
52.        }

Thanks in advance, this problem is critical for us.
Geofrrey
Geoffrey
Top achievements
Rank 1
 answered on 15 Apr 2014
3 answers
190 views
My current installed version is 2013.3.1204.40.

I am using RadGridView to print and print preview using "Print and Export with RadDocument". I want to set header on each page at the time of
Print & Print Preview. How can I go about with this issue.

Any help will be much more appreciated.

Regards,
Bharat Mendapara
Dimitrina
Telerik team
 answered on 15 Apr 2014
2 answers
50 views
Hi,

I just upgraded from V2013.3.1204.40 to V2014.1.0331.40 and since then I have some "BasedOn" styling problems.

Any thought???

Thank's
Alain
Christie Admin
Top achievements
Rank 1
 answered on 15 Apr 2014
6 answers
433 views
I wanting to utilize the PropertyGrid in a application. I have a requirement to support multiple languages. What is the best approach to localize the strings displayed to the user? I am referring the Property Names, and Property Descriptions. I would also like to categorize properties and would like the categories translated.

I have tried an approach I found on CodeProject, but it is designed for WinForms and not WPF. It uses a GlobalPropertyDescriptor which is derived from PropertyDescriptor. This class overrides the Name, DisplayName, and Description properties to retrieve localized strings from string tables. The problem to the approach is the getters for the DisplayName and Description properties are never accessed. The Name property is accessed.

Each class displayed in a PropertyGrid inherits from a common base class that implements an ICustomTypeDescriptor. Most of the what happens here is in the GetProperties functions.

Bottom line is this approach is not working for the WPF version of the PropertyGrid and I am looking for some guidance.
Any assistance is greatly appreciated.
Dimitrina
Telerik team
 answered on 15 Apr 2014
1 answer
717 views
I was hoping of obtaining the GridViewRow object of the newly added Item (or GridViewRow) by code. The Telerik GridView's ItemSource is bound to Customers ObservableCollection holding Customer object. On the constructor of the window, I populate the Customers collection with 10 items. This shows up fine on the grid. When I click on the button to add 5  more customers, I can see them been added on the grid, however when I try to access the 11th row using grid.ItemContainerGenerator.ContainerFromIndex(10), it returns null.
Is there a different way of obtaining the newly added row's index.
Boris
Telerik team
 answered on 15 Apr 2014
1 answer
126 views
Hi,

with version 2013.3.1204.40 of Telerik. I implemented a CustomDragDropBehavior and in the override method CanDrop, if I do the following :

Slot mouseOverSlot = (state.ServiceProvider.GetService<IDialogProvider>() as RadScheduleView).MouseOverSlot;

mouseOverSlot is always null

Thank's
Alain
Konstantina
Telerik team
 answered on 15 Apr 2014
1 answer
107 views
Hello !
I Want to synchronize a RadChart in a RadTimeBar with a WeekInterval.
If i Set the Windows Size i can synchronize the size with the Margin set to "-7,0,72,0" (see Picture 1).
If i Maximize the Windows it is not synchronized (see Picture 2).
Sourcecode is in TelerikTimeBarTest.png (Rename to zip).

What is the best way to synchronize the size ?

Thank for Help !

Thilo
​
Thilo
Top achievements
Rank 1
Iron
 answered on 15 Apr 2014
3 answers
286 views
Hi,

I'd like to make a simple bar chart like the image I've attached.  It's really very basic bar chart (not sure Telerik's name for this sort of chart) with a single series.  Each of the bars should be labeled with it's value.

Please point me to any examples or snippets that would help me create it.  I prefer to do as much of it using MVVM as possible.


Thanks!
Petar Marchev
Telerik team
 answered on 15 Apr 2014
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
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
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
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?