Telerik Forums
UI for WPF Forum
3 answers
223 views
I'm currently trying to template the TrackBallInfo popup and in doing so I hoped to be able to use the behavior's "TrackInfoUpdated" event.

This is the XAML:

<chart:RadCartesianChart.Behaviors>
    <chartView:ChartPanAndZoomBehavior
        ZoomMode="Horizontal" />
    <chartView:ChartTrackBallBehavior
        ShowTrackInfo="True"
        ShowIntersectionPoints="True"
         TrackInfoUpdated="trackBallInfoUpdated" />
</chart:RadCartesianChart.Behaviors>

... and here's the code behing event handler ...

private void trackBallInfoUpdated(object sender, TrackBallInfoEventArgs e)
{
    // exploring TrackBallInfoUpdated event ...
    foreach (var info in e.Context.DataPointInfos)
    {
        info.DisplayContent = "DataItem=" + info.DataPoint.DataItem;
    }
    e.Header = "Test Header";
}

When I build this I get this errors from the compiler:

-----
Error   5   The type or namespace name 'Windows' does not exist in the namespace 'Spike.Telerik' (are you missing an assembly reference?)   C:\Users\Jesper\Documents\Visual Studio 2010\Projects\Spike.Telerik.RadChartView\GvsDefectsChartControl.xaml    66  23  Spike.Telerik.RadChartView
-----
Error   6   The type or namespace name 'Windows' does not exist in the namespace 'Spike.Telerik' (are you missing an assembly reference?)   C:\Users\Jesper\Documents\Visual Studio 2010\Projects\Spike.Telerik.RadChartView\GvsDefectsChartControl.xaml    66  135 Spike.Telerik.RadChartView
-----
Error   7   No overload for 'EventHandler' matches delegate 'System.EventHandler<Windows.Controls.ChartView.TrackBallInfoEventArgs>'    C:\Users\Jesper\Documents\Visual Studio 2010\Projects\Spike.Telerik.RadChartView\GvsDefectsChartControl.xaml    66  103 Spike.Telerik.RadChartView

The first two are quite surprising. So far as I've seen they only show up when I try using this event. The third error is just weird. I checked and double checked and the method seem to fully comply with the expected event handler signature. 

Any assistance would be greatly appreciated!
Petar Marchev
Telerik team
 answered on 16 Jul 2012
9 answers
283 views
How do you use drag and drop to reorder tasks in a GanttView?
Yana
Telerik team
 answered on 16 Jul 2012
2 answers
99 views
Hi,

I have bind the radgrid with its datasource as a dataset.This dataset contains four tables and relations are also specified in it.So a heirachy is being created in grid,now I want to remove the headers of all the grids in heirarchy but want to keep the header of main Parent grid at top only .

Can you please help?

Thanks in Advance..

Anjali Bansal
Anjali
Top achievements
Rank 1
 answered on 16 Jul 2012
2 answers
209 views
Hi there

I am currently using the RadGridView to display periodic data with the date in the column header and the value in the cells

see AdornerIssueImage1.png

The ItemsSource for the Grid is bound to a collection of view model objects that are made up of set values (Group and Category) and a collection of values.  The number of values can vary so the columns for the grid are actually set up in the code behind rather than being declaratively defined in the XAML.

