Telerik Forums
UI for WPF Forum
1 answer
90 views
Hi

is it possible to use the im / export functions without a UI ?

I've to convert HTML Content from a database to doc(x) and PDF within a batch / Console application.
Ivailo Karamanolev
Telerik team
 answered on 09 Dec 2011
1 answer
135 views
Hi Telerik,

Im currently styling the GridLines for my chart. The problem appears when I enable the GridLines with a strokethickness of 1. You now see some gridlines not snapping to the device pixels (which causes the gridline to be blurry or sharp).

This behavior is also apparent in your GridViewSample: http://demos.telerik.com/silverlight/#Chart/CustomGridLines

I've tried to customize the AxisStyles and setting SnapToDevicePixels, but this doesnt work.

Do you have a sample which fixes the blurry GridLines?
Sia
Telerik team
 answered on 09 Dec 2011
4 answers
120 views
Hello,
I've used the PrintExtension class you've provided with WPF 2011 SP1 examples but when I click the print button it's not possible to set a range of pages... if my grid has 20.000 records I don't want be responsable of Amazonian's forest harvest....
is it possible to choose a range? how to enable it? my Grid doesn't have pagination but as far I've seen that's no the problem...

Thanks

Paolo

Michele
Top achievements
Rank 2
 answered on 09 Dec 2011
1 answer
239 views
Hi,

I'm using Telerik 2011.3.1116.35 and VS2008 with a RadRichtextBox. Actually I use a RtdDataProvider to add Rtf document in my RadRichTextBox.

When I try to insert new text at the end of my RadRichTextBox, the new text seems to clear the current content of my RadRichTextBox bedfore insert my new text.

Here is the xaml:
<Window x:Class="WpfApplication3.Window1"
    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:telerikProvider="clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents.FormatProviders.Rtf"
    Title="Window1" Height="300" Width="641">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
              
        <StackPanel Orientation="Horizontal" DataContext="{Binding ElementName=editor, Path=Commands}">
            <telerik:RadRibbonToggleButton Text="B" FontFamily="Times New Roman" FontSize="14" FontWeight="Bold" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleBoldCommand}" />
            <telerik:RadRibbonToggleButton Text="I" FontFamily="Times New Roman" FontSize="14" FontStyle="Italic" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleItalicCommand}" />
            <telerik:RadRibbonToggleButton FontFamily="Times New Roman" FontSize="14" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleUnderlineCommand}">
                <Underline>U</Underline>
            </telerik:RadRibbonToggleButton>
            <telerik:RadButton Click="RadButton_Click">Test</telerik:RadButton>
        </StackPanel>
       
        <telerik:RadRichTextBox Grid.Row="1" x:Name="editor" Margin="24 24 0 0" AllowDrop="True" ShowComments="True" IsSelectionMiniToolBarEnabled="False" IsContextMenuEnabled="False" />       
        <telerikProvider:RtfDataProvider Name="Rtf" RichTextBox="{Binding ElementName=editor}" />
        <telerik:DocumentRuler AssociatedRichTextBox="{Binding ElementName=editor, Mode=OneTime}" Grid.Row="1" />
        <telerik:RadRichTextBoxStatusBar Grid.Row="2" AssociatedRichTextBox="{Binding ElementName=editor, Mode=OneTime}" />
    </Grid>
</Window>

Here is the code-behind:

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

 

VPlayer;

 

using

 

Telerik.Windows.Documents.Model.Styles;

 

namespace

 

WpfApplication3

 

{

 

/// <summary>

 

 

/// Interaction logic for Window1.xaml

 

 

/// </summary>

 

 

public partial class Window1 : Window

 

{

 

public Window1()

 

{

InitializeComponent();

}

 

private void RadButton_Click(object sender, RoutedEventArgs e)

 

{

Rtf.Rtf =

"Line 1";

 

editor.Document.CaretPosition.MoveToLastPositionInDocument();

editor.Insert(

@"Line 2");

 

}

}

}


