Telerik Forums
UI for WPF Forum
5 answers
305 views

We are binding data collections to a ChartView. The data collections contain measurements taken over a period of time. Those time periods (currently) are four hours, one day, one week and one month. 

When the user chooses a different time period, we refresh the collection and change some of the chart properties to make more sense (LabelFormat, LabelInterval). But because the number of measurements can vary the LabelInterval may end up causing the last gridpoint to not have a label. (I have attached screenshots of a sample showing month, week, day, and four hour renderings.

Is there any way to force the last label to show no matter how many datapoints there are?

 

<telerik:RadCartesianChart x:Name="radChart" Margin="0,0,0,0" Height="340">
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:DateTimeContinuousAxis
            LabelInterval="{Binding ChartSettingsViewModel.LabelInterval}"
            LabelFormat="{Binding ChartSettingsViewModel.LabelFormat}"
            PlotMode="OnTicksPadded"
            >
        </telerik:DateTimeContinuousAxis>
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis Title="{Binding SeriesTitle}">
        </telerik:LinearAxis>
    </telerik:RadCartesianChart.VerticalAxis>
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="Y" MajorYLineDashArray="3,4" StripLinesVisibility="Y" />
    </telerik:RadCartesianChart.Grid>
    <telerik:RadCartesianChart.Series>
        <chartView:LineSeries ItemsSource="{Binding Measurements}" Stroke="{Binding LineColor}">
            <chartView:LineSeries.ValueBinding>
                <telerik:PropertyNameDataPointBinding PropertyName="Value"/>
            </chartView:LineSeries.ValueBinding>
            <chartView:LineSeries.CategoryBinding>
                <telerik:PropertyNameDataPointBinding PropertyName="LocalDateTime"/>
            </chartView:LineSeries.CategoryBinding>
        </chartView:LineSeries>
    </telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
Martin Ivanov
Telerik team
 answered on 21 Feb 2018
10 answers
360 views

Hi,

     I'm using the RadImageEditorUI control and when i click on the resize tool (or CanvasResizeTool) appears settings panel and indicates the size that the image will have. I do not know where that value comes from, but it does not fit the actual size of the image when I save it to a local file. I Use the same format / parameter to load the image and to save it to disk (tiff extension). I can think of two solutions: correct the value, or hide it (along with his label). And I tried to do the second option since it seems simpler, but I have not found the form. Could you help me?

 

Thank you

 

                <telerik:RadImageEditorUI.ImageToolsSections>

                    <telerik:ImageToolsSection telerik:LocalizationManager.ResourceKey="ImageEditor_Transform">
                        <telerik:ImageToolItem ImageKey="Resize" telerik:LocalizationManager.ResourceKey="ImageEditor_Resize"
                                    Command="commands:ImageEditorRoutedCommands.ExecuteTool">
                            <telerik:ImageToolItem.CommandParameter>
                                <tools:ResizeTool x:Name="resizeTool"/>
                            </telerik:ImageToolItem.CommandParameter>
                        </telerik:ImageToolItem>

                        <telerik:ImageToolItem ImageKey="Resize" telerik:LocalizationManager.ResourceKey="ImageEditor_CanvasResize" 
                                            Command="commands:ImageEditorRoutedCommands.ExecuteTool">
                            <telerik:ImageToolItem.CommandParameter>
                                <tools:CanvasResizeTool />
                            </telerik:ImageToolItem.CommandParameter>
                        </telerik:ImageToolItem>

                    </telerik:ImageToolsSection>
                </telerik:RadImageEditorUI.ImageToolsSections>

            </telerik:RadImageEditorUI>

Arquitectura EIT
Top achievements
Rank 1
 answered on 21 Feb 2018
2 answers
309 views

Hello,
I only want to display the first page of a PDF document. In addition, the vertical scrollbar should be permanently invisible. Is that possible?

Andreas Decke
Top achievements
Rank 1
 answered on 21 Feb 2018
1 answer
122 views

Hello,

I have 3 columns in my grid and need data validations in the first column.

I'm currently trying to achieve this through IDataErrorInfo.

I'm trying to trigger validation for all cells in the column when any one of the cells is updated or any row is added/deleted.

So far i could not see any generic method to make this work.

From this https://www.telerik.com/forums/trigger-grid-view-validation there is no way to do this?

Any help is appreciated.

Petar Mladenov
Telerik team
 answered on 21 Feb 2018
1 answer
122 views

Hi.

I will remove X close button from RadDocking , I tried different suggestion from web but the button still here. Can you please help me with this.

 

Martin Ivanov
Telerik team
 answered on 21 Feb 2018
7 answers
172 views
Hi,
I was trying to change the Value Cell Format like #.00 € (screenshot1.png) but it seems not working (screenshot2.png)
You can test it directly on your demo
Mattia
Top achievements
Rank 2
 answered on 21 Feb 2018
2 answers
1.3K+ views

I'm using version 2018.1.122.45 of RadGridView.  I'm trying to remove the validation red border for the row.  

I've tried everything possible by coping the entire fluent theme and changing everything to no success.  It seems this border is in the adorner layer.

Can you please provide me some direction on how to remove this border please?

Josh
Top achievements
Rank 1
 answered on 20 Feb 2018
2 answers
840 views

Greeting,

I am currently working on an MVVM application using a Radgridview to present information to the user. The data I have to present is in the form of a table (2D array) that I load from .CSV file.  Since the number of column changes depending on the loaded file, I use a DataTable and then bind it to my RadGridView with AutoGeneratingColumn. Up to there everything works fine.  The problem I have is that there is 2 columns in the DataTable that are always present and that I want to bind to a preexisting column inside the grid.  As you can see in the following code snippet, my 2 columns are called IsUsed (a boolean) and Status (also a bool)

<telerik:GridViewCheckBoxColumn
                        Name="colTest"
                        AutoSelectOnEdit="True"
                        DataMemberBinding="{Binding IsUsed, Mode=TwoWay}"
                        EditTriggers="CellClick">
                        <telerik:GridViewCheckBoxColumn.EditorStyle>
                            <Style BasedOn="{StaticResource GridViewCheckBoxStyle}" TargetType="telerik:GridViewCheckBox">
                                <Setter Property="Background" Value="{Binding Status, Converter={StaticResource BooltoColorConverter}}" />
                            </Style>
                        </telerik:GridViewCheckBoxColumn.EditorStyle>
                    </telerik:GridViewCheckBoxColumn>
 

 

Currently the columns are auto generated and the predefined binding does not work. Is there a way to do this binding? I tried intercepting the AutoGenerating event but I don't know what to do from there.

 

Thank you and have a great day!

François
Top achievements
Rank 1
 answered on 20 Feb 2018
1 answer
437 views

I'm not able to use german date format to filter my grid.

I've got a project that is set to german culture using

var Culture = new CultureInfo("de-DE");
//Culture.DateTimeFormat = DateTimeFormatInfo.CurrentInfo; // No effect on datetime parsing
Thread.CurrentThread.CurrentCulture = Culture;
Thread.CurrentThread.CurrentUICulture = Culture;

This is done in App.cs. Interestingly enough these options alone don't change the language of the grid, I have to add the following to my window:

this.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag);

 

