Telerik Forums
UI for WPF Forum
6 answers
136 views
Hello everyone,

maybe thats more a mathematical question but i have a spline series for which i want to calculate the average value for in an given interval. what would be the best way to do this?
is there for example an way to get the interpolated value of the series at a certain position?

like for example i have the datapoints (x,y):
(13:15, 200), (13:57, 154),..., (18:31, 177)
now i like to know whats the average value between 15:30 and 17:30 o'clock .. which can be an interval in which i might have no 'real' values at all but only interpolated ones..

thanks in advance!
Mikk
Top achievements
Rank 1
 answered on 23 May 2013
3 answers
192 views
I am using RadBarcode39 in my Windows Phone 8 App but it is not being scanned correctly. So was wondering if there are recommendations for Height and Width properties to get it to scan properly. Also the bars don't appear to match a printed paper bar code. Below is what I am doing. Should I be doing something more/different ?

            <telerikDataViz:RadBarcode39 Name="BarCodeControl"
                                         Height="120"
                                         Width="425"
                                         Margin="5"
                                         VerticalAlignment="Center"
                                         HorizontalAlignment="Center"
                                         Text="90321331" 
                                         ShowChecksum="False"/>


Aniruddha
Top achievements
Rank 1
 answered on 22 May 2013
2 answers
566 views
Hello
We have the following View structure:

  <RadDocking x:Name="_radDocking" RadDocking.SerializationTag="_radDocking">
    <RadDocking.DocumentHost>
      <telerik:RadSplitContainer x:Name="_splitContainer" RadDocking.SerializationTag="_splitContainer" InitialPosition="DockedTop">
        <telerik:RadPaneGroup x:Name="_contentArea" RadDocking.SerializationTag="_contentArea" IsContentPreserved="True" >
        </telerik:RadPaneGroup>
      </telerik:RadSplitContainer>
    </RadDocking.DocumentHost>
  </RadDocking>


Inside code behind we add  some RadPane to the PaneGroup. This works good.


Now we have the requirement to change the selected Pane in the case they are "groupped" after 2s. User should see each pane without a click.

In the case we have 4 RadPane:
Pane1 - Pane2 - Pane3 - Pane4 - Pane1 - Pane2 .....

The timer is not the problem. But how can I set the RadPane with should have focus inside codebehind?

Thanks
Stephan
Top achievements
Rank 1
 answered on 22 May 2013
1 answer
168 views
Dear sir,

Can I copy diagram items (shape or connection) as image in clipboard so that paste it into MS office or other applications?
If RadControl diagram does not support this functionality, Could you give me some tips for this?

Regards,
Tina Stancheva
Telerik team
 answered on 22 May 2013
5 answers
170 views
I would like to add a Table of Contents from code, is there documentation on how to do this?
Petya
Telerik team
 answered on 22 May 2013
5 answers
154 views
Hi,

how to find a DataFormField  <telerik:DataFormComboxField> on EditEnded?
I have to Change the value by code and have to find this field!

Thanks
Best Regards
Rene
Ivan Ivanov
Telerik team
 answered on 22 May 2013
1 answer
125 views
I have a solution where I am using the implicit themes and have a pallete switchers similar to what your Executive Dashboard is using. I have set up different gauge properties to switch when I click the theme toggle button. But i can not get the GaugeRange backgrounds to change. In fact they don't even display. Here is some sample code

