Telerik Forums
UI for WPF Forum
3 answers
151 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
206 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
159 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
123 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
274 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
295 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
161 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
3 answers
200 views
Is there a RadGeometryButton delete button? Im using the 'new' and 'layout' RadGeometryButton's buttons and also need one for delete? A standard button will look out of place here so im hoping theres a nice pretty RadGeometryButton delete button...
Martin Ivanov
Telerik team
 answered on 26 May 2014
2 answers
80 views
Hello!

I tried to change the minimum of the polar axis. However, the value seems to be ignored (except for the label interval).
Is there another property that has to be set?

Alex
Petar Marchev
Telerik team
 answered on 26 May 2014
1 answer
138 views
Hi,

is it possible to change the line color in a RadCartesianChart depending on the DataItem (e.g. for the line segment before the data point)?
I found an old thread (http://www.telerik.com/forums/change-line-colour-part-of-the-line-only) where it was stated that such a functionality was planned - however I don't see any evidence that it was implemented...

Alex
Petar Marchev
Telerik team
 answered on 26 May 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
ProgressBar
Sparkline
LayoutControl
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
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?