So now the grid's in german and I'm trying to filter the Column "DateTime". After adding the data I'm using this code:

MyGrid.FilterDescriptors.Add(new Telerik.Windows.Data.FilterDescriptor("DateTime", Windows.Data.FilterOperator.IsEqualTo, "31.01.2018"));

 

Which throws an exception because obviously the Date "31.01.2018" can not be parsed.

Funny: Switching the month and day (without changing periods to slashes) works:

MyGrid.FilterDescriptors.Add(new Telerik.Windows.Data.FilterDescriptor("DateTime", Windows.Data.FilterOperator.IsEqualTo, "01.31.2018"));

Vladimir Stoyanov
Telerik team
 answered on 20 Feb 2018
2 answers
475 views

Adding a datatemplate to a listbox seems to break the automatic "startswith" search. I was hoping that overriding ToString() might help, but it doesn't seem to. 

Can anybody point me in the right direction?

 

Thanks

 

class ItemVM
    {
        public StyleDefinition Style { get; set; }
        public string TagText { get; set; }

        public override string ToString()
        {
            return Style.Description;
        }
    }

<telerik:RadListBox 
            SelectionMode="Single"
            TextSearchMode="StartsWith">
            <telerik:RadListBox.ItemTemplate>
                <DataTemplate>
                    <DockPanel>
                        <TextBlock Text="{Binding Style.DisplayName}" />
                        <TextBlock Text="{Binding TagText}" HorizontalAlignment="Right"/>
                    </DockPanel>
                </DataTemplate>
            </telerik:RadListBox.ItemTemplate>
        </telerik:RadListBox>

 


Michael
Top achievements
Rank 1
Veteran
 answered on 19 Feb 2018
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?