Thank's

Alex
Telerik team
 answered on 08 Dec 2011
3 answers
128 views
Is there a way of getting the spell checker to perform live checks and add the wavy underscore?  If not do you intend to add this in a future update?
Andrew
Telerik team
 answered on 08 Dec 2011
1 answer
90 views
i'm using with the pie.
my ItemLabelFormat #%{P2} #XCAT becouse i want to display the category name.
my category name is enum, and i want to display the description by the enum.
Hou could i do that?
Petar Marchev
Telerik team
 answered on 08 Dec 2011
1 answer
113 views

Hi

i have problem following this scenario :

TreeView use LoadOnDemand and CheckList

1.  parent node checked;
2.  parent node expand;

i want to result that is all check of child node for parent node

but all not checked for checkbox for child node for parent node

how to do checked for all checkbox of child node for parent node??

thank you

Petar Mladenov
Telerik team
 answered on 08 Dec 2011
3 answers
152 views
hello,

I use a colorselector in a raddropdownbutton (on a ribbon), to select color for several objects.
i have a framework as described bellow.

I'd like that each time i click on "color" button, the selectedcolor is empty.
because i need to be able to apply the same color for different objects, and sometimes user doesn't select all at one time, but select one defines a color, the selects another object and want to define same color. then he needs to change color selection, then reopen colorselector to choose right color.

<Window x:Class="tlk_colorpicker.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <tlk:RadDropDownButton Content="Color"  x:Name="color">
            <tlk:RadDropDownButton.DropDownContent>
                <tlk:RadColorSelector  SelectedColorChanged="PredefSelectedColorChanged"    NoColorVisibility="Collapsed" />
            </tlk:RadDropDownButton.DropDownContent>
        </tlk:RadDropDownButton>
         
        <Rectangle x:Name="oRect" Width="50" Height="50" Grid.Row="2"  Fill="AliceBlue" />
    </Grid>
</Window>
private void PredefSelectedColorChanged(object sender, EventArgs e)
        {
            oRect.Fill = new SolidColorBrush(((RadColorSelector)sender).SelectedColor);
            color.IsOpen = false;
        }

thanks for your expertise
Aurore
Petar Mladenov
Telerik team
 answered on 08 Dec 2011
2 answers
206 views
Is there a way to customize the ToolTip placement for an item tooltip within the WPF RadChart?  It looks like it always uses MousePoint but I would like to have the tooltips shown above their source DataPoint.  Ideally I would like to specify a CustomPopupPlacementCallback similar to WPF ToolTips.

The WPF equivalent property is ToolTipService.Placement.  I did not see any similar properties on the ItemToolTip2D class.  I found a ChartTooltipBehavior class in the WPF documentation which was promising but it only appears to apply to Windows Phone.

Thanks for any help or suggestions that can be offered.
Steve
Top achievements
Rank 1
 answered on 08 Dec 2011
1 answer
225 views
Hello Telerik,
I'm following the demo titled "GridView Printing Paged Data" and I got some problem selecting a print range... since my view can have a lot of items I wish to let the user select a range...

Here's my PrintPreview method

public static void PrintPreview(GridViewDataControl source)
       {
           Window window = new Window();
           window.Title = "Print Preview";
 
           DocumentViewer documentViewer = new DocumentViewer();
           PrintDialog printDialog = new PrintDialog();
 
           printDialog.PageRangeSelection = PageRangeSelection.UserPages;
           printDialog.UserPageRangeEnabled = true;
 
           printDialog.MaxPage = 40;
           documentViewer.Document = ToFixedDocument(ToPrintFriendlyGrid(source), printDialog);
            
           window.Content = documentViewer;
 
           window.ShowDialog();
       }

It shows me only Print alla pages...what am I doing wrong?
Thanks
Paolo

Dimitrina
Telerik team
 answered on 08 Dec 2011
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?