Telerik Forums
UI for WPF Forum
3 answers
185 views
Hi,

I have live data coming from a sensor at a rate of 1khz. This data is plotted on a RadCartesianChart with two LinearAxis for X and Y. Only the last 10 seconds or so needs to be shown to the user. This is why I remove the first datapoint as soon as 10,001 datapoints are recorded.

When RangeExtendDirection="Positive" is set on the X-axis the graph scrolls along quite nice, however the range is not updated smoothly. The graph jumps every so often when the end is reached. I would like the X-position on screen of start and end of the graph to remain the same. Is this possible? I have not been able to find a way to alter the range of a graph.

Wouter
Rosko
Telerik team
 answered on 06 Aug 2013
4 answers
305 views
Hi

I'm trying to migrate RadMaskedTextBox to RadMaskedTextInput and I'm experiencing strage behaviour in RadMaskedTextInput:

I have a TextBox where the content takes half of the TextBox width. With the RadMaskedTextBox I was able to click anywhere in the free part of the TextBox, hold down the mouse button and select the content with a move to the left side.

In RadMaskedTextInput I have to put the cursor right beside the last character in the TextBox to do this. The free parts of the TextBox just show the normal mouse cursor and not the text-input-cursor.

Is it possible to activate the behaviour of the old RadMaskedTextBox in the new RadMaskedTextInput for making a text-selection with the mouse?

Attached you will find 2 pictures:
The first TextBox on the pictures is the RadMaskedTextInput
The second TextBox is the RadMaskedTextBox

Picture1 (StartSelection.jpg) shows the start of the selection and the different cursors. At the point where you can see the cursors, I'm starting to hold down mouse left and move the mouse to the left

Picture2 (EndSelection) shows that only the text in the RadMaskedTextBox was selected as desired. The text in the RadMaskedTextInput remains unselected.

To select the text in the RadMaskedTextInput I have to move the cursor to the position shown in picture3 (radmaskedtextinput.jpg)
HAG
Top achievements
Rank 2
 answered on 06 Aug 2013
1 answer
146 views
Please show the proper use of SettingsPane.SettingsPaneViewStyle property.

Setting this property appears to do nothing.

Following http://www.telerik.com/help/wpf/raddiagram-extensions-settingspane.html I edited the control template of SettingsPaneView.  Setting the SettingsPaneViewStyle property to this new resource does nothing.  A bit frustrating since I was following the documentation.

Searching the forums I found this thread which contains a download from Zarko showing how to edit the SettingsPaneView control template.

http://www.telerik.com/community/forums/wpf/diagram/adding-my-own-properties-into-settingspane-of-raddiagram-on-selection-of-shape.aspx

In addition to editing the SettingsPaneView control template, his example also edits the SettingsPane template to hard code the use of the modified SettingsPaneView control template.  That's a small piece of very important information that has been left out of your documentation.

The apparently defunct SettingsPane.SettingsPaneViewStyle property either needs to be implemented or removed.

Yeah, I just edited the default SettingsPane control template and it does not contain a template biding to set the SettingsPaneView Style.  Here's the fix:

<telerik:SettingsPaneView x:Name="SettingsPaneView" ContextItems="{x:Null}" Diagram="{TemplateBinding Diagram}" 
Height="{TemplateBinding SettingsPaneViewHeight}" IsActive="{Binding IsActive, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
Margin="7,0,0,0" Width="{TemplateBinding SettingsPaneViewWidth}"
Style="{TemplateBinding SettingsPaneViewStyle}">

Mike
Petar Mladenov
Telerik team
 answered on 06 Aug 2013
2 answers
209 views
Hello, I have a simple question, here's what I want to do:

 <telerik:RadCartesianChart Grid.Row="1"   DataContext="{Binding Chart}" Grid.Column="0" Grid.ColumnSpan="2"></telerik:RadCartesianChart>

