Telerik Forums
UI for WPF Forum
5 answers
308 views
I've spent the last day tracking down a weird bug. I copy/pasted an existing PropertyDefinition into a new View but it just did not work. The values were not displaying. I finally tracked it down.

My definitions are:

<!-- This one works  -->
<PropertyGrid:PropertyDefinition Binding="{Binding Stock.Name}" GroupName="Stock" DisplayName="Name" OrderIndex="9" />
<!-- This one does not show any text, even the FallbackValue when I intentionally mistype the binding path  -->
<PropertyGrid:PropertyDefinition Binding="{Binding Stock.Name}" GroupName="Stock" DisplayName="Name" OrderIndex="10">
  <PropertyGrid:PropertyDefinition.EditorTemplate>
    <DataTemplate>
      <TextBlock Text="{Binding Stock.Name, TargetNullValue='The value is null', FallbackValue='Problem getting text'}" />
    </DataTemplate>
  </PropertyGrid:PropertyDefinition.EditorTemplate>
</PropertyGrid:PropertyDefinition>

As you can see in the comments the controls are basically identical, the only difference is the 2nd one has a DataTemplate with a TextBlock in it. This TextBlock is completely empty.

I finally found the one difference between my views that fixed the problem.

<UserControl.Resources>
  <Style TargetType="Controls2:RadPropertyGrid">
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
  </Style>
</UserControl.Resources>

I'm just wondering why this matters. Is it a bug? Did I leave something important out and this triggers it? Adding the above property directly to the control does not fix it - only when we use a Style.

Note that the controls in the DataTemplate will render, e.g. if I set Background="Red", but the Text will not display even if it is hard coded to a string. 
Dimitrina
Telerik team
 answered on 24 Jun 2014
2 answers
116 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
102 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
179 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
194 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
161 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
130 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
164 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
138 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
122 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
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?