Telerik Forums
UI for WPF Forum
1 answer
186 views
Hello,

I've got a domain model info class, basically some get-only properties on an INotifyPropertyChanged class. I set the DataContext to an instance of this, but nothing is happening for the RadPropertyGrid. No properties show up.

Question: do the properties need to be settable? Or otherwise have ReadOnlyAttribute attached to them?

Thank ye...

Best regards.
Michael
Top achievements
Rank 1
 answered on 28 Mar 2014
6 answers
182 views

Hi,

I had a separate radpane xaml class, it would dynamically generated radpane if it needs.

My problem is when I bound HeaderName to Header without HeaderTemplate code(where I commented), it is working fine to show headername only. But if I uncommented HeaderTemplate code, I only got image show in the UI, no text.
Below is my code:

<telerik:RadPane x:Class="TemplatorWPF.LoadSource" x:Name="RadPaneSource"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:local="clr-namespace:_ViewModel;assembly=_ViewModel"
             mc:Ignorable="d" Header="{Binding HeaderName}"
             d:DesignHeight="300" d:DesignWidth="300">
        <!--<telerik:RadPane.HeaderTemplate>
            <DataTemplate>
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Resources/templator - level 1.png" />
                    <TextBlock Text="{Binding HeaderName}"/>
                </StackPanel>
            </DataTemplate>
      </telerik:RadPane.HeaderTemplate>-->
    <telerik:RadPane.Resources>

 

 

 

 

Kalin
Telerik team
 answered on 28 Mar 2014
3 answers
315 views
Hello,

I've got one or more File View Models, I open them through the command pattern and they land in a "Workspace" view model. It has a Files properties that is an observable collection. There is also the concept of Workspace opened documents and/or ActiveDocument, which should cause the corresponding pane to land in a default DocumentHost and/or activate.

Anyhow, as far as I can figure, I need to be inheriting from RadPane in order to cook up any document or tool windows. Which themselves either aggregate our custom UserControl or themselves have the XAML specified.

Is there a tutorial I can study along these lines?

Thank you.

Best regards.
Kalin
Telerik team
 answered on 28 Mar 2014
1 answer
143 views
Hello,
when you leave the mouse cursor over the Minimize button in the Office2013 theme, the tooltip is placed under the ribbon and seems to contain additional empty lines.
Patrick
Kiril Vandov
Telerik team
 answered on 28 Mar 2014
1 answer
1.6K+ views
If I type a letter it goes to the event, but not the arrow keys.

KeyUp does catch the arrow keys, so that's what I'm going to use


I'm basically doing this to put things in edit mode on the arrow up and arrow down:
private void handleArrows(object sender, KeyEventArgs e)
{
    RadGridView rgv = (RadGridView)sender;
    if (e.Key == Key.Down)
    {
        RadGridViewCommands.MoveDown.Execute(null);
        rgv.BeginEdit();
        e.Handled = true;
    }
    if (e.Key == Key.Up)
    {
         RadGridViewCommands.MoveUp.Execute(null);
        rgv.BeginEdit();
        e.Handled = true;
    }
}
Yoan
Telerik team
 answered on 28 Mar 2014
3 answers
136 views
Hello,
I'm using MVVM pattern and a behavior to load hierarchical data from a radgridview... at the main row expansion I call a webservice to fetch data, after some operation I need to reload the inner gridview..... I don't know how to clean the content just loaded since if I do a

  parentGrid.IsExpanded = false;
  parentGrid.IsExpanded = true;

it doesn't make the call since it has the data already loaded...
Thanks in advance

Paolo
Dimitrina
Telerik team
 answered on 28 Mar 2014
11 answers
373 views
Hi,

I am using RadDateTimePicker control for my WPF app.

On clicking the calendar icon next to the data text box, the calendar shows up and I can select a date.
But when I hit next/previous to change month, the Calendar disappears and even after hitting the little calendar icon, the calendar doesn't show up ever again.

Here's the code that is being used on my WPF screen:

<telerik:RadDateTimePicker x:Name="editableStartDate" Width="100" Margin="0,1" IsTooltipEnabled="False" InputMode="DatePicker" SelectedValue="{Binding StartDate, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="26" Grid.Row="2" Grid.Column="1" />

Am I doing something wrong here ? Please let me know.

thx,
Ashish