I want to be able to bind a RadCartesianChart to a RadCartesianChart object in my view model, do I have to use a different attribute than the one above.  I can get it to work using a holder StackPanel then calling doing this:

chartHolder.Children.Add

But I'd rather just directly manipulate the Chart object and have it directly interact with the chart rather than removing the chart, regenerating it, then adding it back to the holder.

Is this possible?
Aaron
Top achievements
Rank 1
 answered on 05 Aug 2013
5 answers
253 views
Is it possible to check whether any cell was actually modified in RowValidating event handler.
Probably it's possible to do it comparing all cell values with GridViewRowValidatingEventArgs.OldValues, but may be there is a better way to find it?

Thanks
   Alex
Lawrence
Top achievements
Rank 2
Iron
 answered on 05 Aug 2013
1 answer
39 views
Hi,

How do you

- Set Margins
- Handle print width when columns exceed physical page width  (overflow pages?).

I am using "PrintExtensions".  Are there any document(s) that explains the various properties.

Thanks
Rich
Dimitrina
Telerik team
 answered on 05 Aug 2013
1 answer
193 views
Is there any way to change the IsReadOnly column property for just the InsertRow that is being created?
I am using the RadGridView control to enter data (e.g. line items in a shopping cart). The first column is the part number, a keyed entry in the underlying data schema. The column is defined as a readonly column because a user cannot change the part number in the grid once it has been committed to the database. But when the program executes the BeginInsert method to allow data entry for a new grid line item, the column for just the insert row must allow for data entry so that the part number can be entered. If I change the column to IsReadOnly = False during the AddingNewDataItem event that changes all grid rows; not just the new insert row that has not yet been committed.
Vera
Telerik team
 answered on 05 Aug 2013
1 answer
131 views
I host RadPanel(Your Winform Control Product)  in RadTileView(Your WPF Control Product).

When I Scroll RadTileView fast , Item Header Title bar shows the residual image.
(When I host Image in RadTileView , All is Perfect.)

How can i remove this?



Tina Stancheva
Telerik team
 answered on 05 Aug 2013
3 answers
125 views
Hello,

I'm performing EF and BL in the AddLink method of ObservableGraphSourceBase and things are working fine.  As items/links are added/removed to/from the graph I can easily update my EF and persist.

I'm now adding in some business logic.  For example, I have 3 node types, A, B, C, where my BL says that node type A can only be connected to node type B.  I'm catching the AddLink and my BL is executed and when I see a link added from A to C this violates rules so I simply do no call base.AddLink(link).

This works, the internal structures are correct, however the UI is left with an orphaned connection.  I'm assuming in this case I simply need to force the diagram to redraw and this orphan will be removed.  Is that correct and how should I force the redraw?

Thanks,
Mike
Zarko
Telerik team
 answered on 05 Aug 2013
5 answers
398 views
I have a simple gird setup with a RadEntityFrameworkDataSource, RadDataPager, and RadGridView linked it works great with one exception, filters I set programmatically don't seem to trigger the underlying datasource to update.  

Telerik.Windows.Controls.GridViewColumn timeColumn = this.RadGridView1.Columns["subject_timestamp"];
Telerik.Windows.Controls.GridView.IColumnFilterDescriptor timeFilter = timeColumn.ColumnFilterDescriptor;
timeFilter.SuspendNotifications();
timeFilter.FieldFilter.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsGreaterThan;
timeFilter.FieldFilter.Filter1.Value = DateTime.Now.AddYears(-1).ToShortDateString();
timeFilter.ResumeNotifications();


It puts the right info into the filters.  If I run this in the constructor of the window after InitializeComponent(), it filters per page of the datagrid.  If I run it attached to a button after load it simply inserts the parameters into the filter and doesn't evaluate.  If I hit clear filter and insert it by hand it works perfectly.  I am just not sure what to do cause it evaluate.
Rossen Hristov
Telerik team
 answered on 05 Aug 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?