Telerik Forums
UI for WPF Forum
1 answer
143 views
It seems odd that the larger unit time scale is 'inside' the finer granularity scale:

From top to bottom, it seems like it would make more sense for the scales to be flipped.  Instead of progressing like this:

Hour
Day
Week
Month

Wouldn't it make more sense to be:

Month
Week
Day
Hour

This way the mouse over effects would be more intuitive and rather than double-clicking on the lower one to expand the selection a single click is all that would be needed.

Since this is not the default layout, is this achievable by altering the template or will code need to be changed?
Petar Kirov
Telerik team
 answered on 06 Nov 2012
1 answer
134 views

Hi,

 

I am using the radmap and placing  items onto the information layer using an example you provide. The items are an observable collection of the mapitem class:

 

Private items As New ObservableCollection(Of MapItem)()

 

This works well, but how would I get the best view for items created using this method where the items contain only the latitude and lonitude.

 

Regards,

Joe

 

 

<telerik:RadMap x:Name="radMap" DistanceUnit="Mile" ZoomLevel="6" DataContext="{Binding}" >

                            <telerik:InformationLayer Name="informationLayer">

                                <telerik:InformationLayer.ItemTemplate>

                                    <DataTemplate>

                                        <Border telerik:MapLayer.Location="{Binding Location}" x:Name="Border" ToolTip="{Binding DateofFix}"  DataContext="{Binding}">

                                            <telerik:MapLayer.HotSpot>

                                                <telerik:HotSpot X="0.5" Y="40" XUnits="Fraction" YUnits="InsetPixels" ElementName="path" />

                                            </telerik:MapLayer.HotSpot>

                                            <Grid>

                                                <Path x:Name="path" Stretch="None"

                              Stroke="{StaticResource MapPushpinStroke}"

                              StrokeThickness="4"

                              Data="M12,26.083 L16,26.083 13.916667,32.083 z M14,3 C20.075132,3 25,7.9248676 25,14 25,20.075132 20.075132,25 14,25 7.9248677,25 3,20.075132 3,14 3,7.9248676 7.9248677,3 14,3 z"

                              Fill="{Binding Background}">

                                                    <Path.Effect>

                                                        <telerik:IsFullTrust>

                                                            <![CDATA[

                                    <DropShadowEffect xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

                                        BlurRadius="7" ShadowDepth="1" />

                                    ]]>

                                                        </telerik:IsFullTrust>

                                                    </Path.Effect>

                                                </Path>

                                                <ContentPresenter Margin="0,40,0,0" Content="{Binding Content}" />

                                            </Grid>

                                        </Border>

                                    </DataTemplate>

                                </telerik:InformationLayer.ItemTemplate>

                            </telerik:InformationLayer>

                        </telerik:RadMap>

 

Andrey
Telerik team
 answered on 06 Nov 2012
4 answers
428 views
I have a RadDataForm with a number of DataFormDataField. They are bound to an object of a class that implements IDataErrorInfo, and when a field control validation, it's surrounded by a red box and an error message is displayed at the bottom of the form, prefixed by the DataFormDataField's label.

I have three problems:

  1. What if the label I want to display in the form isn't the label I want to display with the error message?  I have a couple of controls where I want the label to include a closing colon, and that results in two colons in the error message.
  2. What if the control is not a DataFormDataField? The error message for these seems to display the name of the property it is bound to - and that's usually not what I want.
  3. I have added BindingGroups to a number of GroupBoxes on the form, that return errors if something about the group is wrong. (None of the fields in the group have been selected, etc.) These display an error message that just has a colon, with no label name at all.

Seems like these are all different aspects of the same problem. Where does the form's error message display look, to get the names it includes, and how can I override this so as to use the labels I choose?

Ivan Ivanov
Telerik team
 answered on 06 Nov 2012
