Telerik Forums
UI for WPF Forum
1 answer
189 views
I am trying to implement one of the screen in my project using RadWindow, and I wanted to do it as a singleton within the entire application.  This RadWindow will be shown as modal from time to time.   I know that using wpf windows, doing this will give you an invalidoperationexception:

win.ShowDialog();
win.Close();
win.ShowDialog();


I see that RadWindow is not derived from Window, so my question is, is it safe for me to do show or reopen the RadWindow even after it has been closed?
Kalin
Telerik team
 answered on 10 Mar 2014
3 answers
171 views
I'm using RadDataForm for the first time and to mr it seems there's an uncommon behavior. I've bound MyRadDataForm.ItemsSource to a property called 'UserList' which is of type 'ObservableCollection<UserViewModel>'. When I load users from database and add them to the ObservableCollection, then UI/RadDataForm gets updated via INotifiyPropertyChanged.

Now I want to refresh the displayed data so I clear the collection (UserList.Clear()), get the users from database again and then re-add those users to the collection (UserList.AddRange(usersFromDatabase). The problem is my UI doesn't get updated anymore. It seems that RadDataForm is only updating one time.
Dimitrina
Telerik team
 answered on 10 Mar 2014
1 answer
116 views
Hi,

Extra X and Y axis lines shows up on RadChart. For fixing this issue we need to write extra code to remove these extra lines.
Please refer document attached for more details.



To solve this issue we need to remove that extra line in code for X axis and Y axis separately.
(Code Snippet Below)

private void
HideUnusedAdditionalAxis()

        {

            FrameworkElement lastAxisObject =
null;

            FrameworkElement
notZeroItemAxisObject = null;

            var axisX2DObjects =
RelationshipSummaryDepositMonthlyBalanceChart.ChildrenOfType<AxisX2D>();

 

            foreach (var axisX2D in
axisX2DObjects)

            {

                axisX2D.Visibility =
System.Windows.Visibility.Hidden;

                lastAxisObject = axisX2D;

                if (axisX2D.Items.Count != 0)

                {

                    notZeroItemAxisObject =
axisX2D;

                }

            }

            if (lastAxisObject != null)

                (notZeroItemAxisObject ??
lastAxisObject).Visibility = System.Windows.Visibility.Visible;

        }

Peshito
Telerik team
 answered on 10 Mar 2014
5 answers
593 views
I'm trying to follow the tutorial here. http://www.telerik.com/help/wpf/radtreeview-styling-and-appearance-styling-radtreeviewitem.html

However, when I did the same thing, I couldn't find the option for editing a copy of the default style. The only option I had is creating an empty one which doesn't include anything thing. I also tried ItemContainerStyle, no luck also.




Did I miss anything?

Rellik
Top achievements
Rank 1
 answered on 10 Mar 2014
1 answer
109 views
Hi,

I have a simple text box where I would like to use a SpellChecker for norwegian language.
Can you give me any guidelines how I can do that?

Thanks
Petya
Telerik team
 answered on 07 Mar 2014
2 answers
119 views
I've just updated to the latest version of the WPF controls, and the little drop down button is not working on the document host in a docking window. The button highlights and clicks, but there's no drop down menu. This used to work, so I'm assuming some default property has been altered - or there's a bug?
Jason
Top achievements
Rank 1
 answered on 07 Mar 2014
8 answers
637 views
I want the value with the formatting characters. I was under the impression that I could bind to the Text property of the RadMaskedTextInput to do just that. However, the data binding doesn't work. It works fine if I bind to the Value property, but I don't get the formatting characters I want.
Petar Mladenov
Telerik team
 answered on 07 Mar 2014
2 answers
87 views
Hi. Please help to find solution. I tried to use following sample application attached here in thread below.
http://www.telerik.com/forums/y-axis-values-on-radcartesianchart-with-zoom
Here I see same issue which I can't resolve in mine application.

To reproduce it please do following:
1. Open sample app.
2. Select with mouse some part of chart, then release mouse.
Now notice values on that Y-axis are changed, but chart line not fit region from top to bottom. There is lot of space to top or bottom, depends on which initial area was selected.
3. Now touch scrollbar and move it a bit. You see that now chart line fit region completely.

Question here. Is there any way to force chart redraw asap after zoomed with mouse, so chart line will fit new Y-axis.

Thanks in advance.
alex.z
Top achievements
Rank 1
 answered on 07 Mar 2014
3 answers
689 views
I am attempting to use  RadPanelBar as accordion panel, where all the items are independently expanded or collapsed.
When I do the data binding though, all the controls are appearing in the header.
After looking around, I understand that I need to use a hierarchical data template. I would greatly appreciate any pointers or sample code in achieving this.
Boris
Telerik team
 answered on 06 Mar 2014
1 answer
265 views
I wrote code for a custom ScrollViewer style that only displays a ScrollViewer's HorizontalScroller once the mouse is over a clipped StackPanel, but this started to act strangely when I tried it under the docking controls. The first image shows what normally happens when you mouse over a clipped StackPanel (its clipped so the StackPanel simply just shows up, all is good).

However, when you drag Panel Two and re-dock it in the same spot as in the first picture (just under Panel One again) and then mouse over it...you start to see the left and right arrows and a roll out animation on the control (it rolls in from the left and also resets the ScrollViewer's HorizontallScroller to a horizontal position of 0). Please see the second image for this.

Here is the entire code for my WPF project that uses docking which I wrote (uses RadControls for WPF version 2013.3.1204.45):

<Window x:Class="RadDockingTests.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <Style x:Key="CustomScrollViewerStyle" TargetType="ScrollViewer">
            <Setter Property="VerticalScrollBarVisibility" Value="Disabled"/>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="HorizontalScrollBarVisibility" Value="Auto"/>
                </Trigger>
                <Trigger Property="IsMouseOver" Value="False">
                    <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <telerik:RadDocking Name="radDocking">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer Orientation="Vertical">
                    <telerik:RadPaneGroup Name="radPaneGroup">
                        <telerik:RadPane Header="Pane One">
                            <telerik:RadPane.Content>
                                <ScrollViewer Style="{StaticResource CustomScrollViewerStyle}">
                                    <StackPanel Orientation="Horizontal">
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                    </StackPanel>
                                </ScrollViewer>
                            </telerik:RadPane.Content>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="Pane Two">
                            <telerik:RadPane.Content>
                                <ScrollViewer Style="{StaticResource CustomScrollViewerStyle}">
                                    <StackPanel Orientation="Horizontal">
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                        <Button Content="This is some filler content."/>
                                    </StackPanel>
                                </ScrollViewer>
                            </telerik:RadPane.Content>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
        </telerik:RadDocking>
    </Grid>
</Window>
Masha
Telerik team
 answered on 06 Mar 2014
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?