Telerik Forums
UI for WPF Forum
2 answers
190 views
I'm looking to add custom text for the watermark when no value is present. 
Seems there is some support for the DateTime picker but not the TimePicker?

Thanks
RobDog888
Top achievements
Rank 1
 answered on 18 Sep 2013
0 answers
123 views
Hi,
I'm trying to convert the HTML format that has an image to the RTF format:
I use the following codes to get a string of RTF and then bind it

Dim content  As String = "<img src='c:\image1.png'/>"
Dim htmlProvider As New HtmlFormatProvider()  
Dim raddoc As RadDocument = htmlProvider.Import(content)
Dim rtfProvider As New RtfFormatProvider()
Dim rtf As String = rtfProvider.Export(raddoc)

XMAL 
<telerikRTF:RtfDataProvider Rtf="{Binding rtf}" RichTextBox="{Binding ElementName=rrtb}" />
<telerik:RadRichTextBox Grid.Row="1" Name="rrtb" />
Note the xmal code is referred from this thread http://www.telerik.com/community/forums/wpf/richtextbox/create-an-instance-of-richtextbox.aspx

So what I get when running the application is the red X image (see attached file).
Could you please advise or give me basic sample of code to address this problem?

Thanks,
Brew
Brew Hutch
Top achievements
Rank 1
 asked on 18 Sep 2013
1 answer
350 views
Hi,

I'm rather new to the ChartView component, so bear with me.

I have a RadCartesianChart that displays runtime values (a double and a DateTime essentially) on a LineSeries and is refreshed roughly once a second. The horizontal axis is a DateTimeCategoricalAxis and the vertical axis is a LinearAxis. The application is set up so that the user can display values from the last 30 seconds, 1 minute, 5 minutes or 30 minutes. However, as far as I can see, there is no way to force the chart to display a set time span, e.g. from DateTime.Now-30 seconds to DateTime.Now. Rather, the chart renders the horizontal axis according to what's in the data.

To accommodate this, I have had to implement logic that pushes and pops values from the databound ItemsSource so that it contains roughly the amount of values that I want to plot (30 seconds, 1 minute etc). However, as there is no guarantee that values come in at a fixed interval and "on the second", this results in the horizontal axis and chart as a whole "shifting about" a bit. It's also somewhat computationally intensive.

Is there any way to archive what I'm after using the RadCartesianChart?

Best regards,
Rickard
Petar Kirov
Telerik team
 answered on 18 Sep 2013
3 answers
140 views

Helooo,

I have RadBook that contain richtextbox that I want to Bind data to,

My Book Data Template is :

<DataTemplate x:Key  ="LeftPageTemplate"   >
           <StackPanel Margin="10" Background="Azure" >
           <Viewbox Name="ViewSura" Stretch="Fill"        StretchDirection="Both"          FlowDirection="RightToLeft"
                 HorizontalAlignment="Left" Width="450"  Margin="525,21,0,0" Height="600" VerticalAlignment="Top">
               <RichTextBox FontSize="22" MaxWidth ="450" MaxHeight ="600"   Name="richTextBox1"
                            Document ="{Binding FLD}" VerticalAlignment="Top"
                            Background="Brown"  FontStretch="Condensed"
                            FontFamily="KFGQPC Uthmanic Script HAFS" >
                   <RichTextBox.Resources>
                       <Style TargetType="Run">
                           <EventSetter Event="MouseLeftButtonDown"  />
                       </Style>
                   </RichTextBox.Resources>
               </RichTextBox >
           </Viewbox>
       </StackPanel>
       </DataTemplate>

In in my code Page XML File:

<Window.Resources>
       <ResourceDictionary>
           <ResourceDictionary.MergedDictionaries>
               <ResourceDictionary Source="Dictionary1.xaml"></ResourceDictionary>
           </ResourceDictionary.MergedDictionaries>
       </ResourceDictionary>
   </Window.Resources>
   <Grid>
   <telerik:RadBook x:Name="RadBook1"
                    Margin="50"
                    LeftPageTemplate="{StaticResource LeftPageTemplate}"
                    RightPageTemplate="{StaticResource RightPageTemplate}" />

In in my C# code I did this:

ObservableCollection<RTBI > MyPages= new ObservableCollection<RTBI>();
        
          for (int i = 0; i < 10; i = i + 1)
          {
              ReadSura rs = new ReadSura();
 
              MyPages.Add(new RTBI()
              {
                  FLD = rs.readsuratxt(i + 1) //  This is to get the Flow document ..
              });
          }
          RadBook1.ItemsSource = MyPages ;
      }

