Telerik Forums
UI for WPF Forum
5 answers
270 views
Is it possible to force a RadPanelBarItem to be always open? (hide the expander button, disable double click on header)
Tina Stancheva
Telerik team
 answered on 04 Jan 2013
1 answer
92 views
Hello,

I'm fairly new to WPF, so please excuse my ignorance.  I'm trying to achieve two working areas for my program.  On the left should be a pinned tab which can be pinned/unpinned as needed.  The rest of the area should be taken up by a content area. 

I've achieved this with the following code:
<telerik:RadDocking Grid.Row="1" HasDocumentHost="False" >
 
            <telerik:RadSplitContainer telerik:RadDocking.DockState="DockedLeft" >
 
                <telerik:RadPaneGroup Name="SourceGroup">
 
                    <telerik:RadPane  Header="Sources" ContextMenuTemplate="{x:Null}" CanFloat="False" CanUserClose="False" IsPinned="True" />
 
                </telerik:RadPaneGroup>
 
                <telerik:RadPaneGroup >
 
                    <telerik:RadPane  Header="Data" ContextMenuTemplate="{x:Null}" CanFloat="False" CanUserClose="False" IsPinned="True" CanUserPin="False" />
 
                </telerik:RadPaneGroup>
 
            </telerik:RadSplitContainer>
 
        </telerik:RadDocking>

I want to keep the "Sources" pinnable pane to either a relative or absolute maximum size.  The content seems to break when I resize the window.  I've tried setting the MaxWidth on the RadPaneGroup and setting the HorizontalAlignment = "Left", but either way weird effects are produced.  I've included pictures of the two behaviors.  Thanks for any help you can give.
MadBojo
Top achievements
Rank 1
 answered on 03 Jan 2013
3 answers
172 views
Hello!

I use Telerik WPF Controls Q2 2012 for my project and I have a radgridview with filter row enabled.

In old telerik gridview for winforms each time I write in the search textbox of the filter row gridview starts filtering rows. In WPF Radgridview filtering doesn't starts until I lost focus from search textbox or I press Enter. I would like to get filter row function as the old winform gridview, can anybody halp me please?
Rossen Hristov
Telerik team
 answered on 03 Jan 2013
1 answer
98 views
Hello,

Somewhat new to WPF, familiar with WinForms RadGridView.

I want to get to the Rows and/or SelectedRows from the grid.

I am on version: 2012.3.1129.40,  version or two back I think.

Regards,

Michael
Travis
Top achievements
Rank 1
 answered on 02 Jan 2013
1 answer
84 views
Hi,

I create editor using richtextbox in which I want features to wrap code into a line like Visual Studio editor wrapping code for function and region. I'd like to know if richtextbox provides something that can do it. Thanks.

York
Petya
Telerik team
 answered on 02 Jan 2013
3 answers
574 views
I am building a prototype using a RadRibbonWindow as a main application window with a RadRibbonView.  There is a vertical line that is always on the title bar that I would like to get rid of but I can't seem to locate any way to do it.  If you look close at the attached screenshot it is behind the circular application icon.  Is there a style associated with it?  I am currently using the latest Q3 2012 build (trial edition).

I also attached a 2nd image from a sample application I downloaded from these forums that shows it more clearly.
Kiril Vandov
Telerik team
 answered on 02 Jan 2013
1 answer
109 views
I have a RadComboBox with IsEditable=True. When the selected item's property changed event is raised, the text does not change. When IsEditable=False, it does change.
The item in the drop down does change. Just not the text in the editable text box.
Yana
Telerik team
 answered on 02 Jan 2013
1 answer
158 views
We wish to use application wide implicit styling of our application.

This documentation (http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html) states that all we have to do is merge in the resources for the selected theme at the application level. We are doing this in code behind since the theme to be used is dependent on settings obtained from the user.

Adding this to the application's constructor implictly themes all the standard controls in the manner described in the current theming documentation.

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/System.Windows.xaml",
               UriKind.RelativeOrAbsolute)
         });

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/Telerik.Windows.Controls.xaml",
               UriKind.RelativeOrAbsolute)
         });

However adding this:

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName
               + ";component/Themes/Telerik.Windows.Controls.Navigation.xaml",
               UriKind.RelativeOrAbsolute)
         });


         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName
               + ";component/Themes/Telerik.Windows.Controls.Docking.xaml",
               UriKind.RelativeOrAbsolute)
         });

Does not result in any of the docking components being themed.

Attempting this:

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName
               + ";component/Themes/Telerik.Windows.Documents.xaml",
               UriKind.RelativeOrAbsolute)
         });

Results in the exception "Could not load file or assembly Telerik.Windows.Documents" even though the documentation explicitly states that use of this resource is dependent on Telerik.Controls and Telerik.Controls.Input only, (both of which we reference).

This page (http://www.telerik.com/help/wpf/common-styling-apperance-setting-theme-wpf.html) states that setting an application wide built-in theme will not theme built-in controls, only the RadControls, while this page (http://www.telerik.com/help/wpf/common-styling-themes-mscontrols.html) describes how most of the common built in controls are actually themed as well.

My impression so far is that the documentation is out-of-date, incomplete and occasionally self-contradictory.

Using version 2012.3 with C#.

Yana
Telerik team
 answered on 02 Jan 2013
1 answer
304 views
I'm attempting to wire up some functionality that will hide all of the user interface tools such as navigation, labels, zoom, and lat/lng with a button click.  Essentially, I'd call the method below to hide everything, then perform some functionality in my button click event, and then call this method again to show the user interface tools.

What happens is that the RadMap hasn't actually completed the update to the control prior to the code in "Do some stuff" executing.  I've noticed a small delay in the map rendering when the labels are turned on and off.  It "appears" that I need to figure out how to wait for the RadMap to complete its rerendering after SetMapLabels(false) prior to executing the "Do some stuff" code.

Am I correct in my assumption?  If so, can you share some insight as to which event handler would get triggered in this scenario?

private void btnDoStuff_Click(object sender, RoutedEventArgs e)
{
  SetMapLabels(false);
  // Do some stuff
  SetMapLabels(true);
}


private void SetMapLabels(bool on)
       {
           if (on)
           {
               _provider.IsLabelVisible = true;
               //   this.RadMap1.UseDefaultLayout = true;
               this.RadMap1.CommandBarVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.NavigationVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.ScaleVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.ZoomBarPresetsVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.ZoomBarVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.MouseLocationIndicatorVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.MiniMapExpanderVisibility = System.Windows.Visibility.Hidden;
               this.RadMap1.InvalidateVisual();
               this.RadMap1.UpdateLayout();
               return;
           }
 
 
           _provider.IsLabelVisible = false;
           //   this.RadMap1.UseDefaultLayout = false;
           this.RadMap1.CommandBarVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.NavigationVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.ZoomBarPresetsVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.ZoomBarVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.ScaleVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.MouseLocationIndicatorVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.MiniMapExpanderVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.InvalidateVisual();
           this.RadMap1.UpdateLayout();
 
       }
Tsvetie
Telerik team
 answered on 02 Jan 2013
3 answers
188 views
Hello,

I would like to drag and drop multiple appointment located in several different resources. The default behavior of scheduleView is that all appointments are dropped into the pointed resource row on mouse release. What I want is a slide up or down of each item selected, keeping them at the same distance from each other's at the mouse release. You will see what I really want on attached pictures.

AB.

Yana
Telerik team
 answered on 02 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?