Telerik Forums
UI for WPF Forum
2 answers
502 views
I have a RadTreeView inside a ScrollViewer.

When the mouse wheel is scrolled over the RadTreeView the parent ScrollViewer does not scroll.

Is there an easy way to change this behavior that I'm missing (or a hard way for that matter)?

Ed
Edward
Top achievements
Rank 1
 answered on 10 Jan 2013
5 answers
564 views
Hi,

I have been given the task of rewriting an old application, and I'd like to use the RadControls for some parts of it. In this application, the user has to be able to place items on a schematic view, like this.

I have a couple of questions though, because I wasn't able to figure out how to do the following things from the RadDiagram Help/Tutorials, as I am quite new to more advanced WPF stuff (have only written relatively simple apps before) and MVVM in general:

1. How can I create diagram objects (for starters, they can just be rectangles) that simply have an Image control with their respective Bitmap set as the source (so I can get objects like in the screenshot by using the bitmaps that I have and avoid having to write their Geometry in WPF), with multiple connectors on each side (like the ISDN block in the lower right corner), and a Dictionary for each instance of an object to store custom properties? I've been through the "How To Create Custom Shape" tutorial, but still don't really know how to tackle this problem.

2. How do I add these objects to the toolbox later on? Do I just create a Gallery (ObservableCollection) with those Shapes and add that to the item ObservableCollection of my ViewModel?

Thanks
Tina Stancheva
Telerik team
 answered on 10 Jan 2013
2 answers
135 views
private void diagram_ConnectionManipulationStarted(object sender, ManipulationRoutedEventArgs e)
{
    MyShape source = e.Connection.Source as MyShape;
    // source.MyData == null?
}

We're trying to add logic for connection manipulation. Why isn't our custom data set in this event when it is indeed set for our nodes in the graph?
Kristoffer
Top achievements
Rank 1
 answered on 10 Jan 2013
3 answers
214 views
Hi,

I'm using PivotGrid and it's a amazing control.
Now, I need to localize PivotGrid and PivotFieldList to "pt-BR".
I've done this with GridView with LocalizationManager, but I didn't find a table with key-description pair in PivotGrid documentation as I found in GridView documentation.

Another point is that I don't know how to display a user friendly name to my columns.
In both, PivotGrid and PivotFieldList, they show only the original property name of my object.

Regards, JP.
Rosen Vladimirov
Telerik team
 answered on 10 Jan 2013
0 answers
57 views
Is there an easy way to control where the dialog window is displayed? Our client would like the window to display directly above the selected appointment much like a tool tip. Can this be done without doing a lot of casting of the mouse location?

Thanks!
Josh
Top achievements
Rank 1
 asked on 10 Jan 2013
2 answers
124 views
Hi,

I have implemented a method that handles my ScheduleView's DialogClosing event. In this method I am determining if the appointment about to be created overlaps with any other appointment and I am prompting the user to confirm their action if an overlap was detected since merging will take place.

In the answer to this thread, Konstantina mentions that: "There in the event's arguments, the DialogResult shows whether the ok or cancel button has been clicked"; however, the CancelRoutedEventArgs does not have a DialogResult property and I cannot figure out how to retrieve the this information.

So, my question is: how to you retrieve the DialogResult within the ScheduleView's DialogClosing event?

I am looking forward to your advise.

Thank you,

-Rebecca
Rebecca
Top achievements
Rank 1
 answered on 10 Jan 2013
7 answers
448 views
hello, I have 3 RadComboBox with Checked on the page. I want to always be open but in reality after I choose the RadComboBox closed.
I have RadControls for WPF Q1 2010.
I am attaching a sample code.
Thanks liza.

 

 

Border Style="{StaticResource BorderCombo_Details}" Grid.Column="2" Grid.Row="3" Width="200" HorizontalAlignment="Left" VerticalAlignment="Top">
<telerikInput:RadComboBox x:Name="cmbFamilyCompositionWithSen" TabIndex="43" ToolTip="{x:Static Resx:Strings.Mselects_Tolltip}" Style="{StaticResource RadComboBoxCheack_Details}"
Validation.Error="Validation_Error" IsDropDownOpen="True" MaxDropDownHeight="40" StaysOpenOnEdit="True"  FlowDirection="RightToLeft"> 
 
