Telerik Forums
UI for WPF Forum
1 answer
114 views
Hi all,

looks like a simple problem, but I can't find a solution :-(  I have a bar chart with several items and a CustomGridLine, showing a limit value. Now I want to fill each item depending on his value. Green, if it is far away from the limit, yellow if near by and red if it is greater. Best solution will be a linear brush to fade the colors. Any hints?
dpl
Top achievements
Rank 1
 answered on 15 Aug 2013
3 answers
235 views
Hello,

we are trying to apply the new lightweight templates in our WPF .NET 4.5 project. We follow the documentation you provide. But it doesnt work.
We dont know where to get the correct themes dll which is referenced in the resource dictionaries

<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>


Using the self-built assambly from themes.implicit produces following errors (~200):

e.g.: 
Error 95 The name "Windows8Resource" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7".

Error 2 The name "Windows8ResourceDictionary" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7". 

Error 3 The name "Windows8Colors" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7". 

Changing the Telerik dependencies from 4.0 to 4.5 in the themes.implicit project does not work either.

Could you please provide any help in this case.

regards
Marco Gruhl
Vanya Pavlova
Telerik team
 answered on 15 Aug 2013
2 answers
134 views
Hi

I have a need to have many open documents open at the same time.  Also, each pane header may have a long name.  After opening more than about 4 or 5 documents the pane width is reduced.  This leaves the pane header unintelligible.  The typical way this is handled by microsoft and others is to have a dropdown list of panels.  How would I do this with RadDocking.

Thanks
Rich
Richard Harrigan
Top achievements
Rank 1
 answered on 14 Aug 2013
1 answer
172 views
Hi,
I'm trying to use multi-seleciton in PropertyGrid and the following problems occurred:

1. When I set SelectionMode to multi in Xaml and try to switch it to Single mode in code-behind, it doesn't work.
2. When I set NestedPropertiesVisibility="Visible", it worked fine in the single selection mode, but doesn't work in the multi selection mode.
3. Data Annotations set in the Display attriute doesn't work.
3. DataTemplateSelection does not work properly as in the single selection. For example, I get
PropertyType : {Name = "Object" FullName = "System.Object"} System.Type {System.RuntimeType}
for the code below.

public class PropertyGridDataTemplateSelector : DataTemplateSelector
    {
        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            if (item as PropertyDefinition != null && (item as PropertyDefinition).SourceProperty.PropertyType == typeof(Int32))
            {
                return IntegerPropertyDataTemplate;
            }
            return null;
        }

        public DataTemplate IntegerPropertyDataTemplate { get; set; }
    }

Can you get this fixed?
Thanks!

Maya
Telerik team
 answered on 14 Aug 2013
1 answer
99 views
Hi all,
I ran into a situation where I programmatically grouped my Grid by a property that was not a column on the Grid using a GroupDescriptor.  It worked fine of course until I tried to persist it.  The GridViewCustomPropertyProvider.cs that I downloaded from Telerik many moons ago expected ColumnGroupDescriptors only.  After some investigation I found that I had to make modifications to support both types.  I share the code here in case someone else also needs this support.

In the ProvideValue method...
case "GroupDescriptors":
    {
        List<GroupDescriptorProxy> groupDescriptorProxies = new List<GroupDescriptorProxy>();
 
        foreach (GroupDescriptorBase descriptor in gridView.GroupDescriptors)
        {
            if (descriptor is GroupDescriptor)
            {
                groupDescriptorProxies.Add(new GroupDescriptorProxy()
                {
                    ColumnUniqueName = (descriptor as GroupDescriptor).Member,
                    SortDirection = descriptor.SortDirection,
                });
            }
            else if (descriptor is ColumnGroupDescriptor)
            {
                groupDescriptorProxies.Add(new GroupDescriptorProxy()
                {
                    ColumnUniqueName = (descriptor as ColumnGroupDescriptor).Column.UniqueName,
                    SortDirection = descriptor.SortDirection,
                });
            }
 
        }
 
        return groupDescriptorProxies;
    }

In the RestoreValueMethod....
case "GroupDescriptors":
    {
        gridView.GroupDescriptors.SuspendNotifications();
 
        gridView.GroupDescriptors.Clear();
 
        List<GroupDescriptorProxy> groupDescriptorProxies = value as List<GroupDescriptorProxy>;
 
        foreach (GroupDescriptorProxy proxy in groupDescriptorProxies)
        {
            GridViewColumn column = gridView.Columns[proxy.ColumnUniqueName];
            GroupDescriptorBase gd = null;
            if (column != null)
            {
                gd = new ColumnGroupDescriptor()
                {
                    Column = column,
                    SortDirection = proxy.SortDirection
                };
            }
            else // assume GroupDescriptor
            {
                gd = new GroupDescriptor()
                {
                    Member = proxy.ColumnUniqueName,
                    SortDirection = proxy.SortDirection
                };
            }
            gridView.GroupDescriptors.Add(gd);
        }
 
        gridView.GroupDescriptors.ResumeNotifications();
    }





