Telerik Forums
UI for WPF Forum
7 answers
383 views

Is it possible to create a RadCartesianChart that is NOT visible and use the engine to draw a chart and then save the resulting image? Like drawing to an in-memory bitmap.

I use RadCartesianChart to great effect in interactive mode, but am planning a "batch" mode for my application where I need to build some number of charts and save them to files automatically. I don't really want to create a placeholder control and have it flashing at the user whilst the batch mode is running.

Thanks.

-John.

 

Jason D
Top achievements
Rank 1
Veteran
 answered on 30 Mar 2021
1 answer
167 views
I am trying to use a tree view for a situation where there may or may not be children. When there are no children, the list is effectively flat, and it doesn't look right to see a big space to the left of the items where the expander would go. I tried to set the expander visual style so that the button is collapsed, but it looks like there is a minimum width on the ListRootContainer. Is there any way to do this without replacing the entire control template?
Petar Mladenov
Telerik team
 answered on 30 Mar 2021
5 answers
107 views

Hello,

Notepad++ (and other editors) have a feature where you can select a term and all instance/occurrences of this term in the document are highlighted as well.

Is this also possible in the SyntaxEditor and can this be implemented in a similar fassion. I am using the Visual basic and the CSharp syntax highlighting.

There is a functionality called HighlightAllMatches but I don't really know if this is the right method or how to Trigger it correctly.

Thanks for your time.

Dilyan Traykov
Telerik team
 answered on 29 Mar 2021
1 answer
149 views

Hi,

in my GridView I am using the SelectionChanged event. How can I distinguish in this event whether a user has clicked on a row or whether I have set the SelectedItem by code?

Regards
Heiko

Martin Ivanov
Telerik team
 answered on 29 Mar 2021
13 answers
449 views

Hi,

I've a collection data, X values are hours, Y values some values.

I want to display my data hourly, BUT, i want the X labels to show only Days.

 

With that code :

<telerik:DateTimeContinuousAxis
                    LabelFormat="dd/MM"
                    LabelInterval="1"
                    LabelOffset="1"
                    MajorStepUnit="Day"
                    MajorStep="1"
                    PlotMode="OnTicks"
                    LabelRotationAngle="-45"
                    LabelFitMode="None" 
                    VerticalLocation="Bottom">

My data are displayed hour by hour, the X label is the day, but the label is under the Ticks on the left. What i want is the label centered, idealy bordered on the whole area where the label is displayed (please see screenshot).

In addition, i display major lines on Days :

<telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="X">
                    <telerik:CartesianChartGrid.MajorXLineStyle>
                        <Style TargetType="Line">
                            <Setter Property="Stroke" Value="Black" />
                        </Style>
                    </telerik:CartesianChartGrid.MajorXLineStyle>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>

I would like to display minor line every six hours too (please see screenshot on the two first days).

How can i do this ?

Thanks in advance

Martin Ivanov
Telerik team
 answered on 29 Mar 2021
9 answers
1.2K+ views
I have a treeview with a hierarchical template and I'm using mvvm. So far I have not been able to get the command binding correct for the context menu. It's trying to bind to the item's datacontext, but I want to bind it to the datacontext of the treeview. I have tried several approaches including relativesource, etc. Any help would be appreciated.

 
Dinko | Tech Support Engineer
Telerik team
 answered on 29 Mar 2021
4 answers
155 views

Hi!

I have date values in my LocalDataSourceProvider and in the filter dialog I want to display only years as values. What I get is:
a) all date values
b) date values with "00:00:00" time added
c) dates with the wrong locale although I set the right culture on my LocalDataSourceProvider (this shoud be German date like "dd.MM.yyy")

What I like to have is a filter dialog showing only "2017, 2018, 2019, 2020, 2021, ..."

Besides that: the filter dialog is much too small if you have a filter condition "between" and two date values, see screenshot.

Regards
Heiko

Martin Ivanov
Telerik team
 answered on 29 Mar 2021
0 answers
114 views

Hi,

I have a WPF application where the Grid is bound with a list of entity. Row level grouping is applied on the grid. After collapsing all the groups. We are storing the grid configuration in JSON file. While opening the UI, loading the grid configuration saved in JSON file.

After collapsing all the groups manually, horizontal scroll is visible. But on reopening the UI horizontal scroll is not visible. Is it not considering column header that time or what can be the solution around this. 

Appreciate on your help, please help.

 

Thanks!

Samaresh

Samaresh
Top achievements
Rank 1
 asked on 26 Mar 2021
1 answer
187 views

Trying to plot multiline chart with 18000 data points. Used point template as it is used for each and every data point. It takes 9 secs time to load the UI of chart.

memory utilization increases more than 1-1.5 GB after loading the chart.

Code snippet and chart image is attached...

 

 

Martin Ivanov
Telerik team
 answered on 26 Mar 2021
1 answer
658 views

Hello.

<EventToCommandBehavior.EventBindings> is very similar to the <interaction.triggers> function.

I want to ask if multibinding is possible here.

Is there a way to get both CommandParameter and eventArgs?

 

I can't build this source, but I hope this will happen. like this

<View.xaml>
<telerik:EventToCommandBehavior.EventBindings>
    <telerik:EventBinding EventName="CellPropertyChanged"
          Command="{Binding Command}"
          PassEventArgsToCommand="True"
          CommandParameter={binding ElementName="gridview"/>
</telerik:EventToCommandBehavior.EventBindings>
 
<ViewModel.cs>
private void Command(object[] obj)
{
    var sender = obj[0] as RadGridView;
    var e = obj[1] as CellPropertyChangedEventArgs;
}

 

 

 

 

Thanks.

Martin Ivanov
Telerik team
 answered on 25 Mar 2021
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?