Telerik Forums
UI for WPF Forum
3 answers
415 views
Hi,
I just want to refresh single Radtreeview item instead of to refresh all items of a Radtreeview, can anyone tell me how?

Miroslav
Telerik team
 answered on 23 Feb 2010
2 answers
113 views
Q309 Prerelease build 1419 references components in unavailable build 1418

Just downloaded build 1419 from the website.  The Telerik.Windows.Controls.Docking.dll references build 1418 which is not publicly available.  Anyone know a workaround for this until we get another prerelease from Telerik?
Hristo
Telerik team
 answered on 23 Feb 2010
3 answers
137 views
Hello,
In my application I add a usercontrol containing raddocking to the visual tree. When I remove this usercontrol from the visual tree it stays in memory because it seems that raddocking still has a reference to something. See example code below.


<UserControl xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"  x:Class="UserControl1" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
             mc:Ignorable="d"  
             d:DesignHeight="300" d:DesignWidth="300"
    <Grid> 
            <my:RadDocking></my:RadDocking> 
    </Grid> 
</UserControl>

 

<Window x:Class="MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="MainWindow" Height="350" Width="525"
    <Grid> 
        <DockPanel  Name="DockPanel1"
            <StackPanel Orientation="Horizontal" DockPanel.Dock="top" HorizontalAlignment="Center" VerticalAlignment="Top" > 
                <Button Name="Add" Click="Add_Click" Margin="5">Add</Button> 
                <Button Name="Remove" Click="Remove_Click" Margin="5" >remove</Button> 
           </StackPanel> 
        </DockPanel> 
    </Grid> 
</Window> 
 
Class MainWindow  
    Private uc As New UserControl1 
    Private Sub Add_Click(ByVal sender As System.ObjectByVal e As System.Windows.RoutedEventArgs) 
        If Not DockPanel1.Children.Contains(uc) Then 
            DockPanel1.Children.Add(uc) 
        End If 
    End Sub 
 
    Private Sub Remove_Click(ByVal sender As System.ObjectByVal e As System.Windows.RoutedEventArgs) 
        If DockPanel1.Children.Contains(uc) Then 
            DockPanel1.Children.Remove(uc) 
        End If 
        uc = Nothing 
    End Sub 
End Class 

Miroslav Nedyalkov
Telerik team
 answered on 23 Feb 2010
3 answers
100 views
hi,

i have this sample code:
RadPane FormRadPane = new RadPane() { Header = "Not Document Pane", CanDockInDocumentHost = false }; 
TextBlock txtBlock = new TextBlock(); 
txtBlock.Text = "This Pane Cannot be docked in to document host"
FormRadPane.Content = txtBlock; 
 
RadPaneGroup NewPaneGroup = new RadPaneGroup(); 
NewPaneGroup.Items.Add(FormRadPane); 
 
RadSplitContainer FormSplitContainer = new RadSplitContainer(); 
FormSplitContainer.InitialPosition = DockState.FloatingDockable; 
FormSplitContainer.Items.Add(NewPaneGroup); 
 
MainDockingControl.Items.Add(FormSplitContainer); 

i've put a breakpoint on the last code row.
in the immediate window in run time i write:
FormSplitContainer.ChildrenOfType<RadPane>() 

and it i get no items i.e. "Items Count = 0".
meaning - the split container doesn't contain any panes.
is that a bug?
Miroslav Nedyalkov
Telerik team
 answered on 23 Feb 2010
3 answers
163 views
hi,
i have a simple DockControl XAML:
<radDock:RadDocking FlowDirection="RightToLeft" DockPanel.Dock="Bottom"
                <radDock:RadDocking.DocumentHost> 
                    <radDock:RadPaneGroup> 
                        <radDock:RadPane Header="Bottom Docked Control - Pane #1" CanFloat="true"
                            <TextBlock>Bottom Docked Control - Pane #1</TextBlock> 
                        </radDock:RadPane> 
                         
                        <radDock:RadPane Header="Bottom Docked Control - Pane #2" CanFloat="true"
                            <TextBlock>Bottom Docked Control - Pane #2</TextBlock> 
                        </radDock:RadPane> 
                         
                        <radDock:RadPane Header="Bottom Docked Control - Pane #3" CanFloat="true"
                            <TextBlock>Bottom Docked Control - Pane #3</TextBlock> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                </radDock:RadDocking.DocumentHost> 
            </radDock:RadDocking> 


what happens is when i float (undock) all of the panes from the DocumentHost i can't dock them again in the DocumentHost
only dock them to four sides, the compass doesn't give me the option, it's like the DocumentHost Disappear when it has no Panes
docking inside it, is there a solution to this situation or do i have to make sure that a least on pane will stay in the DocumentHost
so i can dock to it?

thank so much in advance.
Konstantina
Telerik team
 answered on 23 Feb 2010
2 answers
88 views
Hi All,
Currently we are creating unified code for wpf and silverlight . Here currently am stuck with an issue . In Telerik Silverlight Gridview is having FindNewRow Method , But it is found to be missing in wpf gridview .
1. what is the wpf equivalent of findnewrow?
2.Record Property is missing in wpfgrid, will it can be replaced using items property?
any help on this will be appreciated
Regards
Anju
Anju S
Top achievements
Rank 1
 answered on 23 Feb 2010