1 answer
179 views
I have a GanttView on a tab control.  After I set the task source for the GanttView I use ScrollingService.ScrollIntoView to scroll the first task in the list into view.  This works great if the GanttView's tab is currently selected and everything is visible.  If the GanttView is not visible it throws a NullReferenceException.  I tried to change the code to only scroll the first task into view on the IsVisibleChanged event.  I still get the same exception.  Is there something else I can check before using ScrollIntoView?

Below is the top of the stack trace for the exception: 
   at Telerik.Windows.Controls.RadGanttView.<.ctor>b__23()
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.get_ScrollService()
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.GetVerticalCoordinatesToShowIntoView(Object item)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.CalculateVerticalCoordinates(Object item, VerticalScrollPosition scrollPosition)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.ScrollToVerticalOffSet(Object item, VerticalScrollPosition scrollPosition, Boolean restricted)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.ScrollIntoView(Object item, ScrollSettings settings)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.ScrollIntoView(Object item)

George
Telerik team
 answered on 06 Nov 2012
1 answer
94 views
Hi,

If i create a wpf project using the following xaml definition, i'm able to move the "Soccer" treeviewitem before the "futsal" element. When I start draging my element, i can see the option that allow me to insert the item before the previous element.

        <telerik:RadTreeView x:Name="radTreeView" Grid.Row="2" IsDragDropEnabled="True"
                             IsDropPreviewLineEnabled="True">
            <telerik:RadTreeViewItem Header="Sport Categories">
                <telerik:RadTreeViewItem Header="Football">
                    <telerik:RadTreeViewItem Header="Futsal" />
                    <telerik:RadTreeViewItem Header="Soccer" />
                </telerik:RadTreeViewItem>
            </telerik:RadTreeViewItem>
        </telerik:RadTreeView>

If I take the previous control, and I add it in a word 2010 add-in,the option is not available. It doesn't matter where i put my mouse, the "before" or "option" command never show up. I can only insert item inside other item.

Any Ideas why i'm having this behavior? I will try to attach a sample project showing this behavior.

Best Regards,

P.S. It's seem there an issue ID associate with this problem: 1299 - TreeView: Built-in drag and drop does not work in ElementHost. Have you any workaround to suggest me to solve this behavior? 
Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2012
5 answers
209 views
I can't seem to get the hour interval to work the way I expect it to.

If I use either this:

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval />
</Rad:RadTimeBar.Intervals>

or this:

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval  IntervalSpans="1" />
</Rad:RadTimeBar.Intervals>

I am unable to zoom into the 'hourly mode' (see first screenshot).  However 

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval  IntervalSpans="1,8" />
</Rad:RadTimeBar.Intervals>

allows me to get into the hourly mode but shows the 8 hour interval (which I don't really want). Am I doing something wrong?
The rest of the xaml ( mPlotsGrid is populated with RadLinearSparklines at runtime):
                  <Rad:RadTimeBar Name="mTimeBar"
                                  PeriodStart="{Binding Path=BeginHistory, Mode=TwoWay}"
                                  PeriodEnd="{Binding Path=EndHistory, Mode=TwoWay}"
                                  VisiblePeriodStart="{Binding Path=BeginView, Mode=TwoWay}"
                                  VisiblePeriodEnd="{Binding Path=EndView, Mode=TwoWay}"
                                  SelectionStart="{Binding Path=BeginDetail, Mode=TwoWay}"
                                  SelectionEnd="{Binding Path=EndDetail, Mode=TwoWay}"
                                  IsSnapToIntervalEnabled="True"
                                  MinSelectionRange="00:01:00"
                                  Margin="5">
                     <Rad:RadTimeBar.Intervals>
                        <Rad:MonthInterval />
                        <Rad:WeekInterval />
                        <Rad:DayInterval />
                        <Rad:HourInterval  IntervalSpans="1,8" />
                     </Rad:RadTimeBar.Intervals>
                     <Grid x:Name="mPlotsGrid" />
                  </Rad:RadTimeBar>


Tsvetie
Telerik team
 answered on 06 Nov 2012
1 answer
123 views
I have just downloaded the trial to asses the suitability of the control for an upcoming project.

I am trying to get the load on demand working.
When I try to follow the example the event is fired but on the screen a spinny arrow icon just goes round and round.

Could you please advise.

xaml:

<telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="18,24,0,0" Name="radTreeView1" VerticalAlignment="Top" Width="150" IsLoadOnDemandEnabled="True" LoadOnDemand="OnLoadOnDemand"/>

cs:
private void OnLoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e)