Each cell can have a comment associated with it which is represented by a red triangle in the top left corner of the cell. To achieve this  a custom StyleSelector has been created that is assigned to the column CellStyleSelector. In the SelectStyle method a custom adorner is added to the AdornerLayer of the GridViewCell if a comment has been added. (annoyingly the SelectStyle method has to be manually called to get this happen, but that's another discussion).

see AdornerIssueImage2.png

The issue I am having is that if the rows are grouped, and there are comments applied to some of the top rows, and the group is then collapsed then the comment adorner shows in the group header of the group beneath the collapsed group.

see AdornerIssueImage3.png

Do you have any suggestions/thoughts/work arounds on this issue? or do you have a preferred way of generating the same UI.

Any help would be appreciated.

Cheers
                                                                                                    
Bryan Dyck
Top achievements
Rank 1
 answered on 16 Jul 2012
8 answers
245 views
How can I do to control if a connection can be attached to a connector according to its underlying graphsource model ?

If I noticed that we can take profit from ConnectionManipulationStarted and ConnectionManipulationCompleted events to act on floating connection, I have yet many doubts. 

- ConnectionManipulationStarted provides way to control the creation of a connection from a connector (Take into account the multiplicity defined by the underlying graphsource model ...).

- ConnectionManipulationCompleted
provides way to act on the result of the manipulation. So, for example, if a diagram doesn't allow connection when target shape is null, you can remove it on this event.
It's a shame that the ConnectionUtilities.DeactivateConnectors is not a public method.

That being said, these events don't provide mechanism to act before that the connectors on target shape are activated. I like to go to another visual state if the target connector should not be used by the connection.
ConnectionUtilities lists method such as IsTargetShapeValid or  ActivateNearestConnector.
Are there any ways to intercept these calls and monitor connector activation ?

Developing my own connector, I can override the UpdateVisualStates method, but I don't have much information to do something interesting.
And MouseMove... methods are not always called.

Is there another way to follow to achieve this?

Regards,
Robert
Peter
Top achievements
Rank 1
 answered on 15 Jul 2012
2 answers
276 views
Hi

I am playing with mindmap sample provided with Q2 2012 release and I am trying to display the connectors handles around the mindmap shapes. I tough that I would only had to add the corresponding VisualState as well as the ConnectorsControl on the shape template to get the connection adorner to display the connector anchors around the shapes but I can't get the diagram to show them when I hover a shape with a connection start.

Here is the visual state  I added as well as the corresponding ConnectorsControl I added to the mindmap shape template:
<VisualStateGroup x:Name="ConnectorsAdornerVisibilityStates">
         <VisualState x:Name="ConnectorsAdornerCollapsed"/>
         <VisualState x:Name="ConnectorsAdornerVisible">
          <Storyboard>
           <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ConnectorsControl">
            <DiscreteObjectKeyFrame KeyTime="0">
             <DiscreteObjectKeyFrame.Value>
              <Visibility>Visible</Visibility>
             </DiscreteObjectKeyFrame.Value>
            </DiscreteObjectKeyFrame>
           </ObjectAnimationUsingKeyFrames>
          </Storyboard>
         </VisualState>
        </VisualStateGroup>
...
<Telerik_Windows_Controls_Diagrams_Primitives:ConnectorsControl x:Name="ConnectorsControl" ItemContainerStyle="{TemplateBinding ConnectorStyle}" Visibility="Visible"/>

Anyone could share a pointer on how to display those connectors on the mindmap shapes?

Rgds
Robert
Top achievements
Rank 1
 answered on 15 Jul 2012
1 answer
126 views
Hello,

Last week I converted from 2011Q3  Scheduler to the 2012Q1 ScheduleView

I got all of my custom code to work again, but I am running into 1 problem
Resizing (no custom code) does not work properly any more I am using a custom appointment.
Moving a appointment does work all the time

I get the following error 
bij Telerik.Windows.Controls.ScheduleViewBase.<>c__DisplayClass1d.<GetDecorationBlocksForSlot>b__19(IGroupItemInfo info) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.Helpers.cs:regel 25
   bij System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   bij System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   bij System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   bij Telerik.Windows.Controls.CollectionExtensions.ForEach[T](IEnumerable`1 source, Action`1 action) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Extensions\CollectionExtensions.cs:regel 192
   bij Telerik.Windows.Controls.HighlightPanel.MeasureOverride(Size availableSize) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Selection\HighlightDecorationsPanel.cs:regel 80
   bij System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bij System.Windows.UIElement.Measure(Size availableSize)
   bij System.Windows.ContextLayoutManager.UpdateLayout()
   bij System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   bij System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   bij System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   bij System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   bij System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   bij System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   bij System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Dani
Telerik team
 answered on 13 Jul 2012
1 answer
105 views
Hello, 

i have a gridview with auto generated Colums.
After i reorded columns i cant reload gridview from stream(i see only empty Gridview ). See attched Screenshot
Petar Mladenov
Telerik team
 answered on 13 Jul 2012
4 answers
419 views
i am working with version 2010.3.1110.35
i have this in the listbox itemTemplate

<

 

telerik:RadComboBox x:Name="FieldComboBox" Grid.Column="0" ItemsSource="{Binding Fields}" SelectedItem="{Binding Field,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />

 

 



Field returns a class that implements

INotifyPropertyChanged



and Fields returns a List<Field>



now when i ran the application, if i set a breakpoint on get field, i can see it is trying to get it,
and that the value returned is correct

but when gui is finished loading

selectedindex is set to -1 and selecteditem and selectedvalue is set to null , and combobox doesn't show the selection of the field


but if i change the line into

<ComboBox x:Name="FieldComboBox" Grid.Column="0" ItemsSource="{Binding Fields}" SelectedItem="{Binding Field,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />

and use the regular wpf combobox it will work


it only happens when it's loaded , after it's loaded if i change stuff , it will work , but the first time doesn't work


how can i solved this?

thanks
Vladi
Telerik team
 answered on 13 Jul 2012
16 answers
1.5K+ views
Hi

I've just downloaded Q1 2012 SP1, and note that there are two folders - one the usual Binaries - Wpf35/Wpf40 and another one called Binaries.NoXaml.

What's the difference between the binaries in each of these folders?

I always copy the binaries over to the lib folder in my application and check them into source control.

I am running VS Beta 11 + Net 4.5 in a Virtual PC. Just running an already compiled application that was complied on a PC without VS Beta 11, is giving me some very strange errors in RadComboBoxes - basically something bound to SelectedValue/SelectedValuePath always returns null for SelectedValue.

<telerik:RadComboBox Grid.Row="2"
                               Grid.Column="1"
                               Width="80"
                               Margin="0,0,10,0"
                               HorizontalAlignment="Left"
                               VerticalContentAlignment="Top"
                               DisplayMemberPath="DisplayMember"
                               ItemsSource="{Binding CurrenciesComboSource}"
                               SelectedValue="{Binding Path=EntityToInsert.Currency,
                                                       Mode=TwoWay}"
                               SelectedValuePath="Tag.Description"
                               Style="{StaticResource BaseRadComboBoxStyle}" />

