Telerik Forums
UI for WPF Forum
3 answers
78 views
Hi Folks,
I've got a RadGridView with a details view that itself contains three RadGridViews.
The problem is, events from the inner Grid e.g. SelectionChanged or MouseDoubleClick  are transported somehow to the outer Grid.
This leads to serious problems, for example the outer grid collapses the details when the user double clicks in the inner gridview..
How can I prevent the outer grid accepting events from controls of the details page ? 
(Is this a common event routing issue ?)

Best regards
Oliver

(P.S. or, vica versa, how to prevent the "inner" controls sending events to the outside? There's this structure: The outer grid contains a RadTabControl, some tabs, each tab contains a Grid which contains three RadGridViews and some buttons)

Vlad
Telerik team
 answered on 08 Dec 2011
0 answers
103 views

Hi,


We are using Telerik WPF controls (ver. 2011.2.920.35) and we are trying to accomplish tooltips in the case of a validation failure in one of the grid cells.

Attached is a screenshot that highlights two cells - one with a combobox and the other with a text field. We want the validation errors to be presented for the cell with a combobox just like the way it gets presented for a text field column.

Please let us know how can we do that.

Any help is very much appreciated.

Regards,
Shalini
salini
Top achievements
Rank 1
 asked on 08 Dec 2011
1 answer
111 views

Hi,

I have a scenario where I need to update the layout of a RadGridView when I change the width of a column from my ViewModel.
My first approach was to use the ColumnWidthChanged event, but it does not fire.
Is this intended behavior?
I could trigger the UpdateLayout() call from my ViewModel, but it does not belong there because it is entirely UI related stuff...

Any suggestions?

Best Regards,
Christian

 

 

 

Vlad
Telerik team
 answered on 08 Dec 2011
2 answers
172 views
Hi,

As i was trying to create user control(Filtering) and want to attache with RAD GRID. Perhaps it's done but my events for Filtering is not getting fired. Can any one provide a small example for this with source code.
Krishna
Top achievements
Rank 1
 answered on 08 Dec 2011
1 answer
87 views
Hi,

I was asked to implement feature to find values in grid (user wants to see all rows so i cant use filters)
user wants (picture)
(1) field to input search text
(2) button to find all rows (kind of bookmark)
(3) button to iterate in find items (find next)

is there built in Search in grid (without filters) ?
I made this feature with this code:
private void btnFind_Click(object sender, RoutedEventArgs e)         {             btnFind.IsEnabled = false;             scrollIntoFindIndex = 0;             string searchText = txtFind.Text;             dgDynGrid.SelectedItems.Clear();             foreach (object o in dgDynGrid.Items)             {                 if (o is DataRowView)                 {                     for (int z = 0; z < (o as DataRowView).Row.ItemArray.Count(); z++)                     {                         try                         {                             string t = (o as DataRowView).Row.ItemArray[z].ToString();                             if (t.IndexOf(searchText, StringComparison.InvariantCultureIgnoreCase) >= 0)                             {                                 dgDynGrid.SelectedItems.Add(o);                                 break;                             }                         }                         catch                         {                             //if it cant be converted to string, i will not find in this field                         }                     }                 }             }             btnFind.IsEnabled = true;             ScrollIntoFind(0);         }         int scrollIntoFindIndex = 0;         private void ScrollIntoFind(int i)         {             if (dgDynGrid.SelectedItems.Count > i)             {                 dgDynGrid.ScrollIntoView(dgDynGrid.SelectedItems[i]);             }             else             {                 scrollIntoFindIndex = 0;                 MessageBox.Show("Završila je pretraga, idučim klikom se pretražuje od početka""Kraj pretrage"MessageBoxButton.OK, MessageBoxImage.Information);             }         }         private void btnFindNext_Click(object sender, RoutedEventArgs e)         {             scrollIntoFindIndex++;             ScrollIntoFind(scrollIntoFindIndex);         }

but I am sure there must be better way to do this.
I would appreciate any hint

Thank you

Nedyalko Nikolov
Telerik team
 answered on 08 Dec 2011
1 answer
169 views
I would like to disable editing action (editing appointment via double click). How to acomplish that?

I tried with:       
private void RadScheduler_AppointmentEditing(object sender, AppointmentEditingEventArgs e)
        {
            e.Cancel = true;
        }

but it doesnt work.
Boyan
Telerik team
 answered on 08 Dec 2011
1 answer
160 views
  Hi,

I need to maintain scroll position (both horizontal and vertical) when moving across pages.
I tried the following code , but was unable to achieve the desired functionality.
Even after calling RestoreScrollPosition() the scrollviewer didn't change its position.




private void btnNext_Click(object sender, RoutedEventArgs e)



{

SetScrollPosition();
BindData();

RestoreScrollPosition();







}







private void SetScrollPosition()



{



GridViewScrollViewer svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();








_dbVerticalOffset = svSummaryInfo.VerticalOffset;
_dbHorizontalOffset = svSummaryInfo.HorizontalOffset;
}




private



void RestoreScrollPosition()



{


GridViewScrollViewer



svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();





if (svSummaryInfo != null)



{



svSummaryInfo.ScrollToHorizontalOffset(_dbHorizontalOffset);

svSummaryInfo.ScrollToVerticalOffset(_dbVerticalOffset);

}
}

Please provide a code snippet for the same.
Nedyalko Nikolov
Telerik team
 answered on 08 Dec 2011
0 answers
120 views
Hi Team,
I am using radDatafilter with custom inputs (date picker, combobox, checkbox), but i am unable to fire events when Input data changes. For example if user input is check box, then no event fire, similarly no event for  combobox selection change, i cant catch any event. kindly guide me raddatafilter event.
I posted some threads earlier, kindly consider that. Urgent response is highly appreciated.
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
 asked on 08 Dec 2011
5 answers
508 views
I'm trying to figure out a good way to get a theme applied at design time. I followed someones suggestion to create a class like this and added it to the resources in my App.xaml.
public class TelerikThemeManager : DependencyObject
{
    public TelerikThemeManager()
    {
        StyleManager.ApplicationTheme = new MetroTheme();
    }
}

I'm getting this error with RadExpander when i have that in place. The (few) other controls seem to be fine. Is there a good way of getting design time theme support application wide?

Cannot freeze this Storyboard timeline tree for use across threads.
   at System.Windows.Media.Animation.BeginStoryboard.Seal()
   at System.Windows.TriggerAction.Seal(TriggerBase containingTrigger)
   at System.Windows.TriggerActionCollection.Seal(TriggerBase containingTrigger)
   at System.Windows.TriggerBase.Seal()
   at System.Windows.Trigger.Seal()
   at System.Windows.TriggerCollection.Seal()
   at System.Windows.StyleHelper.SealTemplate(FrameworkTemplate frameworkTemplate, Boolean& isSealed, FrameworkElementFactory templateRoot, TriggerCollection triggers, ResourceDictionary resources, HybridDictionary childIndexFromChildID, FrugalStructList`1& childRecordFromChildIndex, FrugalStructList`1& triggerSourceRecordFromChildIndex, FrugalStructList`1& containerDependents, FrugalStructList`1& resourceDependents, ItemStructList`1& eventDependents, HybridDictionary& triggerActions, HybridDictionary& dataTriggerRecordFromBinding, Boolean& hasInstanceValues, EventHandlersStore& eventHandlersStore)
   at System.Windows.FrameworkTemplate.Seal()
   at System.Windows.FrameworkTemplate.System.Windows.ISealable.Seal()
   at System.Windows.StyleHelper.SealIfSealable(Object value)
   at System.Windows.ResourceDictionary.SealValue(Object value)
   at System.Windows.ResourceDictionary.RealizeDeferContent(Object key, Object& value, Boolean& canCache)
   at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
   at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
   at System.Windows.DeferredThemeResourceReference.GetValue(BaseValueSourceInternal valueSource)
   at System.Windows.DependencyPropertyChangedEventArgs.get_NewValue()
   at System.Windows.Controls.Control.OnTemplateChanged(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.InvalidateProperty(DependencyProperty dp)
   at System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject container, FrugalStructList`1& exclusionContainerDependents, FrugalStructList`1& oldContainerDependents, FrugalStructList`1& newContainerDependents)
   at System.Windows.StyleHelper.DoThemeStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldThemeStyle, Style newThemeStyle, Style style)
   at System.Windows.StyleHelper.UpdateThemeStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldThemeStyle, Style newThemeStyle, Style& themeStyleCache)
   at System.Windows.FrameworkElement.OnThemeStyleChanged(DependencyObject d, Object oldValue, Object newValue)
   at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
   at System.Windows.FrameworkElement.UpdateThemeStyleProperty()
   at System.Windows.FrameworkElement.OnThemeStyleKeyChanged(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.RadExpander.SetDefaultStyleKey() in c:\TB\102\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\Expander\RadExpander.cs:line 577
   at Telerik.Windows.Controls.RadExpander.OnInitialized(EventArgs e) in c:\TB\102\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\Expander\RadExpander.cs:line 571
   at System.Windows.FrameworkElement.TryFireInitialized()
   at System.Windows.FrameworkElement.EndInit()
   at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.EndInit(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode, ISupportInitialize supportInitialize)
   at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateProperties(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode)
   at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
   at Microsoft.Expression.Platform.WPF.InstanceBuilders.FrameworkElementInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
   at MS.Internal.Services.DesignModeValueProviderService.DesignModeValueProviderBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
   at Microsoft.Expression.DesignModel.Core.ViewNodeManager.Instantiate(ViewNode viewNode)

Rayne
Top achievements
Rank 1
 answered on 07 Dec 2011
8 answers
207 views
HI there,
I have a WPF application with MVVM. My main view has a RadDocking with multiple documents (MDI). The RadPanes are implicitly created through a coupling of the ViewModel with the RadDocking (I use the RadPaneGroupExtension from another forum post).
My RadDocking looks like this:

<Controls:RadDocking.DocumentHost>
    <Controls:RadSplitContainer>
        <Controls:RadPaneGroup Name="OpenEntities" local:PaneGroupExtensions.ItemsSource="{Binding OpenDocs}">
            <local:PaneGroupExtensions.ItemContentTemplate>
                <DataTemplate DataType="{x:Type ReferenceViewModels:DepartmentViewModel}">
                    <views:DepartmentView />
                </DataTemplate>
            </local:PaneGroupExtensions.ItemContentTemplate>
DepartmentView contains some Textboxes.
Unfortunately, the TextBoxes are readonly if instantiated this way. If I place the DepartmentView at another place (e.g. in a hardcoded RadPane in the above code), it works.

Since I have no clue where to search is any hint appreciated.

Regards

Mat
Ivo
Telerik team
 answered on 07 Dec 2011
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?