Telerik Forums
UI for WPF Forum
5 answers
90 views
I have a RadPane blocking the correct compass, so instead of docking to a higher level, my window becomes a peer to the RadPane within the RadPane to which I want to dock.
Please help.
Miroslav Nedyalkov
Telerik team
 answered on 24 Mar 2010
1 answer
565 views
I have been fighting with this for the last two hours, reading other posts on it, editing a copy of the itemtemplate.  Basically, I like the RadPanelBar, but I really don't like the mouseover effect on the background.  I don't know if this is the Panel its self or the Item.  But I have to get rid of this.  I have a hard blue background with a listbox.  When I hover over to select a listbox item, the background turns yellowish which looks terrible.  Again, I read the other post about specifically taking over the triggers for the RadPanelBarItem, but it has no effect.

Here is my code.  Try it yourself and you will see the very bad yellow trigger effect.  I don't want it to change. I want it to stay the dark blue the entire time.

 

 

 

<Grid>

 

 

 

 

<Grid.Background>

 

 

 

 

<RadialGradientBrush>

 

 

 

 

<GradientStop Color="#FF3A7198" Offset="0.982"/>

 

 

 

 

<GradientStop Color="#FF365D7A" Offset="0.029"/>

 

 

 

 

</RadialGradientBrush>

 

 

 

 

</Grid.Background>

 

 

 

 

<telerikNavigation:RadPanelBar VerticalAlignment="Stretch" x:Name="radPanelBar" Background="Transparent">

 

 

 

 

<telerikNavigation:RadPanelBarItem>

 

 

 

 

<telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<TextBlock Text="Workflow Templates" Margin="5 4 5 5" />

 

 

 

 

</telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<ListBox x:Name="lstWorkFlowTemplates"

 

 

 

SelectionChanged="lstTemplates_SelectionChanged"

 

 

 

Background="Transparent"

 

 

 

BorderThickness="0"

 

 

 

IsSynchronizedWithCurrentItem="True"/>

 

 

 

 

</telerikNavigation:RadPanelBarItem>

 

 

 

 

<telerikNavigation:RadPanelBarItem>

 

 

 

 

<telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<TextBlock Text="Column Templates" Margin="5 4 5 5" />

 

 

 

 

</telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<ListBox x:Name="lstTemplates"

 

 

 

SelectionChanged="lstTemplates_SelectionChanged"

 

 

 

Background="Transparent"

 

 

 

BorderThickness="0"

 

 

 

IsSynchronizedWithCurrentItem="True"/>

 

 

 

 

</telerikNavigation:RadPanelBarItem>

 

 

 

 

</telerikNavigation:RadPanelBar>

 

 

 

 

</Grid>

 

Dimitrina
Telerik team
 answered on 24 Mar 2010
3 answers
172 views
I would like to known if

RadBook is avaiable to WPF ( windows ) Application .

Bobi
Telerik team
 answered on 24 Mar 2010
0 answers
92 views

Hai
am using telerik wpf grid

in grid selection change event am getting the selected row values. the problem is the values are as object.

object myData = radGridView.SelectedItem;

the object myData contains the row values. but i don know how to get values from the myData object

here is my sample
http://cid-08ec3041618e8ee4.skydrive.live.com/self.aspx/.SharedFavorites/wpfgridview.rar

dCODE
Top achievements
Rank 1
 asked on 24 Mar 2010
5 answers
1.0K+ views
I'm glad the FocusVisualStyle has been fixed for the header controls but the docking control is still displaying an erratic dotted rectangle.
We need to ship and can't wait anymore for next upgrade so I need a workaround to remove the FocusVisual rectangle that bounce all around when dragging a docking window.

See image of the problem :
http://img442.imageshack.us/img442/2149/q10.png

