Telerik Forums
UI for WPF Forum
9 answers
384 views

When you start dragging from a connector, a Link object is immediately created and added to the diagram. I would argue that the link is added too early since it's not live until you release the mouse, but that aside! When you do release the mouse on another connector, we need to update our internal representation of the flow diagram. Hence, it makes sense to connect source and target since that is what happened. Now...

This function seems to be what we are looking for. However, target is always null (since the link is created too early :P).
public override ILink CreateLink(object source, object target)

At some point we need to know which two connectors were connected. Where do we find such an event/method override? Our best bet so far is overriding the ConnectionManipulationCompleted event, but it seems we cannot determine which two connectors were actually linked:

private void diagram_ConnectionManipulationCompleted(object sender, ManipulationRoutedEventArgs e)
{
    if (e.ManipulationStatus == ManipulationStatus.Attaching)
    {
        var startShape = e.Connection.Source as MyShape;
        var endShape = e.Connector.Shape as MyShape;

        // WHICH connectors where connected?

         ...
    }
}

If we drag from Node1.Left to Node2.Right we ought to get this piece of information. How? (Note that we have our custom connectors.

Tina Stancheva
Telerik team
 answered on 30 Jul 2013
1 answer
99 views
Does the Telerik RadControls for WPF Control Suite support a user company adding their own theme?  Our designers have been doing a lot of color research with the intent of building a common color theme to be used across our desktop and mobile products.  We were wondering if we could add our own theme(s) to be used by the Telerik WPF controls.  If so, does Telerik provide instructions for doing this type of work?  And also, what is the scope of such a project?

Thanks,
Dan
Tina Stancheva
Telerik team
 answered on 30 Jul 2013
5 answers
301 views
The simples example as it could be:

Althought NumberDecimalDigits is set to -1 by default, value is rouded to 2 and the property of viewmodel is updated immedialely without user interaction. This is neither expected nor acceptable behaviour. It makes unusable any changetracking viewmodels and causes many other problems.

View:
<telerik:RadNumericUpDown Value="{Binding NumberProperty, Mode=TwoWay}"   />

ViewModel:
public double NumberProperty
{
  get { return _NumberProperty; }
  set
  {
    if (_NumberProperty != value)
    {
      _NumberProperty = value;
      OnPropertyChanged();
    }
  }
}
private double _NumberProperty = 25.56365;
Konstantina
Telerik team
 answered on 29 Jul 2013
5 answers
167 views
Hi.
I found an issue the RadTabControl for WPF. I placed a prism region on the RadTabControl, and I did not use the region adapter the telerik offers online since I need a regular region and not an all-active region.
So the region adapter in use was prism's SelectorItemsSourceSyncBehavior.
New tabs opened as expected, but for navigation to tabs - when I resolved an already resolved view into the region, the view's tab didn't get selected.

I debugged the adapter and found out that it wasn't getting any SelectionChanged events from the control, so I tested it in a new demo app.
I added an event handler to RadTabControl.SelectionChanged and all the events did fire as expected. BUT - when I casted the control into a selector and added an event handler to ((Selector)radTab).SelectionChanged - no events fired.
Since the control actually inherits from Selector, I consider this a bug.

Eventually I just copied prism's adapter code and changed the Selector parts into RadTabControl - and it works. But I don't consider this a good solution for the long run.

Thanks, Moti.
Hristo
Telerik team
 answered on 29 Jul 2013
5 answers
134 views
Hi,

I'm using the appointment dialog for creating and editing appointments. I want to inform the user about errors in the dialog. For example if he did not fill out the subject text box. I could catch the AppointmentSaving event, but at this time the dialog has already been closed. I want to inform the user before the dialog has been closed so he can make changes in the dialog. How can I achieve this?

thanks in advance,

michael
Yana
Telerik team
 answered on 29 Jul 2013
4 answers
145 views
i have been using free trial version of telerik tool. I am not getting the property SeriesSelectionMode for a ChartSelectionBehavior
in radcartesianchart.
i am also trying to get the selected points from selected lineseries. these lineseries are selected when a rectangle is dragged over the graph. (for eg. this similar to selecting some lines from notepad and working on those lines.)
the series falling under this rectangle should give the respective data points.
Can u give me some example to work on it. Looking forward for the reply.


Supriya
Top achievements
Rank 1
 answered on 29 Jul 2013
6 answers
79 views
The release notes for Q1 2013 state that the TabStripPlacement property is now supported for RadDocking.

Could somebody please provide an example of this working?
Y
Top achievements
Rank 1
 answered on 29 Jul 2013
8 answers
263 views

Hi,

 


I’m binding CategotiesSource to my Categories collection and TimeMarkersSource to my TimeMarkers collection.

While categories are displaying perfectly right in the Edit Dialog, TimeMarkers drop down displays only Brushes’ colors I have defined; no text appears next to them.

What can be wrong?

thank you

Yana
Telerik team
 answered on 29 Jul 2013
1 answer
113 views
Hi

I'm not sure if this is the proper category for my question but I wasn't sure which to use.

I tried to compile for Release after previously successfully compiling in Debug.  I get many "Could not locate the assembly" errors.  Any ideas on how this may happen would be appreciated.

I am using Windows 8.1, and Visual Studio 2012 Desktop Express.

Thanks
Rich
Steliyan
Telerik team
 answered on 29 Jul 2013
1 answer
93 views
Hello,

Is it possible to set a custom sorting for a column, using an implementation of ICompare?

I've got a list like
1.1
1.5
1.10

With default sorting it sorts as 
1.1
1.10
1.5

Please let me know :-) Thanks in advance!

Best regards,
Ben
Yoan
Telerik team
 answered on 26 Jul 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
ProgressBar
Sparkline
LayoutControl
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
Rating
Accessibility
Callout
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?