{

 

RadTreeViewItem item = e.OriginalSource as RadTreeViewItem;

 

// Adding child items

 

RadTreeViewItem product = new RadTreeViewItem();

product.Header =

 

"Product1.1";

item.Items.Add(product);

product =

 

new RadTreeViewItem();

product.Header =

 

"Product1.1";

item.Items.Add(product);

}


Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2012
1 answer
145 views
Is there a way to change the CloseButtonContainer.Background or the Background of the PART_Close ToggleButton without overwriting the whole template? We are using the Transparent Theme. I already changed the CalendarStyle and the ClockStyle to a usable Background color. But the Close-Button at the bottom is hardly visible. I don't want to put over 1500 extra lines of Template-Code to my Project. Unfortunately the PART_DropDownButton, CloseButtonContainer and the PART_Close Button itself are not accesible from a simple Style. I tried to set a Ressource to the DateTimePicker overwriting all RadToggleButtonStyles, but as seen in the Template the Part_Close Button uses its own Style and Template.

  <Style TargetType="telerik:RadCalendar" x:Key="CalendarBackStyle">
    <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" />
  </Style>
  
  <Style TargetType="telerik:RadClock" x:Key="ClockBackStyle">
    <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" />
  </Style>
  
  <Style TargetType="telerik:RadDateTimePicker">
    <Setter Property="CalendarStyle" Value="{StaticResource CalendarBackStyle}" />
    <Setter Property="ClockStyle" Value="{StaticResource ClockBackStyle}" />
  </Style>
  
<!--Overwrite Resources, didn't work-->
<telerik:RadDateTimePicker>
      <telerik:RadDateTimePicker.Resources>
           <Style TargetType="telerik:RadDropDownButton">
             <Setter Property="Background" Value="Lime" />
            </Style>
       </telerik:RadDateTimePicker.Resources>
</telerik:RadDateTimePicker>
 
<!--This works but doesn't help because all borders are styled-->
<telerik:RadDateTimePicker>
      <telerik:RadDateTimePicker.Resources>
           <Style TargetType="Border">
             <Setter Property="Background" Value="Lime" />
            </Style>
       </telerik:RadDateTimePicker.Resources>
</telerik:RadDateTimePicker>

Is there a simple solution?
Masha
Telerik team
 answered on 06 Nov 2012
1 answer
157 views
Hi Team,

How do we can export the RadRichTextBox content to PDF document with track changes.

Enclosed the sample pdf report image which is generated using office 2007.
Kammen
Telerik team
 answered on 06 Nov 2012
4 answers
132 views
Using RadDocking I am trying to create an MDI-style app with many Windows using RadGridViews to edit data.
Instead of using child Windows I try to dynamically create RadPanes with UserControls  from a Menu:

Dim p As New RadPane
p.Content = New SomeUserControl
paneGroup.AddItem(p, Docking.DockPosition.Center)


When the user tries to close the RadPane and the data is dirty I want to offer a choice "Discard changes?".
With Windows I would use the Closing event for this.
How can I do this with a RadPane?
There seems to be no PreviewClose event for RadPane even though they have a close button. UserControls do not have a Closing event.

Or is there a better way to create an MDI-Stlye UI?
As there is no example, I am not even sure if it is a good idea to create RadPanes with UserControls. One cannot put Windows on Panes, but maybe there is some other Control to host the editing Controls we should use.
Peter
Top achievements
Rank 1
 answered on 06 Nov 2012
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?