Hi,
I have a dashboard with 3 RadCartesianCharts (2 bar charts, 1 line chart) all based on date values for category bindings and numeric values for value bindings.
Both the date values and the value values can vary considerably depending on filters set, so I set up value converters to dynamically adjust the axis labels and tooltips accordingly.
I was successful with all the horizontal axis and tooltips, but not with the y-axis values.
My goal is to adjust the y-axis values based on the size of the values, i.e. thousands vs millions vs billions. I use the following code to properly format the tooltips:
double measureValue = double.Parse(value.ToString());
if (measureValue > 999999999 || measureValue < -999999999)
{
formatString = "0,,,.###B";
}
else if (measureValue > 999999 || measureValue < -999999)
{
formatString = "0,,.##M";
}
Our customer is using our application (using RadMap) with a custom tiled data source to a remote map data source across a very slow network. Can you tell me:
1. What timeout is used for web requests to the map data source? (I believe the default timeout for WebRequest is 100 seconds)
2. Is it possible to change the timeout on the web requests for tiles?
3. What happens if a tile request times-out? Our customer suspects that the Telerik code is caching the timed-out tile response - is that true?
We are currently using Telerik v2019.1.116.45
Thanks
Pete
Hi together,
I have previously used the following lines to get the MaskedTextInput to wrapp the text.
I have no installed the last update (R3) and now it says: "The object reference is not declared onto a object instance."
The code still works but in the designer it marks it as wrong and doesn't update the preview anymore.
If I let the BasedOn apart it shows everything as it should bot the code not works anymore as it should. So the MaskedInput is empty and I can't click it anymore.
Without Wrapping the too long lines, well, are too long.
<telerik:RadMaskedTextInput.TextBoxStyle>
<Style TargetType="maskedInput:PreviewInputTextBox" BasedOn="{StaticResource MaskedInputTextBoxStyle}">
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="AcceptsReturn" Value="True" />
</Style>
</telerik:RadMaskedTextInput.TextBoxStyle>
Greetings,
Benedikt
Hey,
I am trying to create a Telerik Data Grid (RadGridView) which styles each line dynamically based on some data triggers. I am using VS2019, .NET 4.6 WPF with Telerik 2019.2 NOXAML.
As I did not know how I searched the web (including this forum) and identified a basic solution. Using
<telerik:RadGridView.RowStyle>
<Style TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="Red"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</telerik:RadGridView.RowStyle>
I should be able to style every row red/white (for starters ...). This is from the example here (https://docs.telerik.com/devtools/wpf/controls/radgridview/styles-and-templates/styling-a-row) which is not really good because it does not tell me HOW to define it exactly on my grid. However I also found an example from the forum from 2010 (https://www.telerik.com/forums/setting-radgridview-row-background-color-based-on-the-value-of-a-column-in-the-row) which uses the styling as you see above. The example works however my grid simply shows "nothing" as soon as I use the style definition.
This is my grid which I simplified for you:
App.xml:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/System.Windows.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
Grid.xml:
<telerik:RadGridView ItemsSource="{Binding MyObservableList}" AutoGenerateColumns="False" RowIndicatorVisibility="Collapsed">
<telerik:RadGridView.RowStyle>
<Style TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="Red"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</telerik:RadGridView.RowStyle>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding idx}" Header="ID" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Description}" Header="Description" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Hello guys.
Im using Telerik 2015 Q3 for WPF (2015.3.930.45) and i have a problem with the tabindex inside mi form.
I have a form with several RadComboBox, textboxes...
If I place a textbox (Tabindex = 0), a radcombobox (Tabindex = 1) and anoche textbox (Tabindex = 2), when i press tab in the first textbox focus goes to the other textbox, and then, the next focused item is the radcombobox.
Its like ui always focus windows UI controls before radcombobox.
How can I solve this problem? I need that tabindex works like it should work...
Regars
Hello
Our horizontal axis is always a frequency, is it possible to display the unit kilo/Meg/Gig,
for example display 1.2 GHz, 100kHz, 10MHz instead of 1200000 Hz, 100000Hz, 10000000Hz ?
thanks
Hey,
I have the problem with a gridview. When I cancel the Rowedit with pressing 'Esc' two times the row not fully cancels. As you can see in my video.
(https://www.dropbox.com/s/ctpiyfsq0v3vyx2/Record100919.wmv?dl=0)
The previously in the same row entered value is still visible. As soon as you click in the cell, it disapears. If I not click into it and change another cell, it even writes the before cancelled value into the cell.
I not have something really special there. The radgridview itemsource is a Datatable set in C#:
rgvTeile.ItemsSource = Daten.GibTeileWithReklamationsID(aktReklamationsID).DefaultView;
This is my radgridview:
<telerik:RadGridView
Grid.Row="3"
x:Name="rgvTeile"
Margin="0 10 0 0"
AutoGenerateColumns="False"
GroupRenderMode="Flat"
ShowGroupPanel="False"
FilteringMode="Popup"
ShowSearchPanel="False"
ValidatesOnDataErrors="InEditMode"
EnableColumnVirtualization="False"
NewRowPosition="Bottom"
HorizontalAlignment="Left"
RowEditEnded="RgvTeile_RowEditEnded"
ActionOnLostFocus="CommitEdit"
>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn
DataMemberBinding="{Binding ID}"
Header="ID"
IsVisible="False"
IsReadOnly="True"
/>
<telerik:GridViewDataColumn
DataMemberBinding="{Binding Menge}"
Header="Menge"
/>
<telerik:GridViewDataColumn
DataMemberBinding="{Binding Bezeichnung}"
Header="Bezeichnung"
/>
<telerik:GridViewDataColumn
DataMemberBinding="{Binding ArtikelNummer}"
Header="ArtikelNummer"
/>
<telerik:GridViewDataColumn
DataMemberBinding="{Binding Farbe}"
Header="Farbe"
/>
<telerik:GridViewDataColumn
DataMemberBinding="{Binding Fertigmaß}"
Header="Fertigmaß"
/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Greetings
Benedikt
Hi,
I have a RadTreeMap that's working perfectly except that I want its labels to be centered vertically and horizontally within each rectangle.
I'm also using a Colorizer:
<telerik:TypeDefinition.Mappings>
<telerik:DesaturationColorizer From="1" To="0.1" StartColor="#d9ac26"/>
</telerik:TypeDefinition.Mappings>
...so, when I attempt to change use a TextBlock with the proper alignment:
<Style TargetType="telerik:RadTreeMapItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<TextBlock Text="{Binding Label}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
...it successfully centers the labels, but I lose the colorizing effect. How can I make the TextBlock respect the intended colorizing?
Wayne
As I see when RT control import and export back, it cleans custom attributes.
id tag is required for styles as i understand, but what about my own attribute "data-id" (by html specification all data-* attributes are user defined attributes)?
Is it any solution to prevent remove user custom attributes?