Telerik Forums
UI for WPF Forum
4 answers
225 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
149 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
1 answer
1.2K+ views
Hi,

Is it possible to make the grid to be sorted initially? 
I'd prefer a declarative way to do it (in XAML).

Can you guys provide an example of a grid which is initially sorted by some column.

Thank you very much,
Ruben
Milan
Telerik team
 answered on 17 Aug 2010
2 answers
228 views
Hello,
Is it possible to get the cell value in CellStyleSelector.SelectStyle? I'm getting the whole object, that is nested in the row, and need just the particular cell value, cause the object doesn't contain it.
Jokerwolf
Top achievements
Rank 1
 answered on 17 Aug 2010
1 answer
127 views


ItemsSource
="{Binding Path=(ns:class.property)}"

does it support this syntax for strong type binding?
also is it supported in the columns? in the

 

DataMemberBinding

?


can you give me an example of how to use it with the gridView?

thanks
Rossen Hristov
Telerik team
 answered on 16 Aug 2010
1 answer
58 views
Want to have multiple tiles,
but when in a minimized state want to have one always at top of others.

So can you set some type of sort order when in this state.
Or is it just dependent on how you add in to the list ?
Miroslav
Telerik team
 answered on 16 Aug 2010
7 answers
239 views
Hi!

   Anyone have an idea of using combobox  in a Custom row layout? please  help me. Here is my code

<TextBlock Text="Sex"
           Grid.Column="1" Grid.Row="2"
           VerticalAlignment="Top" HorizontalAlignment="Left"
           Foreground="Black" FontWeight="Bold" Margin="0,0,0,0" />
 
//its respective editor is
 
<ComboBox Text="{Binding Sex}"
          Grid.Column="2" Grid.Row="2"
          VerticalAlignment="Top" HorizontalAlignment="Left"
          Foreground="Black" Width="70"
          Background="Transparent"
          BorderBrush="Transparent" Opacity="1" OpacityMask="White"
          IsEditable="False" Height="Auto">
          <ComboBoxItem />
          <s:String>Male</s:String>
          <s:String>Female</s:String>              
      </ComboBox>
 
 
//Binding of the column.
<Controls:GridViewDataColumn  Header="Sex"  DataMemberBinding="{Binding Sex}" />

Problem with me is I am not able to display the string that is present in the database initially or when program loads. I am able to change the sex and save it to the database but at first the combobx is blank when it should be displaying the string value in the database.

Greetings
Yavor Georgiev
Telerik team
 answered on 16 Aug 2010
1 answer
210 views

         Hello sir / Madam ,

                       I am using Telerik RadToolBar. I want to customize it like
                       1. I want to show it with round corners  at edges.
                       2. When mouse is over on particular tool bar button i want to show it with some color which is not predefined by telerik
                            controls by default.
                       3. I want to disable the tool bar overflow which showing at the end of tool bar permanently

                        If any body know the solution please  kindly forward it to me as early as possible............
 
                        
Miro Miroslavov
Telerik team
 answered on 16 Aug 2010
4 answers
159 views
Hi,

I'm using the RadGridView with a custon filter row like it is shown in one of the demo samples. I also have on custom column configuration dialog that is used to add, remove or reorder columns. When the column configuration is modified within this dialog I first remove all Columns and FilterDescriptors. Then I add the columns again according to the new configuration. When I try to add the FilterDescriptors I get an exception with the following message and stacktrace:

Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

I'm adding the FilterDescriptors in the DataType PropertyChanged event of the columns. I'm doing it this way because otherwise the correct DataType is not available.

When I add the same FilterDescriptors some time later in the click event handler of a button, the exception does not occur.

Any suggestions? Is there another event that is fired some time after DataType PropertyChanged event of the columns and can be used to add the FilterDescriptors.

Regards,

Uli
Rossen Hristov
Telerik team
 answered on 16 Aug 2010
1 answer
290 views
Hi!

Here is the situation:

I've a RadGridView, the datacontext is the code behind. So ItemsSource is setted to a "List<MyCustomObjects>", all works at this level.

After that, I've a zone with a lot of textbox that are bound to the gridview(datacontext is the radgridview, binding CurrentItem.myField, mode twoway) and a zone with only labels that is exactly bound the same way. 

When I change line, my values are updated in labels and textbox, so it works great. 

If I edit one field directly in the RadGridView, labels and textbox are updated directly when the cell lost the focus

The problem now:
Now, if I edit the field in the textbox, when I lost focus, labels are updated but not the radGridView.
It appears the radGridview have updated values but doesn't refresh the display, if I reorder data or start the edit of the cell, the data is correct.

Then, is this a bad configuration of the radGridView? Wrong datasource?( List<MyCustomObject>) bug? Feature?

Thank you!

We really need this as fast as possible because it's one of the key feature we use in telerik.
Veselin Vasilev
Telerik team
 answered on 16 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?