Setting FocusVisualStyle property of the docking control doesn't remove the rectangle. All WPF standard controls and the one I have from different vendors supports the API correctly and I need to make this work for your controls as well. I've read somewhere on the forum that a control template could be used as a workaround but I don't have Microsoft Blend and I don't know how and what to override in the template (I don't know anything about control templates).

Can you provide the template code or whatever that will fix this?

Thanks,
Yury
Yury Last
Top achievements
Rank 1
 answered on 24 Mar 2010
4 answers
230 views
Hello,
Is there a way to automatically display the ErrorMessage when validating data on a cell level?  So the user does not have to hover over the corner of the cell to see the error message.

Thank You,
Nate
nbahl
Top achievements
Rank 1
 answered on 23 Mar 2010
3 answers
516 views
Hi Telerik,
In the following code i want to set the width of RadDocking to the windows width. i also want close panes programmitally on the basis of combo box item. my problem is that i am unable to set the width of rad docking.

<Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="Auto"></RowDefinition> 
            <RowDefinition></RowDefinition>  
        </Grid.RowDefinitions> 
        <ComboBox x:Name="cmbViewItem" Grid.Row="0" SelectionChanged="ComboBox_SelectionChanged">  
            <ComboBoxItem>Input</ComboBoxItem> 
            <ComboBoxItem>Ouput</ComboBoxItem> 
            <ComboBoxItem>SpreadSheet</ComboBoxItem> 
            <ComboBoxItem>Input And Output</ComboBoxItem> 
        </ComboBox> 
        <radDock:RadDocking Grid.Row="1">  
            <radDock:RadSplitContainer Orientation="Vertical">  
                <radDock:RadSplitContainer x:Name="TreeSpliter" Orientation="Horizontal">  
                    <radDock:RadPaneGroup x:Name="winInputTree">  
                        <radDock:RadPane  x:Name="inputs" Header="Inputs"  CanUserClose="True" CanUserPin="False" > 
                            <navigation:RadTreeView x:Name="InputTreeGrop" SelectionMode="Multiple" 
                                                    IsDragDropEnabled="True" IsEditable="True">  
                                <navigation:RadTreeViewItem Header="HBO">  
                                </navigation:RadTreeViewItem> 
                                <navigation:RadTreeViewItem Header="Star">  
                                </navigation:RadTreeViewItem> 
                                <navigation:RadTreeViewItem Header="NEO">  
                                </navigation:RadTreeViewItem> 
                                <navigation:RadTreeViewItem Header="GEO">  
                                </navigation:RadTreeViewItem> 
                                <navigation:RadTreeViewItem Header="TenSports">  
                                </navigation:RadTreeViewItem> 
                                <navigation:RadTreeViewItem Header="A"/>  
                                <navigation:RadTreeViewItem Header="B"/>  
                                <navigation:RadTreeViewItem Header="C"/>  
                                <navigation:RadTreeViewItem Header="D"/>  
                                <navigation:RadTreeViewItem Header="E"/>  
                                <navigation:RadTreeViewItem Header="F"/>  
                                <navigation:RadTreeViewItem Header="G"/>  
                                <navigation:RadTreeViewItem Header="H"/>  
                                <navigation:RadTreeViewItem Header="I"/>  
                                <navigation:RadTreeViewItem Header="J"/>  
                                <navigation:RadTreeViewItem Header="K"/>  
 
                            </navigation:RadTreeView> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                    <radDock:RadPaneGroup x:Name="winOutputTree">  
                        <radDock:RadPane x:Name="outputs" Title="Outputs"  CanUserClose="True" CanUserPin="False">  
                            <navigation:RadTabControl x:Name="tabOutputTree" TabStripPlacement="Bottom" BorderThickness="0,0,0,1" Padding="0" 
                                    SnapsToDevicePixels="True" BorderBrush="#6A90BF">  
                                <navigation:RadTabItem x:Name="tabStandard" Header="_Standard">  
                                    <navigation:RadTreeView x:Name="outputTree" SelectionMode="Multiple" 
                                                    IsDragDropEnabled="True" IsEditable="True">  
                                        <navigation:RadTreeViewItem Header="HBO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="Star">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="NEO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="GEO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="TenSports"/>  
 
                                    </navigation:RadTreeView> 
                                </navigation:RadTabItem> 
                                <navigation:RadTabItem x:Name="tabStatisticalMultiplexing" Header="Statistical _Multiplexing">  
                                    <navigation:RadTreeView x:Name="Out" SelectionMode="Multiple" 
                                                    IsDragDropEnabled="True" IsEditable="True">  
                                        <navigation:RadTreeViewItem Header="Cricket">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="Hockey">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="Glof">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="Table Tanis">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="Tenis">  
                                        </navigation:RadTreeViewItem> 
                                    </navigation:RadTreeView> 
                                </navigation:RadTabItem> 
                            </navigation:RadTabControl> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                    <radDock:RadPaneGroup x:Name="winSpreadsheet">  
                        <radDock:RadPane x:Name="spreadSheet"  Title="Spreadsheet" CanUserClose="True" 
                                        CanUserPin="False">  
                            <navigation:RadTreeViewItem> 
                                <navigation:RadTreeViewItem Header="SpreadSheet"/>  
                            </navigation:RadTreeViewItem> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                </radDock:RadSplitContainer> 
                <radDock:RadSplitContainer> 
                    <radDock:RadPaneGroup x:Name="winCommandBuffer">  
                        <radDock:RadPane x:Name="commandBuffer" Title="Command Buffer" CanUserPin="False" CanUserClose="False" > 
                            <navigation:RadTabControl x:Name="tabCommandBuffer" TabStripPlacement="Bottom" BorderThickness="0,0,0,1" Padding="0" 
                                    SnapsToDevicePixels="True" BorderBrush="#6A90BF">  
                                <navigation:RadTabItem x:Name="winCurrentCommandBuffer" Header="Current Changes">  
                                    <navigation:RadTreeView x:Name="currentoutputTree" SelectionMode="Multiple" 
                                                    IsDragDropEnabled="True" IsEditable="True">  
                                        <navigation:RadTreeViewItem Header="HBO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="Star">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="NEO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="GEO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="TenSports"/>  
 
                                    </navigation:RadTreeView> 
                                </navigation:RadTabItem> 
                                <navigation:RadTabItem x:Name="winPreviousCommandBuffer" Header="Previous Changes">  
                                    <navigation:RadTreeView x:Name="previouse" SelectionMode="Multiple" 
                                                    IsDragDropEnabled="True" IsEditable="True">  
                                        <navigation:RadTreeViewItem Header="HBO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="Star">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="NEO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="GEO">  
                                        </navigation:RadTreeViewItem> 
                                        <navigation:RadTreeViewItem Header="TenSports"/>  
 
                                    </navigation:RadTreeView> 
                                </navigation:RadTabItem> 
                            </navigation:RadTabControl> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                </radDock:RadSplitContainer> 
            </radDock:RadSplitContainer> 
        </radDock:RadDocking> 
    </Grid> 
Thanks
Balaram

Konstantina
Telerik team
 answered on 23 Mar 2010
1 answer
77 views

Can I use the free version (RadControls_for_WPF_2009_2_0813_FREE_EDITION) with visual studio 2010. If so how?

Thanks in advance

Bob 

Milan
Telerik team
 answered on 23 Mar 2010
5 answers
231 views
Hello,

We're working on a project to pull data from servers.  The code goes over the network to each server of interest and retrieves some server information (i.e. name, Operating System, etc.) which in turn is added to the ObservableCollection.  Everything works fine; however, it can take several minutes to go to each server and pull back the data.  Therefore, we would like to populate the gridview as the data is returned.  For example...application retrieves the name of server 1, the gridview displays server 1 data while in the background server 2 data is retrieved and displayed once it returns, etc.

So here is what we've tried with Gridview bound to an ObservableCollection.

Retrieving the data with a backgroundworker (which works, but the data still does not display on the grid as retrieved).
Tried other Data Types (DataSet, List, etc.) - they all work but all of the data has to be retrieved before being displayed.
Looked at the OnCollectionChanged event and as each server is queried and populated into the ObservableCollection - the event it fired.
Tried changing the DataLoadMode to Asynchronous

Below is the code behind...

using System;  
using System.Collections.Generic;  
using System.Collections.ObjectModel;  
using System.Collections.Specialized;  
using System.ComponentModel;  
using System.DirectoryServices;  
using System.Linq;  
using System.Text;  
using System.Threading;  
using System.Windows;  
using System.Windows.Controls;  
using System.Windows.Data;  
using System.Windows.Documents;  
using System.Windows.Input;  
using System.Windows.Media;  
using System.Windows.Media.Imaging;  
using System.Windows.Shapes;  
using System.Windows.Threading;  
using Telerik.Windows.Controls;  
 
namespace TestXmlSerialize123  
{  
    /// <summary>  
    /// Interaction logic for Window2.xaml  
    /// </summary>  
    public partial class Window2 : Window  
    {  
        public Window2()  
        {  
            InitializeComponent();  
            worker.DoWork += new DoWorkEventHandler(worker_DoWork);  
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);  
            worker.ProgressChanged += new ProgressChangedEventHandler(worker_ProgressChanged);  
            //worker.WorkerReportsProgress = true;  
            //this.radGridView2.IsBusy = true;  
            DomainControllerList.CollectionChanged += OnCollectionChanged;  
 
 
        }
        #region Variables  
          
        BackgroundWorker worker = new BackgroundWorker();
        #endregion  
 
        private void worker_DoWork(object sender, DoWorkEventArgs e)  
        {  
            //Thread.Sleep(5000);  
            FetchDomainControllers();  
 
        }  
 
        private void worker_ProgressChanged(object sender, ProgressChangedEventArgs e)  
        {  
            this.radGridView2.ItemsSource = e.UserState;  
 
        }  
 
        private void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)  
        {  
            this.radGridView2.ItemsSource = DomainControllerList;  
        }  
 
        private ObservableCollection<DADdomainControllers> _domainControllerList = new ObservableCollection<DADdomainControllers>();  
        public ObservableCollection<DADdomainControllers> DomainControllerList  
        {  
            get { return _domainControllerList; }  
        }  
 
        private void FetchDomainControllers()  
        {  
 
 
 
            DirectoryEntry rootDSE = new DirectoryEntry("LDAP://rootDSE");  
            string configurationNamingContext = (string)rootDSE.Properties["configurationNamingContext"].Value;  
 
            DirectoryEntry deConfig = new DirectoryEntry("LDAP://" + configurationNamingContext);  
            DirectorySearcher dsConfig = new DirectorySearcher(deConfig);  
            dsConfig.Filter = "(objectClass=ntDSDSA)";  
 
            SearchResultCollection results = dsConfig.FindAll();  
 
            foreach (SearchResult Result in results)  
            {  
 
                DirectoryEntry deDomain = Result.GetDirectoryEntry();  
 
                if (deDomain != null)  
                {  
 
                    string _dnsHostName = deDomain.Parent.Properties["DNSHostName"].Value.ToString();  
                    string _serverReference = deDomain.Parent.Properties["serverReference"].Value.ToString();  
                    _domainControllerList.Add(new DADdomainControllers { dnsHostName = _dnsHostName, distinguishedName = _serverReference });  
                    //radGridView2.Dispatcher.Invoke(DispatcherPriority.Normal,(Action)(() => { radGridView2.ItemsSource = DomainControllerList; }));  
                    //this.radGridView2.ItemsSource = DomainControllerList;  
 
                }  
            }  
 
 
 
        }  
 
        public class DADdomainControllers  
        {  
            public string dnsHostName {getset;}  
            public string distinguishedName {getset;}  
        }  
 
        private void Window_Loaded(object sender, RoutedEventArgs e)  
        {  
 
                          
        }  
 
        private void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)  
        {  
            //MessageBox.Show("Collection Changed");  
              
 
        }  
 
        private void radGridView2_Loaded(object sender, RoutedEventArgs e)  
        {  
            Thread.Sleep(3000);  
            worker.RunWorkerAsync();  
        }  
 
    }  

Not much to the XAML but here it is...

<Window x:Class="TestXmlSerialize123.Window2" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    Title="Window2" Height="600" Width="800" Loaded="Window_Loaded">  
    <Grid> 
        <telerik:RadGridView Name="radGridView2" DataLoadMode="Asynchronous" Loaded="radGridView2_Loaded" /> 
    </Grid> 
</Window> 


Vlad
Telerik team
 answered on 23 Mar 2010
3 answers
223 views
Hello,

I'm using the telerik TreeView, which uses the default telerik style for the scrollbar. The other scrollbars in the application have the default windows style. How can I apply the default windows style to the telerik scrollbar?
Tihomir Petkov
Telerik team
 answered on 23 Mar 2010
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?