Telerik Forums
UI for WPF Forum
4 answers
260 views
Is there a straightforward way of hiding the caption of an aggregate function in the footer while showing it in the group header? I'm looking into the footer template now to see how its put together, but was wondering if I'm missing a simple trick...

Thanks!
Geoff Smith
Top achievements
Rank 1
 answered on 17 Aug 2010
1 answer
124 views
I have an editable data bound combobox. I need to know when the user is making a selection or editing.  On the selection changed event I use the prescribed method to capture the selected item "RadComboBoxItem selectedItem = chemical.SelectedValue as RadComboBoxItem;" . However selectedItem is always null even when chemical.SelectedValue is not. I have verified this using a line break in the code. What gives?
Konstantina
Telerik team
 answered on 17 Aug 2010
5 answers
714 views
Hi!

I've a to display a list of  "households", I'm using a telerik component, the "RadGridView".

This is working, I've set the "Datacontext" on a parent element. I've no problem with that
<telerik:RadGridView Name="uxGridViewList" AutoGenerateColumns="False" ItemsSource="{Binding HouseHolds}" IsSynchronizedWithCurrentItem="True" >
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="First Name" DataMemberBinding="{Binding FirstName}"/>
        <telerik:GridViewDataColumn Header="Last Name" DataMemberBinding="{Binding LastName}" />
        <telerik:GridViewDataColumn Header="City" DataMemberBinding="{Binding City}" />
        <telerik:GridViewDataColumn Header="Phone" DataMemberBinding="{Binding Phone1}"/>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>


Now, I'm trying to get get information in some textbox changing to have the current selectedrow.

Changes will be made in two ways, so I've made some tries, but the textbox is still empty.

First try:
<TextBox Name="uxTextFirstName" Text="{Binding FirstName}" DataContext="{Binding ElementName=uxGridViewList, Path=CurrentItem, Mode=TwoWay}" />

Second try
<TextBox Name="uxTextFirstName" Text="{Binding ElementName=uxGridViewList, Path=SelectedItem.Firstname, Mode=TwoWay}"/>

What should I do more?

I tried to do in my code behind to check if I was having data in the correct format.
uxTextFirstName.Text = ((HouseHold)uxGridViewList.SelectedItem).FirstName;
It display correct informations, but don't change when I change lines and I really have to do this in the Xaml code, not in code behind.

EDIT: I just saw I got an error in the "Output":
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=uxGridViewList'. BindingExpression:Path=SelectedItem.Firstname; DataItem=null; target element is 'TextBox' (Name='uxTextFirstName'); target property is 'Text' (type 'String')
But I still don't understand what is wrong :(

Maya
Telerik team
 answered on 17 Aug 2010
1 answer
300 views
Hello,
I'm sorry, but is it posible to make the HeaderRow always visible? We have hierarchical gridview with a lot of rows, so we need to scroll each child grid and not the whole grid, cause we don't want to loose  column headers from sight.
In general we need each child grid and parent grid have their own scrollbar.
Your article Visual Structure says: "Scroll bars - RadGridView will automatically show and hide scrollbars when needed. Choose between two types of scrolling: Real time and Deferred. Every hierarchical level has its own scrollbars. "
Milan
Telerik team
 answered on 17 Aug 2010
3 answers
133 views
Hi All

   I am New  in using telerik WPF controls.
My questions how to add the select command button inside the radgridview how we use the Datagridview in wndows form like that
how can i acheive this

Thanks
G Dinakaran.
Vlad
Telerik team
 answered on 17 Aug 2010
3 answers
182 views
I feel the arrow for expander and panel bars  points wrongly, it should behave opposite to how it is now.
How to modify  the arrow?
Miroslav
Telerik team
 answered on 17 Aug 2010
25 answers
417 views
Hi,

I have encountered the following error when I was trying to reorder column or drag it in panel group.

assembly: Telerik.Windows.Controls.GridView.dll, version: 2010.1.326.35
ExceptionMessage:
Root AdornerLayer Not Found. Please make sure that your root visual is Window or other element that has an adorner layer. Alternatively, wrap your root panel in an <AdornerDecorator> element.

StackTrace:

   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OpenPopup()
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.StartDragging()
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.TryStartDrag(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnTrackedElementMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e)
   at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.MouseDevice.Synchronize()
   at System.Windows.Input.MouseDevice.ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, Int32 timestamp)
   at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Yordanka
Telerik team
 answered on 17 Aug 2010
1 answer
146 views

  Hi All,

             Please provice the following information about RadChart. 
            I wanted to know if some of the features are avialable for RadChart.
                      1. 2D and 3D Surface Charts for Volatility surface charts. (Surfae chart is important for me)
                      2. 3D  Stacked Line chart
                      3. 3D stacked Spline
                      4. 3D candlestick

  Regards,
   Manu    
