Telerik Forums
UI for WPF Forum
2 answers
333 views
Hi,

This looks like a great control. Well done for creating it.

Just working through the Getting Started tutorial http://www.telerik.com/help/wpf/radganttview-getting-started.html , however, when I run it the Collection isn't binding to the control. It doesn't display the Tasks as shown. Could you please post the complete C# code for me to check?
Thanks.
Al
Alan
Top achievements
Rank 1
Iron
 answered on 24 Feb 2012
5 answers
282 views
I have a collection of custom appointment objects bound to my scheduleView.  I created a datatemplate for the custom tooltip and applied to the tooltiptemplate property, however, the default tooltip is still displaying and not my custom data template.
<telerik:RadScheduleView x:Name="_scheduleView" Margin="2,0,0,0"
                                  RenderTransformOrigin="0.5,0.5"
                                  SelectedAppointment="{Binding SelectedStreamingEpisodeAppointment, Mode=TwoWay}"
                                  AppointmentsSource="{Binding StreamingEpisodeAppointments}"
                                  telerik:StyleManager.Theme="Windows7"
                                  SnapAppointments="True"
                                  MinAppointmentWidth="60" ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}">
              
             <telerik:RadScheduleView.RenderTransform>
                 <TransformGroup>
                     <ScaleTransform />
                     <SkewTransform />
                     <RotateTransform />
                     <TranslateTransform />
                 </TransformGroup>
             </telerik:RadScheduleView.RenderTransform>
             <telerik:RadScheduleView.ViewDefinitions>
                                     <telerik:TimelineViewDefinition  MinorTickLength="1day"
                                                  MajorTickLength="1day"
                                                  TimerulerGroupStringFormat="{}{0:MM/dd/yyyy}"
                                                  MinTimeRulerExtent="1" MaxTimeRulerExtent="Infinity"
                     StretchAppointments="True" StretchGroupHeaders="True" />
             </telerik:RadScheduleView.ViewDefinitions>
             <telerik:RadScheduleView.GroupDescriptionsSource>
                 <telerik:GroupDescriptionCollection>
                     <telerik:DateGroupDescription/>
                 </telerik:GroupDescriptionCollection>
             </telerik:RadScheduleView.GroupDescriptionsSource>
 
         </telerik:RadScheduleView>

<DataTemplate x:Key="AppointmentToolTipTemplate">
               <Grid MaxWidth="300">
                   <Grid.ColumnDefinitions>
                       <ColumnDefinition Width="43" />
                       <ColumnDefinition />
                   </Grid.ColumnDefinitions>
                   <Grid.RowDefinitions>
                       <RowDefinition />
                       <RowDefinition />
                       <RowDefinition />
                   </Grid.RowDefinitions>
                   <TextBlock Text="{Binding Subject}" Grid.ColumnSpan="2" TextWrapping="Wrap" Margin="5 8 4 3" FontWeight="Bold" />
                   <Image Grid.Row="1"  VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5 5 0 0" Source="/Fox.Fbc.Vps.PL.Resources;component/Images/AcrossTime.png" Width="28" Height="29" />
                   <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" Margin="0 5 0 0">
                       <StackPanel Orientation="Horizontal" Margin="0 0 0 0">
                           <TextBlock Text="{Binding Start, StringFormat='hh:mm tt'}" TextWrapping="Wrap" FontSize="10" />
                           <TextBlock Text=" - " FontSize="10" />
                           <TextBlock Text="{Binding End, StringFormat='hh:mm tt'}" TextWrapping="Wrap" FontSize="10" />
                       </StackPanel>
                       <TextBlock Text="{Binding Start, StringFormat='dddd dd MMM yyyy'}" Margin="0 3" FontSize="10" />
                   </StackPanel>
                   <TextBlock Grid.Row="2" Grid.ColumnSpan="2" Text="{Binding Body}" Margin="5 3 5 8" TextWrapping="Wrap"  />
               </Grid>
           </DataTemplate>

Dani
Telerik team
 answered on 24 Feb 2012
3 answers
91 views
Hi

I'd like to add some hidden data to a RadDocument of a RadRichTextBox.
Our Documents are based on template documents - when creating a new
doc I'd like to add the name of the template in a hidden place inside
the Document.


How can I do it?

Grettings,
Chris
Martin Ivanov
Telerik team
 answered on 24 Feb 2012
3 answers
139 views
Hi

I'm slowly battling with this, so thought I'd ask in case anyone can shed any light on it more quickly than my efforts!

I'm trying to use a Custom UI Layer to implement highlighting of bookmarks.  Using the demos, I can see how to create rectangles for highlighting, but I'm struggling with how to highlight the right areas if the bookmarked text flows over more than one line.

