Telerik Forums
UI for WPF Forum
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
53 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
147 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
208 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
75 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
83 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
194 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
113 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
171 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
1 answer
164 views
i have a sample code which has a observable collection of items. if i enter qty/rate , total field should display qty * rate. but i can't get it. item collection is updated but not shown in the gridview. give suggestion to show the updated total field in radgridview when qty/rate changes. here is the code

namespace RadGridViewWPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            ObservableCollection<Item> items = new ObservableCollection<Item>();
            for (int i = 0; i < 10; i++)
            {
                items.Add(new Item() { ID = 1, ItemName = "Item" + i, Qty = 1, Rate = 12});
            }
 
            this.RadGridView1.ItemsSource = items;
        }
    }
 
    public class Item
    {
        private int _ID;
 
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private string _ItemName;
 
        public string ItemName
        {
            get { return _ItemName; }
            set { _ItemName = value; }
        }
        private decimal _Rate;
 
        public decimal Rate
        {
            get { return _Rate; }
            set { _Rate = value; }
        }
        private int _Qty;
 
        public int Qty
        {
            get { return _Qty; }
            set { _Qty = value; }
        }
        private decimal _Total;
 
        public decimal Total
        {
            get { return _Qty * _Rate; }
            set { _Total = value; }
        }
         
         
    }
}
Vlad
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
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?