Put I get the error for binding, please what am I doing wrong. Please see the attached image for error details.

Please Help.

Regards...


o
Top achievements
Rank 2
 answered on 18 Sep 2013
0 answers
179 views
The Visual Studio 2010 Design View would not load after I attempted to install a WPF hotfix.

I was able to resolve the issue this way: 
  • Click the Visual Studio menu choice:   Telerik > VS Extensions Options
  • Select "WPF" in the navigation tree on the left and then checked "Include Internal builds in Latest Version update and retrieval". Pressed OK to accept changes and close the dialog.
  • Close Visual Studio
  • Start Visual Studio which caused a notice of the latest internal build is available for download.
  • Downloaded latest internal build. 
  • Opened my project.
  • Used the Telerik > Rad Controls for WPF > Upgrade Wizard to select and  apply the latest internal build. 

~Danny
www.BlueCanyonSoftware.com 
Danny
Top achievements
Rank 2
 asked on 18 Sep 2013
1 answer
107 views
I can not get the row.IsExpandable property to keep it's setting after _RowLoaded event is done firing.  This is the last event that is fired before rendering the screen and handing control over to the user.  I am setting the IsExpandable property to either true or false in the _RowLoaded event.  Even though I am setting the IsExpandable property to false, the toggle button is still visible.  I need it to be collapsed 95% of the time.  Here is my RowLoaded method:

private void fleetGrid_RowLoaded(object sender, RowLoadedEventArgs e)
 {
       var row = e.Row as GridViewRow;
 
       if (row != null)
       {
              Record recItem = e.Row.Item as Record;
              row.IsExpandable = recItem.RequiredFields.ShowToggleOnGrid;
       }
 
}


I am populating the columns in this RadGridView dynamically, and I am using a GridViewToggleRowDetailsColumn along with GridViewDataColumns for the column types.  I only want this toggle button to show if certain properties of the row meet certain conditions, which is what the ShowToggleOnGrid was created for.  I have tried several of the online solutions -provided in the forums, but I can not get the toggle visibility I am looking for.  Any help on this issue would be greatly appreciated.  

Ray
Top achievements
Rank 1
 answered on 18 Sep 2013
1 answer
139 views
Hi!

Is there any way to make an tab don't scroll when we have too many tabs on screen?

I want to left the first tab always visible, even when scrolling.

Something exactly like the attached image.

Thank you!
Pavel R. Pavlov
Telerik team
 answered on 18 Sep 2013
4 answers
170 views
I'm trying to subclass the RadRibbonTab as a custom UserControl to be able to use PRISM to navigate to a specific ribbon tab.

However the subclassed RibbonTab never appears in the tab bar of the ribbon. I created a sample to demonstrate the problem:

MainWindow.xaml:

<Window x:Class="RadControlsWpfApp1.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:RadControlsWpfApp1"
                Title="MainWindow" Height="350" Width="525">
    <telerik:RadRibbonView>
        <telerik:RadRibbonTab Header="Tab 1">
            <telerik:RadRibbonGroup Header="Group 1">
                <telerik:RadRibbonButton Size="Large">Button 1</telerik:RadRibbonButton>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <local:UserControl1 />
    </telerik:RadRibbonView>
</Window>

UserControl1.xaml:

<telerik:RadRibbonTab x:Class="RadControlsWpfApp1.UserControl1"
             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"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
                      Header="Tab 2">
    <telerik:RadRibbonGroup Header="Group 2">
        <telerik:RadRibbonButton Size="Large">Button 2</telerik:RadRibbonButton>
    </telerik:RadRibbonGroup>
</telerik:RadRibbonTab>

UserControl1.xaml.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
 
namespace RadControlsWpfApp1
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : RadRibbonTab
    {
        public UserControl1()
        {
            InitializeComponent();
        }
    }
}

I'm probably missing something obvious, however I don't know what. Thanks for your help.

Kiril Vandov
Telerik team
 answered on 18 Sep 2013
3 answers
164 views
Hi,

I wanted to know how can i validate telerik wpf controls for some customs validations in mvvm type of architecture.
Basically i want to validate multiple controls on a button click , store the error messages of validations and display all of them in a pop-up(say sort of validation summary)

Please suggest something
Thanks in advance

Shruti
Petar Mladenov
Telerik team
 answered on 18 Sep 2013
1 answer
79 views
Hi,

Is there planned to insert the Excel Index function in the future?
Boryana
Telerik team
 answered on 18 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?