Telerik Forums
UI for WPF Forum
9 answers
304 views
Hi,

How do nested properties work in the PropertyGrid when created using XAML.
Want to see something like:-

- Level One
    
Property One
    Property Two
    Property Three
- Level Two
    Property One
    Property Two
    Property Three
     - Level TwoOne
          Property One
          Property Two
          Property Three
     - Level TwoTwo
          Property One
          Property Two
          Property Three
- Level Three
    
Property One
    Property Two
    Property Three

Regards

John
EM
Top achievements
Rank 1
 answered on 16 Jul 2012
5 answers
221 views
Hi,

i've got two general questions regarding printing.
Is it possible to print the whole contents of RadScheduleView, even TimeSlots which aren't visible in the current Viewport ?
If more than one page is needed for printing, is it posible to have a Timeline on every printed Pageheader ?

Kind Regards
Kim
Vladi
Telerik team
 answered on 16 Jul 2012
3 answers
195 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
255 views
How do you use drag and drop to reorder tasks in a GanttView?
Yana
Telerik team
 answered on 16 Jul 2012
2 answers
88 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
185 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
222 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
254 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
111 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
95 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?