Hassan
Top achievements
Rank 1
 answered on 28 Mar 2014
4 answers
439 views
I have RadCartisianChart on a Window and on a button click I would like to add a vertical line at a particular channel (x-axis value) and label the line.  Here is the code for my button click event.

Please let me know if you know why the CartsianCustomAnnotation is now being displayed.  I've also provided a link to a zipped stripped-down example C# WPF project which demonstrates this: Telerik ChartView CartesianCusomAnnotation not display

01.private void Button_OnClick(object sender, RoutedEventArgs e)
02.    {
03.      Random rnd = new Random();
04.      int curChannel = rnd.Next(1, 1000);
05. 
06.      CartesianGridLineAnnotation myLineAnnotation = new CartesianGridLineAnnotation();
07.      myLineAnnotation.Axis = radCartesianChart1.HorizontalAxis;
08.      myLineAnnotation.Value = curChannel;
09.      
10.      myLineAnnotation.Stroke = System.Windows.Media.Brushes.Fuchsia;
11.      radCartesianChart1.Annotations.Add(myLineAnnotation);
12. 
13.      var newKLMLabel = new CartesianCustomAnnotation();
14.      newKLMLabel.HorizontalAxis = radCartesianChart1.HorizontalAxis;
15.      newKLMLabel.VerticalAxis = radCartesianChart1.VerticalAxis;
16. 
17.      var border = new Border();
18.      border.CornerRadius = new CornerRadius(4);
19.      border.Background = Brushes.Gray;
20.      border.Opacity = 0.9;
21. 
22.      //var content = new TextBlock();
23.      var content = new Label();
24.      content.Content = "Channel " + curChannel.ToString();
25.      border.Child = content;
26. 
27.      newKLMLabel.Content = border;
28.      newKLMLabel.HorizontalValue = curChannel;
29.      newKLMLabel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
30.      newKLMLabel.VerticalValue = _chartVM.ParticleEdsSpectrum[curChannel].Counts;
31.       
32.      newKLMLabel.Tag = "klmlabel";
33. 
34.      newKLMLabel.Visibility = Visibility.Visible;
35. 
36.      radCartesianChart1.Annotations.Add(newKLMLabel);
37. 
38.    }
David
Top achievements
Rank 1
 answered on 27 Mar 2014
2 answers
525 views
Just start working with RadGridView and faced this issue in Design time, in runtime everything is working fine. For example this simple scenario from documentation.

All other control work fine both in design time and runtime.
I'm using Visual studio 2012 Update 3. Telerik 2013.2.611.45.Trial

<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="MyAppNameHere.Desktop.View.UsersControl"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:viewModel="clr-namespace:Toto.Desktop.ViewModel"
             mc:Ignorable="d" d:DataContext="{d:DesignInstance Type=viewModel:UsersVm}"
             d:DesignHeight="300" d:DesignWidth="600">
 
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadGridView x:Name="radGridView" />
    </Grid>
</UserControl>

Error information:

System.NullReferenceException
Object reference not set to an instance of an object.
   at Microsoft.Expression.WpfPlatform.WpfPlatformMetadata.ShouldTrimSurroundingWhiteSpace(IType typeId)
   at Microsoft.Expression.Markup.XamlParser.ParseContent(XamlParserContext parserContext, IDocumentNodeReference
...............

or sometimes this error:

System.ArgumentException
Property 'System.Object ItemsSource' is not defined for type 'Telerik.Windows.Controls.RadGridView'
   at System.Linq.Expressions.Expression.Property(Expression expression, PropertyInfo property)
   at System.Linq.Expressions.Expression.Property(Expression expression, MethodInfo propertyAccessor)
   at Telerik.Windows.Controls.GridView.Design.GridViewDataControlMetadata.AddDefaultAttributes(AttributeCallbackBuilder builder)
..........


Kind regards, Denis
Brian
Top achievements
Rank 1
 answered on 27 Mar 2014
5 answers
208 views
Hello i have an interface with Raddocking component. It saves and load layout ok, load the content for each radpane after loading...

But i have a problem. The content of each pane have a UserControl with a WindowFormHost inside.  Only when radpane go to floating, the content appears in blank. I try to add the content again when the radpane go to float, but with no result.

Any ideas?

Thanks in advance.
Steve
Top achievements
Rank 1
 answered on 27 Mar 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
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?