where ItemsSource is a collection of 
  public class ComboSourceItem
    {
        public object SelectedValue { get; set; }
        public string DisplayMember { get; set; }
        public string Description { get; set; }
 
        /// <summary>
        /// Use the Tag property to hold any extra data
        /// </summary>
        public object Tag { get; set; }
}

and EntityToInsert is a simple get;set; property defined in the ViewModel.

private T _entityToInsert;
public T EntityToInsert
{
      get { return _entityToInsert; }
      set {
                _entityToInsert = value;
                RaisePropertyChanged("EntityToInsert");
            }
}


If I run the same app on a machine without VS Beta 11 installed I have no problems whatsoever. I was hoping that Q1 2012 SP1 would address this, but alas not. 

I noticed that prior to installing the internal build 2012.1.319 on the Virtual machine - the sizing of all Telerik RadControls was all over the place. 2012.1.319 fixed all the sizing issues but not the question of the SelectedValue.

I would love to run VS Beta 11 on my main machine, but dare not install it since it is obviously breaking some of your controls.

Regards
Jeremy Holt

I've attached two screen shots of Snoop looking at the form. In VS2010 the SelectedValue is correct, while in VS2011 it is null. This is exactly the same code base.
Mariusz
Top achievements
Rank 1
 answered on 13 Jul 2012
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
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?