1 answer
164 views
How do I remove the yellow background from the selected item?  Below is the current control I am using
<telerik:RadCarousel x:Name="itemCarousel" HorizontalAlignment="Stretch" 
                VerticalAlignment="Stretch" Height="500" Width="834" HorizontalScrollBarVisibility ="Hidden"  Loaded="itemCarousel_Loaded" AutoGenerateDataPresenters="True"
                    <telerik:RadCarousel.Resources> 
                        <Style x:Key="bundlePanel" TargetType="{x:Type telerik:RadCarouselPanel}" > 
                            <EventSetter Event="TopContainerChanged" Handler="panel_TopContainerChanged"/> 
                            <Setter Property="ItemsPerPage" Value="3"/> 
                            <Setter Property="IsOpacityEnabled" Value="False"/> 
                            <Setter Property="PathPadding" Value="0,0,0,100"/> 
                        </Style> 
 
                    </telerik:RadCarousel.Resources> 
                </telerik:RadCarousel> 


Thanks
Milan
Telerik team
 answered on 23 Feb 2010
0 answers
110 views
Hi

 i need to create make my slider dynamic. so i need to change my maximum value for each 5 mins, so am trying to  bind my maximum and minimum value(DateTime) from database. here am facing problem,that i cannot bind the values in minimum,maximum and in the textblock, i cant even call the biniding function here, please tel me how to call and bind my values to the slider

<

 

telerik:RadSlider Minimum="{Binding {StaticResource MinValue}}" Maximum="{Binding {StaticResource MaxValue}}" TickFrequency="1" TickPlacement="BottomRight" IsSnapToTickEnabled="True" Margin="133,175,114,204">

 

 

 

 

 

 

<telerik:RadSlider.TickTemplate>

 

 

 

 

 

 

<DataTemplate>

 

 

 

 

 

 

<StackPanel>

 

 

 

<Ellipse Width="5" Height="5" Fill="Black" HorizontalAlignment="Center"/>

 

 

 

<TextBlock Text="{Binding}" FontSize="10"/>

 

 

 

</StackPanel>

 

 

 

 

 

 

</DataTemplate>

 

 

 

 

 

 

</telerik:RadSlider.TickTemplate>

 

 

 

 

 

 

</telerik:RadSlider>

 

 

dCODE
Top achievements
Rank 1
 asked on 23 Feb 2010
1 answer
92 views
With the new beta, setting the VerticalAlignment and/or HorizontalAlignment to Stretch no longer allows the control to fill inside the parent control.

<Telerik:RadPanelBar Orientation="Horizontal" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ExpandMode="Single"  > 
                 

Tihomir Petkov
Telerik team
 answered on 22 Feb 2010
1 answer
159 views
I am running 2009.3.1322.35. I have a RadGridView in a StackPanel in a Popup. My problem is that the first time the popup appears the horizontal scrollbar for the RadGridView is either not visible or is visible but does not allow one to scroll and see all of the text. The scrollbar works properly the second time the popup is visible.

 

 

<Popup IsOpen="{Binding Path=ValidSoftwareIsOpen, Mode=OneWay}"

 

 

AllowsTransparency="True"

 

 

PopupAnimation="Slide"

 

 

Placement="Center"

 

 

Width="Auto"

 

 

Height="Auto"

 

 

PlacementTarget="{Binding ElementName=avionicsviewBorder }"

 

 

Name="validSoftware"

 

 

StaysOpen="True"

 

 

>

 

 

 

<Border BorderThickness="5" BorderBrush="Black" Opacity="1" Width="Auto"

 

 

Height="Auto" CornerRadius="5,5,5,5">

 

 

 

<StackPanel Width="Auto" Height="Auto" Background="{DynamicResource popupBackgroundBrush}" Margin="0" Opacity="1">

 

 

 

<Border Style="{DynamicResource propertiesPopupBorder}" Background="{DynamicResource titleBarBrush}">

 

 

 

<Label FontSize="16" Foreground="White" >

 

Valid Software

 

 

</Label>

 

 

 

</Border>

 

 

 

 

<telerik:RadGridView

 

 

Name="ValidSoftwareListView"

 

 

ItemsSource="{Binding Path=AircraftSoftwareValidCollection}"

 

 

CanUserInsertRows="False"

 

 

SnapsToDevicePixels="True"

 

 

HeaderRowStyle="{DynamicResource radGridViewHeaderStyle}"

 

 

AutoGenerateColumns="False"

 

 

IsReadOnly="True"

 

 

Width="300"

 

 

ColumnsWidthMode="Auto"

 

 

telerik:StyleManager.Theme="Office_Black"

 

 

FontSize="12"

 

 

>

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewDataColumn Header="Name" UniqueName="SoftwareName" DataMemberBinding="{Binding Path=Name}" Width="Auto"/>

 

 

 

<telerik:GridViewDataColumn Header="CSCI" UniqueName="SoftwareCsci" DataMemberBinding="{Binding Path=Csci}" Width="Auto"/>

 

 

 

<telerik:GridViewDataColumn Header="Current" UniqueName="SoftwareCurrent" DataMemberBinding="{Binding Path=Current}" Width="Auto"/>

 

 

 

<telerik:GridViewDataColumn Header="Replacement" UniqueName="SoftwareReplacement" DataMemberBinding="{Binding Path=Replacement}" Width="Auto"/>

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

<Button Template="{DynamicResource GlassButton}" Content="Ok" HorizontalAlignment="Right"

 

 

VerticalAlignment="Center"

 

 

Command="{Binding Path=OkCommand}" Style="{DynamicResource bottomButtonStyle}"/>

 

 

 

</StackPanel>

 

 

 

</Border>

 

 

 

</Popup>

I tried replacing the StackPanel with a grid with no sucess.

Another issue I have is that if my application window is full screen and I have my popup centered in the window and I click on a filter the filter popup does not show all the fields. This is not a problem when the application window is not full screen. 

Donald

 

Rossen Hristov
Telerik team
 answered on 22 Feb 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?