Telerik Forums
UI for WPF Forum
2 answers
118 views
I'm using DropDownButton to display Winform or HWND window, but it seems that it does not display any Winform in DropDownContent

Here is example:
<Window
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="MainWindow"
     xmlns:Forms32="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
 
        <telerik:RadDropDownButton Content="Browser" HorizontalAlignment="Left" Height="Auto" IsOpen="False" Margin="36,21,0,0" VerticalAlignment="Top" Width="Auto" DropDownWidth="800" DropDownHeight="600">
            <telerik:RadDropDownButton.DropDownContent>
                <WindowsFormsHost>
                    <Forms32:WebBrowser Url="google.com"></Forms32:WebBrowser>
                </WindowsFormsHost>
            </telerik:RadDropDownButton.DropDownContent>
        </telerik:RadDropDownButton>
         
        <telerik:RadDropDownButton Content="Button" HorizontalAlignment="Left" Height="Auto" IsOpen="False" Margin="129,21,0,0" VerticalAlignment="Top" Width="Auto">
            <telerik:RadDropDownButton.DropDownContent>
                <WindowsFormsHost>
                    <Forms32:TextBox Text="Test Text Box"></Forms32:TextBox>
                </WindowsFormsHost>
            </telerik:RadDropDownButton.DropDownContent>
        </telerik:RadDropDownButton>
 
    </Grid>
</Window>

Pov Ser
Top achievements
Rank 1
 answered on 27 May 2014
3 answers
136 views
I want to be able to make ALL cells in specific columns a certain background color. I know I can do this using a custom cell template but the problem is that this is extremely slow as it looks at every single cell and then decides what template to apply. It significantly slowed down the performance even with a grid of only several hundred visible columns. I am wondering whether there is a way to just set an entire column to a specific Background and/or foreground color

Thank you



Kalin
Telerik team
 answered on 27 May 2014
1 answer
94 views
Hi.

I want to check time about 'RadCartesianChart refresh'

This chart is slowly that it have more Series.

After I want to check time, I want to make more fast.
Petar Marchev
Telerik team
 answered on 27 May 2014
3 answers
136 views
I've seen the demos on stacked/clustered bar series.  For our business model, it makes more sense for the primary bound ObservableCollection to represent each "cluster" of data.  The nested ObservableCollection would then contain the data points for each bar in the cluster.  This is the opposite from the demos, where the primary ObservableCollection represents each series of a single bar color.

Is there any way to construct the chart in the reverse from the demos?  I hope my explanation is clear enough.

Thanks!
Martin Ivanov
Telerik team
 answered on 27 May 2014
2 answers
188 views
I've got a RadGridView with a column chooser almost exactly following the code shown in the Telerik documentation
<telerik:RadGridView>
    <telerik:RadGridView.ControlPanelItems>
        <telerik:ControlPanelItem ButtonTooltip="{x:Static res:ColumnChooserTooltip}">
            <telerik:ControlPanelItem.Content>
                <ListBox ItemsSource="{Binding Columns}" Style="{StaticResource ColumnChooserListBox}">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox Content="{Binding Header, Mode=OneWay}" IsChecked="{Binding IsVisible, Mode=TwoWay}" Style="{StaticResource ListItemsCheckBox}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </telerik:ControlPanelItem.Content>
        </telerik:ControlPanelItem>
    </telerik:RadGridView.ControlPanelItems>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="{x:Static res:Column1Name}" />
        <telerik:GridViewDataColumn Header="{x:Static res:Column2Name}" />
        <telerik:GridViewDataColumn Header="{x:Static res:Column3Name}" />
        ...
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

And it works great! But, I have approximately 100 columns defined. They are declared in the default order I want them displayed. However, I would like the list in the column chooser to be displayed in alphabetical order to make finding the columns in the list easier. I've tried adding a sort description:

<telerik:RadGridView.Resources>
    <CollectionViewSource Source="{Binding Columns}" x:Key="AlphabetizedColumnsSource">
        <CollectionViewSource.SortDescriptions>
            <scm:SortDescription PropertyName="Header"/>
        </CollectionViewSource.SortDescriptions>
    </CollectionViewSource>
</telerik:RadGridView.Resources>
<telerik:RadGridView.ControlPanelItems>
    <telerik:ControlPanelItem ButtonTooltip="{x:Static res:ColumnChooserTooltip}">
        <telerik:ControlPanelItem.Content>
            <ListBox ItemsSource="{Binding Source={StaticResource AlphabetizedColumnsSource}}" Style="{StaticResource ColumnChooserListBox}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <CheckBox Content="{Binding Header, Mode=OneWay}" IsChecked="{Binding IsVisible, Mode=TwoWay}" Style="{StaticResource ListItemsCheckBox}" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </telerik:ControlPanelItem.Content>
    </telerik:ControlPanelItem>
</telerik:RadGridView.ControlPanelItems>

But then it's looking for the Columns binding on the DataContext of the RadGridView instead of on the RadGridView itself. I've tried a few different way to do this and haven't been able to figure it out yet. How can I set this up to give me an alphabetized list of columns in the chooser?

Thank you!
Brian
Top achievements
Rank 1
 answered on 27 May 2014
1 answer
113 views
Hi,

if I save my "RadDiagram", I get a XML-File, which is ok. But is it possible to save the XML-file with line Feeds? We have to Import this
file in a Business Software, and if the string is just one line, it is impossible to read for us?

Thanks
Best Regards
Rene
Martin Ivanov
Telerik team
 answered on 26 May 2014
3 answers
79 views
Hi,

i have to add different TabContents to different shapes? How to do that?

Thanks
Best Regards
Rene
Martin Ivanov
Telerik team
 answered on 26 May 2014
2 answers
225 views
Hi,

I try to save a diagram where a add some custom connectors on each shape. Also I add a custom tabcontent for each shape.
The Problem after saving and reloading it from XML, all my custom connectors a my tabcontent are away. How can I save
my logic in the XML too?

Thanks
Best Regards
Rene
Milena
Telerik team
 answered on 26 May 2014
1 answer
280 views
We'd like to add child elements to task items dynamically (post-initialization.)

Using a View-ViewModel, if I modify a given GanttTask element (which previously had no children) to add childr tasks, I see the following behavior:
- the "gantt" part of the UI changes from a text box to a ranged line
- the underlying ObservableCollection has the correct data
- however, the tree control (the part of the control that allows expand/collapse) does not appear to recognize that child tasks have been added; as a result it is impossible to view the child tasks that have been added.

How do we do this properly so the control recognizes the new child elements?
Polya
Telerik team
 answered on 26 May 2014
1 answer
150 views
Hi, I have this MVVM app and I need to show a BusyIndicator when it does this heavy load method.

It works fine the first time, when I try to run it again, looks like it's not starting the BusyIndicator. And it just does nothing.

Here's the code I'm using to show the BusyIndicador

The BusyIndicator it's binding to this property

private bool _isBusy;
public bool IsBusy
{
    get { return _isBusy; }
    set
    {
        if (_isBusy == value) return;
 
        _isBusy = value;
        OnPropertyChanged();
    }
}

And here's how I change the state of the binded property


var backgroundWorker = new BackgroundWorker();
 
backgroundWorker.DoWork += delegate
{
    IsBusy = true;
    DoHeavyWork();
};
 
backgroundWorker.RunWorkerCompleted += delegate
{
    IsBusy = false;
};
 
backgroundWorker.RunWorkerAsync();

I also tried setting the IsBusy property outside of the DoWork method, but got the same results.

Any idea what it might be the issue?


Vladi
Telerik team
 answered on 26 May 2014
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?