<telerik:RadComboBox.SelectionBoxTemplate
 
<DataTemplate
 
<TextBlock Text="{x:Null}"/> 
 
</DataTemplate
 
</telerik:RadComboBox.SelectionBoxTemplate
 
<telerik:RadComboBox.ItemTemplate
 
<DataTemplate
 
<StackPanel Orientation="Horizontal"> 
 
<CheckBox IsChecked="{Binding Path=FC_IsChecked,Mode=OneWay}" x:Name="cbxFamilyCompositionWithSen" 
 
Tag="{Binding Path=FC_ID}"  GotFocus="cbxOfCmb_GotFocus"  Checked="AddRemoveFamliyCom"  Unchecked="AddRemoveFamliyCom"/> 
 
<TextBlock Text="{Binding Path=FC_Desc}"/> 
</StackPanel>
</DataTemplate>
</telerik:RadComboBox.ItemTemplate
</telerikInput:RadComboBox
</Border>

 

 

 

 

Konstantina
Telerik team
 answered on 10 Jan 2013
1 answer
139 views
Hi,
I have three questions regarding PivotGrid and ChartView:

1. Will the upcoming release have the capability to bind WPF ChartView to PivotGrid, similar to the WinForms version?
2. Is there a way to access the poperties in PivotGrid now and create a collection that can be used for binding with WPF ChartView?
3. Finally, if none of the above are implementable, can the WinForms PivotGridChartDataProvider object be used as a datasource for WPF ChartView?

Thanks,
Dave
Rosen Vladimirov
Telerik team
 answered on 10 Jan 2013
8 answers
718 views
I am trying to figure out how I can control the display of the X-Axis tick labels in the code-behind. 
I need to be able to create a graph like the sample attached (custom tick labels) where there are many data points for each label but I only want a label to appear aligned with the first of the data points belonging to that label.  Instead I am only able to get what you see in the "too many labels" attached image.

The labels may not be equal step distances apart as seen in the example going from Dec 14th to Dec 17th as data points are not collected on some days so using dates as my tick values doesn't work well.

I have used an XCategory item mapping to add the items for the x-axis. 
Then I added a event that is firing and the label points are being set to blank when I step through in debug. However the chart still displays the tick labels anyway when I view it.   

Am I making this change in the wrong event or am I changing the wrong property of the tick? What else can I do to make this work?

UPDATE: Just discovered that if I re-run my code to reload the chart the second run takes a relatively long time (over 60 secs to process) and then the tick labels do hide/show as desired. I'm not sure why the second run is so slow and why my labels won't hide the first time through.

ItemMapping itemMap = new ItemMapping("StockValue", DataPointMember.YValue);
seriesMapping.ItemMappings.Add(itemMap);
 
itemMap = new ItemMapping("XCat", DataPointMember.XCategory);
seriesMapping.ItemMappings.Add(itemMap);
 
 
radChart.DataBound += (o, e) =>
{
    TickPointCollection tickPoints = radChart.DefaultView.ChartArea.AxisX.TickPoints;
    if (tickPoints != null)
    {
        foreach (TickPoint point in tickPoints)
        {
            // don't show a label if it has been marked with an X to hide it
            if (point.Label.Contains("X"))
            {
                point.Label = " ";  // THIS IS HAPPENING IN DEBUG - so why do they show on the chart?
            }
            else
            {
                point.Label = point.Label;  // only a few qualify to get here and thus keep their labels
            }
        }
    }
};
Nikolay
Telerik team
 answered on 10 Jan 2013
0 answers
135 views
Hi,

I use RadRichTextBoxRibbonUI and RadRichTextBox to create an editor myself. I want to get font family (like "Arial") and font size currently active in RadRichTextBoxRibbonUI panel in the code behind. How to do it?

Thanks,
York
york
Top achievements
Rank 1
 asked on 10 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?