Presumably, I need to be able to find if it runs over more than one line, and get the dimensions from the start to the end and create a rectangle for that.

Then get the dimensions from the start of the next line until the first of 1. the end of the bookmark or 2. the end of the line.

Repeat until the end is found (or the UILayerUpdateContext runs out of visible boxes).

Thanks for any help!  The documentation is a bit thin in this area...

Charlie
Martin Ivanov
Telerik team
 answered on 24 Feb 2012
1 answer
60 views
Hello i used in Q3 to init the page and default settings following codesnippet.
ChangePageSize is not recognized and also ChangeSectionMargin is now not a member of richtextbox?
How can i set it in code behind like in Q3?
Thanks ...
'Default ---------------------
.FontFamily = New FontFamily("Times New Roman")
.FontSize = Unit.PointToDip(12)
.FontStyle = FontStyles.Normal
.FontWeight = FontWeights.Normal
'Zeilenabstand ---------------
.ChangeParagraphSpacingAfter(0)
.ChangeParagraphSpacingBefore(0)
.ChangeParagraphLineSpacing(1)
'Seitenränder Normal ---------
.Document.SectionDefaultPageMargin = New Telerik.Windows.Documents.Layout.Padding(96, 96, 96, 96)
.ChangeSectionMargin(New Telerik.Windows.Documents.Layout.Padding(96, 96, 96, 96))
'A4 --------------------------
.ChangePageSize(New SizeF(793, 1056))
'Set -------------------------
.DocumentInheritsDefaultStyleSettings = True
.UpdateEditorLayout()
Alex
Telerik team
 answered on 24 Feb 2012
0 answers
116 views
Helloo,

I've just started using radGridView. I have been able to bind it to a dataset and populate it.
Now i want to extend the features.
I want to insert/update/delete directly in the gridview. I'm sure it must be possible to do this, but i can't find any tutorial which can guide me to do this..

Can anyone provide some links or guidance to do this.

Regards,
SH
Shaimaa
Top achievements
Rank 1
 asked on 24 Feb 2012
2 answers
64 views

We are using assemblies "RadEditorSharePoint of  Version=4.4.1.0 and  RadEditor.Net2 of  Version=7.2.1.0" in our application build upon MOSS 2007.

When using the rich content editor :

  • We are adding a table in it .Using the table properties we are not able to set the properties to all the cells in it.

Praveena
Top achievements
Rank 1
 answered on 24 Feb 2012
1 answer
197 views
I've got a grid that has a group descriptor defined in xaml. I've also added an aggregate to the column that is being grouped to show the count. When the grid loads, the aggregate isn't showing up in the group header. Only when I ungroup, then group again does it show the aggregate. Here is my xaml...stripped for brevity.

<telerik:RadGridView AutoExpandGroups="True" AutoGenerateColumns="False" x:Name="UserGrid"
      ShowInsertRow="False" SelectionMode="Single" IsReadOnly="True" ItemsSource="{Binding AllUsers}" >
      <telerik:RadGridView.GroupDescriptors>
          <telerik:GroupDescriptor Member="Division.Name" SortDirection="Ascending" DisplayContent="Division" />
      </telerik:RadGridView.GroupDescriptors>
        <telerik:RadGridView.GroupHeaderTemplate>
             <DataTemplate>
                 <TextBlock Text="{Binding Group.Key}" FontWeight="Bold" MinWidth="100" />
             </DataTemplate>
        </telerik:RadGridView.GroupHeaderTemplate>
      <telerik:RadGridView.Columns>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name" IsGroupable="False" />
          <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name" IsGroupable="False" />
          <telerik:GridViewDataColumn DataMemberBinding="{Binding Division.Name}" Header="Division">
             <telerik:GridViewDataColumn.AggregateFunctions>
               <telerik:CountFunction Caption="Count:" />
             </telerik:GridViewDataColumn.AggregateFunctions>
          </telerik:GridViewDataColumn>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding Active}" Header="Active" />
          <telerik:GridViewDataColumn DataMemberBinding="{Binding EmailAddress}" Header="Email" IsGroupable="False" CellTemplateSelector="{StaticResource EmailTemplateSelector}" />                   
       </telerik:RadGridView.Columns>
</telerik:RadGridView>
Rayne
Top achievements
Rank 1
 answered on 23 Feb 2012
1 answer
86 views
Is there any way I can turn the permission range highlighting off?  I've tried removing various DefaultUILayers without success.

It also appears that permission range highlighting is above the spell checker highlighting - if I can't turn it off, can I rectify this issue?
Charles
Top achievements
Rank 1
 answered on 23 Feb 2012
2 answers
83 views

Hello

Is it possible to limit the number of characters in a regular column

Without cell Template?

Best regards

Ehud

Avi Avni
Top achievements
Rank 1
 answered on 23 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?