<telerik:RadialScale x:Name="innerChannelRadialScale" Min="0" Max="300" Radius="0.68" MajorTicks="10" MinorTicks="5" LabelRotationMode="None"
FontWeight="Bold" FontSize="60" SweepAngle="359" StartAngle="90" ShowLastLabel="True" ShowFirstLabel="False"
MajorTickBackground="{DynamicResource MajorTickBackground}"
MiddleTickBackground="{DynamicResource MiddleTickBackground}"
MinorTickBackground="{DynamicResource MinorTickBackground}">
<telerik:RadialScale.Ranges>
       <telerik:GaugeRange x:Name="innerAlarmLowRange" Min="0" Max="50" StartWidth="0.04" EndWidth="0.01" Background="{DynamicResource AlertRangeBackground}" />
       <telerik:GaugeRange x:Name="innerNormalRange" Min="50" Max="250" StartWidth="0.01" EndWidth="0.01" Background="{DynamicResource NormalRangeBackground}" />
       <telerik:GaugeRange x:Name="innerAlarmHighRange" Min="250" Max="300" StartWidth="0.01" EndWidth="0.03" Background="#FFE50000" />
  </telerik:RadialScale.Ranges>

You will see I have set up DynamicResources for all of the Tick Backgrounds and they work perfectly. But the GaugeRange backgrounds do not work at all. In fact they do not show up at all. Is there something special I need to do to set DynamicResources on these?
Andrey
Telerik team
 answered on 22 May 2013
3 answers
369 views
I'd like to have two top-level TreeView items, which are not related to bindings. Simple hard coded top-level items. However, those items will have children. And those children will be from my VM.

Something like this:

<telerik:RadTreeViewItem
    ItemsSource="{Binding DataContext.Documents, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeView}}}">
    <TextBlock
        Text="Documents" />
</telerik:RadTreeViewItem>
<telerik:RadTreeViewItem
    ItemsSource="{Binding DataContext.Pages, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeView}}}">
    <TextBlock
        Text="Excluded Pages" />
</telerik:RadTreeViewItem>

However, this doesn't seem to be allowed. How can I accomplish this? Essentially, my VM has two collections of stuff, and I want to show both in a single tree view, but without introducing a bunch of stuff into my view model.
Kiril Vandov
Telerik team
 answered on 22 May 2013
3 answers
131 views
Hi,

I have a MVVM application which showed a strange behavior.
To reproduce it I "switched to event mode" which has:

<telerik:RadGridView Grid.Row="1" ItemsSource="{Binding Bearings}" AutoGenerateColumns="False" ShowInsertRow="True" ShowGroupPanel="False" RowValidating="RadGridView_RowValidating" CanUserDeleteRows="True" CanUserInsertRows="True">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn  Header="Ordnungszahl" Width="*" DataMemberBinding="{Binding Ordnungszahl}" IsFilterable="True" SortMemberPath="Ordnungszahl" IsSortable="True" />
            <telerik:GridViewDataColumn Header="BauartenCode" DataMemberBinding="{Binding BauartenCode}" Width="120" IsFilterable="False" IsSortable="True" />
            <telerik:GridViewDataColumn Header="AussenDMCode" DataMemberBinding="{Binding AussendurchmCode}" Width="120" IsFilterable="False" IsSortable="False" />
            <telerik:GridViewDataColumn Header="Stufe" DataMemberBinding="{Binding Stufe}" Width="120" IsFilterable="False" IsSortable="False"  />
            <telerik:GridViewDataColumn Header="Unterstufe" DataMemberBinding="{Binding Unterstufe}" Width="120" IsFilterable="False" IsSortable="False"/>
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>

In code behind I do nothing more than:

private void RadGridView_RowValidating(object sender, Telerik.Windows.Controls.GridViewRowValidatingEventArgs e) {
        e.IsValid = false;
    }


When I hit ESC twice - editing is ended and the "old values" are displayed - but the row still displays "invalid" (red exclamation mark, red background).

What I expect is that the row becomes valid since it has the original (valid) values after "CancelEdit" (Hitting ESC twice).

The second problem (in debug) I get a "ArgumentNullException" (Parameter instance must not be null) when I add a row without entering anything hit ESC twice.

Manfred
Yordanka
Telerik team
 answered on 22 May 2013
13 answers
159 views
Hi,
My gridview sort works great on mouse click but there is no response on touch input. Can you please tell me how to enable it for touch input?

Thanks.
Yordanka
Telerik team
 answered on 22 May 2013
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?