Vladimir Milev
Telerik team
 answered on 17 Aug 2010
4 answers
196 views
I have a RadTransitionControl set up as a prism Region:
<telerik:RadTransitionControl Name="MainContent"  Grid.Column="1" Grid.Row="1" cal:RegionManager.RegionName="{x:Static inf:RegionNames.MainContent}" HorizontalAlignment="Stretch" 
                                    VerticalAlignment="Stretch">
<telerik:RadTransitionControl.Transition>
<telerikTransitions:LinearFadeTransition  />
</telerik:RadTransitionControl.Transition>
</telerik:RadTransitionControl>

I'm getting an exception when switching views.  The exception is thrown when calling:
 
region.Activate(view)

The error is as follows:
System.InvalidOperationException was caught
  Message=Cannot perform action because the specified Storyboard was not applied to this object for interactive control.
  Source=PresentationFramework
  StackTrace:
       at System.Windows.Media.Animation.Storyboard.GetStoryboardClock(DependencyObject o, Boolean throwIfNull, InteractiveOperation operation)
       at System.Windows.Media.Animation.Storyboard.GetCurrentStateImpl(DependencyObject containingObject)
       at System.Windows.Media.Animation.Storyboard.GetCurrentState()
       at Telerik.Windows.Controls.TransitionControl.TransitionProvider.StopAnimation(Storyboard animation, FrameworkElement targetElement)
       at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.StopAnimation()
       at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.SetupAndStartTransitionAnimation(FrameworkElement target)
       at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.ChangeContent()
       at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.OnContentChange(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.set_CurrentContent(Object value)
       at Telerik.Windows.Controls.RadTransitionControl.OnContentChanged(Object oldContent, Object newContent)
       at System.Windows.Controls.ContentControl.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Controls.ContentControl.set_Content(Object value)
       at Microsoft.Practices.Composite.Presentation.Regions.ContentControlRegionAdapter.<>c__DisplayClass2.<Adapt>b__0(Object , NotifyCollectionChangedEventArgs )
       at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       at Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.AddAndNotify(IList items)
       at Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.AddAndNotify(Object item)
       at Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.itemMetadata_MetadataChanged(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at Microsoft.Practices.Composite.Presentation.Regions.ItemMetadata.InvokeMetadataChanged()
       at Microsoft.Practices.Composite.Presentation.Regions.ItemMetadata.DependencyPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Microsoft.Practices.Composite.Presentation.Regions.ItemMetadata.set_IsActive(Boolean value)
       at Microsoft.Practices.Composite.Presentation.Regions.Region.Activate(Object view)
       at Microsoft.Practices.Composite.Presentation.Regions.SingleActiveRegion.Activate(Object view)...

Any idea what's up?

Tonci Kucic
Top achievements
Rank 1
 answered on 17 Aug 2010
5 answers
126 views
Hi Team,

I'm writing a wrapper class basically to enable only few of the properties and events from the RadTreeView control.

i want to enable the events

Selected

 

 

="radTreeView1_Selected" Expanded="radTreeView1_Expanded" Collapsed="radTreeView1_Collapsed"

 

of the RadTreeView control in my wrapper class. 

here is my wrapper class.

public

 

 

class TngTreeView : TngBaseControl

 

{

#region

 

 

Constructors

 

 

 

static TngTreeView()

 

{

DefaultStyleKeyProperty.OverrideMetadata(

 

typeof(TngTreeView), new FrameworkPropertyMetadata(typeof(TngTreeView)));

 

RegisterDependencyProperties(

 

typeof(TngTreeView), typeof(RadTreeView));

 

}

 

 

public TngTreeView()

 

{

InternalFrameworkElement =

 

new RadTreeView();

 

 

 

this.AddVisualChild(InternalFrameworkElement);

 

}

#endregion

#region

 

 

Internal Control

 

 

 

private RadTreeView TreeView

 

{

 

 

get

 

{

 

 

return InternalFrameworkElement as RadTreeView;

 

}

}

 

 

public RadTreeView InternalControl

 

{

 

 

get

 

{

 

 

return TreeView;

 

}

 

 

set

 

{

InternalControlSetter(TreeView,

 

value);

 

}

}

#endregion

 

 

 

#region

 

 

Property: ToolTip

 

 

 

public string ToolTip

 

{

 

 

get { return (string)TreeView.GetValue(RadTreeView.ToolTipProperty); }

 

 

 

set { TreeView.SetValue(RadTreeView.ToolTipProperty, value); }

 

}

#endregion


}

appreciate your help

Manjerekar Rao
Miroslav
Telerik team
 answered on 17 Aug 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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?