Telerik Forums
UI for WPF Forum
4 answers
231 views
Within your demo for the RadCalendar, it allows you to select any of several themes, but I don't see anything within the Code example to accomplish that. How can we select a specific theme from amongst those samples -- such as Office Blue or Transparent?  And how do we do this at run-time?

Also, in following the code example that illustrates the EventDayTemplateSelector, - it sets the DataTemplate to a TextBlock. But how would we set the appearance of the entire block that a given day appears in, in the sense that the blocks would abut one another if on adjacent days (does that sound confusing? does to me. In other words - I want to use the entire day-area to put a graphic indication of what kind of event is set for that day).

Thank you for your help,

James W. Hurst

VS 2010, Win 7 x64, RadControls for WPF Q2 2011
Dani
Telerik team
 answered on 04 Aug 2011
7 answers
156 views

Once I drag the Chart from toolbox I got this error. <<The attached Picture>>

 

Could you please let me know how to resolve it?

 

 

Thanks a lot

Sia
Telerik team
 answered on 04 Aug 2011
5 answers
341 views

Sometimes the users paint themselves into a corner and set up the UI in an unwanted way. I would like a way to clear settings (all would be fine, but the ability to clear only some would also be better).

Something like

 

           IsolatedStorageProvider isoProvider = new IsolatedStorageProvider();

           isoProvider.ClearStorage();

           isoProvider.ClearStorage(“myGridView”);

This would remove the files from isolated storage and revert controls to default settings.

Tau Sick
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
189 views
Hi Telerik team,
I have same problem from this link.

It is working well, after some changes and i see trigger property IsHeaderPressed and IsMouseOverHeader not working properly.

Do you have any idea ?

Thank you

Tina Stancheva
Telerik team
 answered on 04 Aug 2011
5 answers
166 views
Hi,
I'm using the DataFilter control placed in a ToolBar (in unbound mode (if relevant)).
<ToolBarTray DockPanel.Dock="Top" Name="toolBarTrayTop">
   <!-- Filter Toolbar   -->
   <ToolBar Height="26" Name="toolBarFilter" Visibility="{Binding Path=ToolsFilterVisibility}">
      <Button Name="btnFilterRefresh" Command="{Binding Path=FilterRefreshCommand}" Style="{StaticResource BtnRefreshNeededIndication}">
      </Button>
   </ToolBar>
   <!-- FilterSettings Toolbar   -->
   <ToolBar Name="toolBarFilterSettings" Visibility="{Binding Path=ToolsFilterSettingsVisibility}">
      <telerik:RadDataFilter Name="radDataFilterMain" local:DataFilterMarkupExtension.FilterItems="{Binding DefaultFilterItems}" local:DataFilterMarkupExtension.FilterDefinitions="{Binding DefaultFilterDescriptors}"/>
   </ToolBar>
</ToolBarTray>

I need to know when a filter definition has been changed, therefore I have registered the "CollectionChanged" and "ItemChanged" events on the FilterDescriptors collection. This is works fine, with one exception. If the user only changes a filter value, the filter definition is not changing until he hits enter of click a other control inside the DataFilter. But in my case he could click on a separate "Refresh' button inside the ToolBar. In this case the the "FilterDescriptors" do not change (no focus change as the value control still shows the focus border) and so the filter is showing something different than the "FilterDescriptors" are reporting.
My question is is there a know workaround for such a situation?

Many thanks
Thomas
Vlad
Telerik team
 answered on 04 Aug 2011
3 answers
209 views
Hi there,

I'm developing an app using WPF and MVVM, as well as the latest version of RadControls for WPF. I have a RadTabControl that contains my views, bound to an IEnumerable, and everything is working perfectly. However, when I add a new view to the IEnumerable, I'd like to give it focus.

Is there anyway I can achieve this functionality? I can only access the views via the Items property, but not the TabItem associated.

Thanks in advance!
Suresh
Top achievements
Rank 1
 answered on 03 Aug 2011
11 answers
215 views
Hello,