Best,
Steve

Yoan
Telerik team
 answered on 14 Aug 2013
1 answer
111 views
When I programmatically change row selection, i would like it to have Keyboard.focus. I did this with TreeView by adding a handler for the TreeViewItem Select event.  I tried to do a similar thing for GridView by adding a handler to the GridViewRow Select event. But this does not work: It gets a "handler type is not valid". I notice that there is a command, "ActivateRow", but I can't find any documentation on what an active row is or how to execute the command.  Does an active row have keyboard focus?  How would I invoke it for the selected row? Or is there another way to do what I what?
Yoan
Telerik team
 answered on 14 Aug 2013
1 answer
211 views
Hi,

I'm using Telerik V2012.2.912.35 and I would like to know why the TimelineViewDefinition doesn't respect the DayEndTime parameter...
When I'm in timeline view, every day time start at my parameter value but it don't stop at my end time parameter.

Thank's
Alain

Here is my piece of code:

                   <scheduleView:RadScheduleView AppointmentEdited="ScheduleView_AppointmentEdited" Grid.Column="1" x:Name="ScheduleView" FirstDayOfWeek="Sunday" ActiveViewDefinitionIndex="1" AppointmentsSource="{Binding}" AppointmentItemContentTemplate="{StaticResource AppointmentTemplate}" ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}" Margin="0 2 2 2">
                        <scheduleView:RadScheduleView.ViewDefinitions>
                            <scheduleView:DayViewDefinition DayStartTime="9:00" DayEndTime="18:00" MajorTickLength="1h" MinorTickLength="15min" TimerulerMajorTickStringFormat="{}{0:H tt}:{0:mm} " TimerulerMinorTickStringFormat=":{0:mm} " GroupHeaderDateStringFormat="{}{0:dddd d MMMM yyyy}" />
                            <scheduleView:WeekViewDefinition DayStartTime="9:00" DayEndTime="18:00" MajorTickLength="1h" FirstDayOfWeek="Monday" VisibleDays="5" MinorTickLength="15min" TimerulerMajorTickStringFormat="{}{0:H tt}:{0:mm} " TimerulerMinorTickStringFormat=":{0:mm} " GroupHeaderDateStringFormat="{}{0:dddd d MMMM yyyy}" />
                            <scheduleView:MonthViewDefinition DayStartTime="9:00" DayEndTime="18:00" TimerulerMajorTickStringFormat="{}{0:d MMMM} " GroupHeaderDateStringFormat="{}{0:dddd d MMMM yyyy}" />
                            <scheduleView:TimelineViewDefinition DayStartTime="9:00" DayEndTime="18:00" TimerulerGroupStringFormat="{}{0:dddd d MMMM yyyy}" TimerulerMajorTickStringFormat="{}{0:%H}h" TimerulerMinorTickStringFormat=":{0:%m}" MajorTickLength="1h" MinorTickLength="15min" MinTimeRulerExtent="30400" MaxTimeRulerExtent="30400" StretchAppointments="True" StretchGroupHeaders="True" />
                        </scheduleView:RadScheduleView.ViewDefinitions>
                    </scheduleView:RadScheduleView>

Kalin
Telerik team
 answered on 14 Aug 2013
12 answers
242 views
How would I display information about the current timeslice the mouse is hovered in? This would be similar to a tooltip, but pertain to whatever zoom level and timeslice (8 PM or the 8th) the timebar is in.
Tsvetie
Telerik team
 answered on 14 Aug 2013
16 answers
454 views

Hi,

I try drag & drop function from gridview1 to gridview2 in wpf application. but i don't know
please help me..

Thanks.

Yoan
Telerik team
 answered on 14 Aug 2013
8 answers
468 views
Hi,

Is it possible to change the background color for special weekdays (for example saturday and sunday) in timeline-view-modus?
Or (as alternative) is it possible to change the column width or visibility for special weekdays. In my scenario I must differentiate between working days and weekend days.

Thanks in advance,

Best regards,
Stefan
Yana
Telerik team
 answered on 14 Aug 2013
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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?