Telerik Forums
UI for WPF Forum
2 answers
99 views
I want To Create dynamic Appointment list and  dynamic Source Type in C# for my ScheduleView ,,
However: I already add dynamic Appointment and Resource with Resource Type ,,

But when i try to Assign resource-type to the Appointment I cant get it.

   public ObservableCollection<Appointment> Appointments { get; set; }
    public ObservableCollection<ResourceType> ResourceTypes { get; set; }



    private void MakeResources()
        {
            ResourceTypes = new ObservableCollection<ResourceType>();
            ResourceType rt = new ResourceType("Location");
            rt.Resources.Add(new Resource("Hall A", "Location"));
            rt.Resources.Add(new Resource("Hall B", "Location"));
            rt.Resources.Add(new Resource("Hall C", "Location"));
            ResourceTypes.Add(rt);

        TestScheduleView.ResourceTypesSource=ResourceTypes 
         }


   private void MakeAppointments()
        {
            Appointments = new ObservableCollection<Appointment>();
            for ( int i = 0; i < 10; i++)
            {
                Appointments.Add(new Appointment()
                {
                    Subject = "Appointment " + i.ToString(),
                    Start = DateTime.Now.AddHours(i),
                    End = DateTime.Now.AddHours(i).AddMinutes(30)

                });
            }
      AppointmentsSource.Source=Appointments 
        }




The Appointement List is Appear in ShedulView but How I can add them under The 
resource Type which I create?

I try to use
Abdulaziz
Top achievements
Rank 1
 answered on 24 Jun 2014
2 answers
83 views
I upgraded to the latest release (was on the second to the latest before) and now my window has this odd border. The border is in a RadRibbonWindow and it doesn't affect the RadRibbonView (as you can see from the attached).

I've set several properties that seemed likely candidates, but nothing has worked. I quickly realized I could waste a lot of time on this. I hoped that y'all would know since this is clearly a change.

Anthony
Top achievements
Rank 1
 answered on 23 Jun 2014
2 answers
157 views
Hello,
I need to highlight some calendar selected dates with red colour and some with grey. Could you please advise how it's easier to do with radcalendar?

Thanks
Alex
Alexander
Top achievements
Rank 1
 answered on 23 Jun 2014
1 answer
163 views
I'd like to use the RadColorPicker for a RadRibbon. The
button itself should appear as a large
dropdown button in the ribbon.

I can't seem to get the color picer to appear as a large
dropdownbutton. I tried the following two approaches which doesn't succeed.

How do I get the colorpicker to appear as a RadRibbonDropDownButton
with the property Size="Large"?

<telerik:RadRibbonGroup Header="Test">
                    <!-- Combine RadRibbonDropDown and RadColorPicker? -->
                    <telerik:RadRibbonDropDownButton LargeImage="/Images/Icons/32/CellBoxBorder.png" Size="Large" Text="Color Picker">
                        <telerik:RadRibbonDropDownButton.DropDownContent>
                            <telerik:RadColorPicker HeaderPalette="Office" AutomaticColor="White" />
                        </telerik:RadRibbonDropDownButton.DropDownContent>
                    </telerik:RadRibbonDropDownButton>
                    <!-- Or use RadColorPicker directly? -->
                    <telerik:RadColorPicker HeaderPalette="Office" AutomaticColor="White" />
                </telerik:RadRibbonGroup>
Lasse
Top achievements
Rank 1
 answered on 23 Jun 2014
3 answers
139 views
Is it possible to customize the table borders dialog in any
way? I'd like to use the dialog but limit the number of colours and types of
borders the user should be able to set.
Lasse
Top achievements
Rank 1
 answered on 23 Jun 2014
1 answer
114 views
Say I've got 100 points at one point per day. If I plot those points on a DateTimeContinuousAxis with MajorStep set to 1 and MajorStepUnit set to Day, what is the expected behavior if I set MaximumTicks to "10".  I get 100 tick marks (one for each day) regardless of whether MaximumTicks is set to 10 or 1000. 

Thanks - Mitch
Martin Ivanov
Telerik team
 answered on 23 Jun 2014
1 answer
117 views
After moving a tile around, the opacity setting seems to be reset to 1.0. Please see this simple example. Did I miss something obvious?

<Window x:Class="TileTest.MainWindow"
        Title="MainWindow" Height="350" Width="525"
        Background="Orange">
    <Grid>
        <telerik:RadTileView RowsCount="2" Margin="40">
            <telerik:RadTileViewItem Header="Item1" Background="Black" Opacity="0.2">
                <TextBlock Text="Item2 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item2" Background="Black" Opacity="0.3">
                <TextBlock Text="Item2 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item3" Background="Black" Opacity="0.4">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item4" Background="Black" Opacity="0.5">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item5" Background="Black" Opacity="0.6">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item6" Background="Black" Opacity="0.7">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item7" Background="Black" Opacity="1">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
        </telerik:RadTileView>
    </Grid>
</Window>
Lance | Senior Manager Technical Support
Telerik team
 answered on 23 Jun 2014
3 answers
102 views
Hi,

I want to change PropertyGrid font-family, Code like this:

<telerik:RadPropertyGrid Name="squidProperties" Grid.Row="1" RenderMode="Flat"           AutoGeneratePropertyDefinitions="False"
                        DescriptionPanelVisibility="Collapsed"                                  FontFamily="Microsoft YaHei" Item="{Binding testtest}" LabelColumnWidth="100"          Visibility="{Binding test}" />


it's not working.

The textblock's(PART_FieldLabelN) font-family is still Segoe UI.
Yoan
Telerik team
 answered on 23 Jun 2014
1 answer
108 views
Hi, 
Is it possible to disable spell checking for code blocks within a rad rich text box ( at the same time have spell check enabled for outside the blocks )
Thanks
- Chris
Petya
Telerik team
 answered on 23 Jun 2014
1 answer
275 views
I have some properties that use a DataFormDataField (will be a text field with a label) and the label will be very long so it needs to wrap to a new line.

So far I have been unable to do. Tried to build a template for the label on it, but cannot find the element needed to set this value.

What is the correct way to do this?
Dimitrina
Telerik team
 answered on 23 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?