Telerik Forums
UI for WPF Forum
5 answers
479 views
Hello

I try to use the RadPanelBar with a Binding as ItemSource, but get an unexpected result. Without binding I would use it like this:
<telerik:RadPanelBar> 
    <telerik:RadPanelBarItem> 
        <telerik:RadPanelBarItem.Header> 
            <Label Content="Header 1"/> 
        </telerik:RadPanelBarItem.Header> 
        <Label Content="Content 1"/> 
    </telerik:RadPanelBarItem> 
</telerik:RadPanelBar> 

That is no problem and looks exactly as expected. But as soon as I use it like this:
<telerik:RadPanelBar Name="AttributeSetPanelBar" ItemsSource="{Binding}"
    <telerik:RadPanelBar.Resources> 
        <DataTemplate DataType="{x:Type wrp:AttributeSet}"
            <telerik:RadPanelBarItem> 
                <telerik:RadPanelBarItem.Header> 
                    <Label Content="{Binding Name}"/> 
                </telerik:RadPanelBarItem.Header> 
                <Label Content="Content"/> 
            </telerik:RadPanelBarItem> 
        </DataTemplate> 
    </telerik:RadPanelBar.Resources> 
</telerik:RadPanelBar> 
and set it's DataContext to a List of objects (in this case AttributeSet), it changes its behaviour! Now the header includes the whole content, and the content itself (the secont Label) is also displayd as Header.
Am I doing something wrong, or is this a bug?

Regards
Simon
Tina Stancheva
Telerik team
 answered on 22 Nov 2010
8 answers
1.2K+ views
Hello Telerik,

I'm trying to use visual helper to fine and change the textblock in the ContentPresenter in the TileViewItem
RadTileViewItem myRadTileViewItem =(RadTileViewItem)(RadTileView1.ItemContainerGenerator.ContainerFromItem(RadTileView1.Items.CurrentItem));
  
// Getting the ContentPresenter of RadTileView1
ContentPresenter myContentPresenter = FindVisualChild<ContentPresenter>(RadTileView1);
  
// Finding textBlock from the DataTemplate that is set on that ContentPresenter
DataTemplate myDataTemplate = myContentPresenter.ContentTemplate;
TextBlock myTextBlock = (TextBlock)myDataTemplate.FindName("Datext", myContentPresenter);
  
// Do something to the DataTemplate-generated TextBlock
  
    this.Datext.Text = 5;
<DataTemplate x:Key="MyDataTemplate">
                    <StackPanel>
                    <TextBlock x:Name="Datext" FontSize="18" Text="{Binding}" />
                    <TextBox x:Name="Datext1" FontSize="10" Text="5 KillDate Items" />
                    </StackPanel>
                </DataTemplate>
private childItem FindVisualChild<childItem>(DependencyObject obj)
    where childItem : DependencyObject
{
    for (int i = 0; i < VisualTreeHelper.GetChildrenCount(obj); i++)
    {
        DependencyObject child = VisualTreeHelper.GetChild(obj, i);
        if (child != null && child is childItem)
            return (childItem)child;
        else
        {
            childItem childOfChild = FindVisualChild<childItem>(child);
            if (childOfChild != null)
                return childOfChild;
        }
    }
    return null;
}


Any thoughts/

Regards,
Rick
Zarko
Telerik team
 answered on 22 Nov 2010
1 answer
56 views
Following an update to Rad controls for WPF Q3 2010, we've begun to receive the following error: "Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=<hex string>' or one of its dependencies. The system cannot find the file specified. / [OK]"

Platform: Windows 7
NET Framework = Microsoft .NET Framework 4 Client Profile

Further investigation has revealed the the error is resolved when ..NET Framework 4.0 Extended is applied. Is this a known byproduct of the Q3 release of RAD for WPF? If so, is there a way to suppress this additional requirement?

Thanks!

David Stickney
Veselin Vasilev
Telerik team
 answered on 22 Nov 2010
2 answers
152 views
Hi!

Is it possible to configure/change the RadDatePicker to support the dateformat YYYYMMDD (no dashes)?
George
Telerik team
 answered on 22 Nov 2010
3 answers
214 views
I have a RadGridView that I would like users to edit as much as they want, but not to save any changes back to the binding object until the user clicks the save button. For textboxes and such I have used binding groups, but this approach does not seem to work for the RadGridView.

What is the best approach for delayed edits for the entire grid?
Maya
Telerik team
 answered on 22 Nov 2010
1 answer
86 views
I would like to create a custom theme for the calendar of the RadDatePicker. Theming the RadScheduler was easy. But how is this done on the Calendar?

George
Telerik team
 answered on 22 Nov 2010
1 answer
86 views
I´d like to know if it is possible to show the calendar on mousedoubleclick event. I thought this was easy to implement, but I didn´t find any method the would solve my problem.
George
Telerik team
 answered on 22 Nov 2010
6 answers
205 views
Hi,
I experience a weird behavior of the RadGridView with row and column virtualization turned on. At random times, upon setting the ItemsSource property, a single selected row remains 'hanging' in the empty area far down the last row in the grid. I have attatched a screenshot with visual representation of the problem. Turning the virtualization off solves this issue but it's inacceptable due to the large amount of the data that used with the grid. I am using version Q1 SP1 2010 of the grid.
Todor
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
119 views
Hello,
We have an application with multiple RadPanes open at the same time, where the user can save data in their active pane/view with a ribbon level save button/command.  Due to this structure it is sometimes hard for the user's to visually see which pane is being saved other than knowing it is the active pane.

I wanted to know if there is a way to animate or change the color of a RadPane temporarily while an action is occuring, e.g. change the color to yellow while a save operation is occuring, green if it is successful, and red if the operation fails...but only for a few moments to indicate to them that that specific pane saved.

Is there some kind of behavior we could attach to for this?
Miroslav Nedyalkov
Telerik team
 answered on 22 Nov 2010
1 answer
178 views

Can I put two text boxes in each column header.

I need to have a row below the name to display the units for each column.

If so how to do it programatically.

Veselin Vasilev
Telerik team
 answered on 22 Nov 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
DataPager
PersistenceFramework
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
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?