Telerik Forums
UI for WPF Forum
3 answers
156 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
114 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
160 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
214 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
166 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
128 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
283 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
302 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
170 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
211 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
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
DataPager
PersistenceFramework
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
LayoutControl
ProgressBar
Sparkline
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
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?