I have upgraded to the Q2 2011 version of the ScheduleView (I need the EnableSmallAppointmentRendering).  I have a requirement to drag from a listbox to the ScheduleView to create an appointment and this was all working using Q1 2011 SP1.  I corrected all the compile errors but the drag no longer starts on the listbox.
I checked the samples and noticed that the Drag Drop sample for the ScheduleView was commented out.  I uncommented it and get the same behavior (the drag never starts).

I also tried to set the RadDragAndDropManager.ExecutionMode to DragExecutionMode.Legacy and while that allows the drag to start, it does not appear that the ScheduleView recognizes the drop as no appointment is created.

Please help...I really must have both the drag/drop and the EnableSmallAppointmentRendering.

Thank you,
Michelle
Yana
Telerik team
 answered on 03 Aug 2011
2 answers
179 views
Hi,

I want to derive from Telerik.Windows.Controls.ScheduleView.Slot to add some extra information as IsHoliday to my special slots and than use this in my special slot style selector. My scheduler binds to an ObservableCollection<CSchedulerSlot> as SpecialSlotsSource.
But the "object item" which is passed to SelectStyle method of the selector is always of type Slot instead of my custom class CSchedulerSlot. The following code does not work, becuase i always get a an InvalidCastException.

public override Style SelectStyle(object item, DependencyObject container, ViewDefinitionBase activeViewDefinition)
        {
            FrameworkElement elem = container as FrameworkElement;
 
            if (elem == null)
                return base.SelectStyle(item, container, activeViewDefinition);
           
            CSchedulerSlot slot = (CSchedulerSlot)item;

What I'm doing wrong? Is there a workaround for this?

thanks in advance,

michael
Michael
Top achievements
Rank 1
 answered on 03 Aug 2011
4 answers
150 views
During Binding of  RichTextBox with HTMLDataProvider the indentation is not getting reflected .I am attaching a sample code for your reference
HtmlDataProvider ht = new HtmlDataProvider();
  ht.RichTextBox = RadRTB;
 ht.Html = "<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd><html xmlns=http://www.w3.org/1999/xhtml><head><meta http-equiv=Content-Type content=text/html; charset=utf-8 /><title>Untitled</title><style type=text/css>  .p_D6859706 { margin: 0px 0px 12px 200px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; ;font-size: 32px}   .s_E6FD2046 {padding-right: 100px; font-family: 'Verdana';font-style: Normal;font-weight: normal;color: #000000; }   </style></head><body><p class=p_D6859706><span class=s_E6FD2046>TEST</span></p></body></html>";
Ivailo Karamanolev
Telerik team
 answered on 03 Aug 2011
2 answers
183 views
Hi,

I'm trying to use the SeriesStyle property of the StackedSeriesDefinition to set  several properties for a lot graph but i get an XamlParseError :
Set property 'System.Windows.Style.TargetType' threw an exception
"'HorizontalStackedBarSeriesDefinition' type must derive from FrameworkElement or FrameworkContentElement."

Here is the xaml
<telerik:RadChart x:Name="chart7" ItemsSource="{Binding SampleData2}">
    <telerik:RadChart.SeriesMappings>
        <telerik:SeriesMapping LegendLabel="SUCCESS" CollectionIndex="0">
            <telerik:SeriesMapping.SeriesDefinition>
                <telerik:StackedBarSeriesDefinition SeriesItemLabelStyle="{StaticResource CustomSerieItemchart7}" SeriesStyle="{StaticResource MinimizedStackedBarSeriesDefinitionStyle}" />
            </telerik:SeriesMapping.SeriesDefinition>
....
<Style x:Uid="Style_26"
        x:Key="MinimizedStackedBarSeriesDefinitionStyle"
        TargetType="{x:Type telerik:HorizontalStackedBarSeriesDefinition}">
    <Setter x:Uid="Setter_216"
            Property="ShowItemLabels"
            Value="false" />
    <Setter x:Uid="Setter_217"
            Property="LabelSettings">
        <Setter.Value>
            <telerik:BarLabelSettings x:Uid="telerik:BarLabelSettings_1"
                                        LabelDisplayMode="Outside"
                                        ShowConnectors="False" />
        </Setter.Value>
    </Setter>
</Style>


Am i using the wrong property ?
Thanks
- Cedric -
Sia
Telerik team
 answered on 03 Aug 2011
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?