Telerik Forums
UI for WPF Forum
3 answers
558 views

Do we need to have a HierarchicalDataTemplate for each level fot Telerik RadtreeView.

-Departments

-EmployeeA
  • aaa
  • bbb
  • ccc

-Employee B

  • aaa
  • bbb

for the above do I need to have two HierarchicalDataTemplates ?

Where Department is the Parent and employeeA, B are childs

Pavel R. Pavlov
Telerik team
 answered on 02 Oct 2012
1 answer
147 views
hi,
i see your example, where you bind richtextbox to a textbox in xaml file.

i save the textbox text (in a xaml file) and now i'd like to do the reverse:
take the xaml saved from your text box and put in a new textbox.
a new radrichtextbox take this text and display it.
than i have to save it in pdf format.
it is possible?
can you say me how?
thaks
Petya
Telerik team
 answered on 02 Oct 2012
2 answers
104 views
Hi,
RadTreeView Default AllowDrop Is True and not False.
Tina Stancheva
Telerik team
 answered on 02 Oct 2012
4 answers
68 views
Hello,

I would like to know if there is any way to show empty groups in the gridview when aggregates functions are used ?

For exemple :
I have these datas :
groupA sample
groupA sample2
groupB sample3

Actually, I see this :
groupA Count : 2
groupB Count : 1

And now I want to see this :
groupA Count : 2
groupB Count : 1
groupC Count : 0

It is possible to have this ?
Can we defined groups for the aggregates and so see also empty groups ?


Thanks !
Rossen Hristov
Telerik team
 answered on 02 Oct 2012
3 answers
263 views
Nothing in documentation or here in the forums on how RadToolTip is used...

Should be as simple as this:

xmlns:t="http://schemas.telerik.com/2008/xaml/presentation"

<t:RadToolTip>
    <TextBlock>
        Some text.
    </TextBlock>
</t:RadToolTip>

or this:

<t:RadToolTip>
    <t:RadToolTip.Content>
        <TextBlock>
            Some text.
        </TextBlock>
    </t:RadToolTip.Content>
</t:RadToolTip>

But all that is displayed in the UI is "System.Windows.Controls.Textbox".
Yoan
Telerik team
 answered on 02 Oct 2012
3 answers
59 views
Intellisense in Visual Studio for some reason isn't picking up telerik RadGridView and won't resolve.


My project is targeting .NET 3.5 and has the following references:


`Telerik.Windows.Controls`


`Telerik.Windows.Controls.GridView`


`Telerik.Windows.Controls.Input`


`Telerik.Windows.Data`


All of these are for .NET 3.5 and have a runtime version of 2.0.X


My code:


    <Window x:Class="Project.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"
        Title="MainWindow" Height="350" Width="525">
    
    <Grid Loaded="Grid_Loaded">
        <StackPanel>
            <telerik:RadGridView></telerik:RadGridView> <-- this won't resolve

Any ideas why this is happening and how to fix it?
Vera
Telerik team
 answered on 02 Oct 2012
1 answer
126 views
Hello,

I'm not sure if this is a bug or if it is intended to happen like this, but for some reason, if I try to add text to a RadRichTextBox after a window has finished loading, the rich text box behaves in an unexpected manner: it adds an extra span and it hides the text by default. It shows the text only after the text box is focused. This doesn't happen though if text is added to the rich text box before the window finished loading. You can easily see this by yourself.

So, on a new project, just add a rad rich text box and in the code-behind add:

public MainWindow()
{
InitializeComponent();
 
var section = new Section();
var paragraph = new Paragraph();
var span = new Span("Span declared in code-behind");
paragraph.Inlines.Add(span);
section.Blocks.Add(paragraph);
radRichTextBox.Document.Sections.Add(section);
}

That will work fine, but if you do this:

public MainWindow()
{
	InitializeComponent();
 
	Loaded += MainWindow_Loaded;
}
 
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
	var section = new Section();
	var paragraph = new Paragraph();
	var span = new Span("Span declared in code-behind");
	paragraph.Inlines.Add(span);
	section.Blocks.Add(paragraph);
	radRichTextBox.Document.Sections.Add(section);
}

you will see that the text box behaves completely different, and it is also prone to throwing different application errors in different circumstances.
Iva Toteva
Telerik team
 answered on 02 Oct 2012
3 answers
212 views
Hi Team,

I am working with WPF MVVM using RadRibbonView.
DataBinding not Working inside Ribbonview Backstage.

<telerik:RadRibbonView >
 <telerik:RadRibbonView.Backstage >
                <telerik:RadRibbonBackstage>
 <telerik:RadRibbonBackstageItem Header="Rooms Layout">
                        <Grid Background="Gainsboro">
                            <Grid.RowDefinitions >
                                <RowDefinition Height="100"></RowDefinition>
                                <RowDefinition Height="100"></RowDefinition>
                            </Grid.RowDefinitions>
                            <TextBox Text="Sample" Foreground="Green" Width="100" Grid.Row="0" Name="txtSample">  </TextBox>
                            <TextBlock Background="Green" Foreground="Yellow" Text="{Binding ElementName=txtSample,Path=Sample}" Width="100" Grid.Row="1"></TextBlock>
                        </Grid>
                    </telerik:RadRibbonBackstageItem>
 </telerik:RadRibbonView.Backstage >
                </telerik:RadRibbonBackstage>
</telerik:RadRibbonView >

Please help me.
Thanks,
Srinivas.

Tina Stancheva
Telerik team
 answered on 02 Oct 2012
5 answers
248 views
Hi,
I want to place a arrow icon on Button which is on AutoHideArea, can any one of you please tell me how i can do this ?
i have attached ascreenshot in which i tried to illustrate the requirement.

Thanks in advance,
Srinivas.
Ivo
Telerik team
 answered on 02 Oct 2012
1 answer
119 views
Hi guys,

I have a programmatically generated Scatter plot and each point in this chart has a label. This label appears to be smaller than desired so I would like to know how can I set the label size programmatically.

Evgenia
Telerik team
 answered on 02 Oct 2012
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?