Telerik Forums
UI for WPF Forum
1 answer
1.1K+ views
Hi,

Why my Trigger on the property IsMouseOver does not display a Red Background ?

<Style TargetType="telerik:RadButton">
  <Style.Triggers>
           <Trigger Property="IsMouseOver" Value="true">
               <Setter Property="Background" Value="Red"/>
           </Trigger>
       </Style.Triggers>
   </Style>

Should I override it ?
I am using the metro theme.

Regards,
S
Tina Stancheva
Telerik team
 answered on 12 Dec 2011
5 answers
163 views
Hi,
I have a gridview having a grid in its rowdetail, when row detail visibility changes i fetch data from database to load the row detail grid.
But the problem here is that when i sort or filter on the main grid, the data is removed from the already opened row detail grid.

Same thing happens when we have some controls in our rowdetails, and the values of expanded row details sets to blank when filtered or sorted.

Using "RowDetailsVisibilityChangedevent" to populate the rowdetails, due to some constraints not using "LoadingRowDetails".

Please let me know is there anything i can do so that those row detail grid data does not get removed when I do sorting or filtering on main grid.

Please reply its urgent.
Thanks
Maya
Telerik team
 answered on 12 Dec 2011
1 answer
142 views
Hey Guys,

I am using the Q2 2011 controls, and I can't seem to get determinate progress to work.  I think I am doing everything I need to according to the docs, but the UI still looks exactly like the indeterminate state.

The result of the code below is shown in the attached screenshot.  I was expecting the middle fill to be at 50%, but the value of ProgressValue seems to make no difference. 

Any idea what I am missing?  Is this a bug or a regression of some sort?

Thanks,
Mark

<Window x:Class="BusyIndicatorTest.MainWindow"
    xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    Title="MainWindow" 
    Height="350"
    Width="525">
    <Grid>
        <Controls:RadBusyIndicator
            IsBusy="True"
            IsIndeterminate="False"
            ProgressValue="50.0">
            <ListBox>
                <ListBoxItem Content="Some Content 1"/>
                <ListBoxItem Content="Some Content 2"/>
            </ListBox>
        </Controls:RadBusyIndicator>
    </Grid>
</Window>
Dani
Telerik team
 answered on 12 Dec 2011
12 answers
354 views
Hi,

I'm trying to show a radgridview into a hierarchical radgridview item.
Now i bind the treelistview with "Capitulos" Items and i have the next structure:

                 Capitulo 1
                        Capitulo 1.1
                               Capitulo 1.1.1
                 Capitulo 2
                 Capitulo 3


I need to show this one:

                    Capitulo 1
                        Capitulo 1.1
                            Product c
                            Product d
                            Product e
                                Capitulo 1.1.1
                                        Product a
                                        Product b
                    Capitulo 2
                    Capitulo 3
William
Top achievements
Rank 1
 answered on 12 Dec 2011
2 answers
202 views
Hi,

Basically my project is a winform application. I created one dashboard in WPF user control with rad controls. I am showing this control after user logged in. Everything is working properly but it takes sometime (more than 20 secs) to show the user control. Is there any way to show this user control using BackgroundWorker ? Note: I am using RadDock in my main application.
Arun Kumar
Top achievements
Rank 2
 answered on 12 Dec 2011
3 answers
230 views
Hi,

We have a line chart which shows about 4000 data values, with Date in X-axis and Decimal values in Y axis. We have encountered the issue that chart does not shows all the values particularly ending values.
For this purpose, we enabled Zooming on the chart and found that in normal chart is not showing last 100 values, but when we enabled the sampling too at 400 then we found in normal we are missing last 6 values at the end of line.

for more details, i have attached the image of chart in both states, with no zoom and zoomed to 10%. Can you help us to fix this issue.

Thanks
Petar Marchev
Telerik team
 answered on 12 Dec 2011
1 answer
582 views
Could someone show me the easier way to change the line color in my line series? I'm using RadChart 2011 Q3. I'd like to see how to do it in XAML.

Thanks very much.
Petar Marchev
Telerik team
 answered on 12 Dec 2011
1 answer
109 views
The grid is working great for me, except that only my simple type properties are shown.  The properties in my object that in themselves are objects just show up as a text box with the name of the class in it.  Is this not supported, or do I need to decorate my class definitions somehow?
Ivan Ivanov
Telerik team
 answered on 12 Dec 2011
16 answers
580 views
I have a three-level hierarchical grid that shows Matches/Teams/Players.  The display works fine.  
Now I'm trying to drag-and-drop items onto that grid and need to know which row I'm over when the drop occurs.

Per some of your examples, I've added an event handler for the RowLoaded/Unloaded events in which I add event handlers for MouseEnter/Leave for each row.  This works fine for the top (Game) level of the grid, and second (Teams) level, but when I add any event handlers for the Players grid, I'm having problems.

If all three levels have event handlers, when I attempt to expand the top-level grid, I get an exception as shown below.  This happens regardless of whether I have separate event handlers for each level, or a shared/generic handler.  As soon as I remove the event handlers (RowLoaded in this code snippet) in my third-level child grid, everything's fine, except of course that my application doesn't work. :)

Baffled and stuck.  

-Lynne W

Example of the XAML with event handlers for RowLoaded/Unloaded.  Same thing happens for MouseEnter/Leave.  This causes the exception shown at the end of this message.
<telerik:RadGridView Name="gridMatchPlayers"
                                         AutoGenerateColumns="False"
                                         ItemsSource="{Binding MatchPlayers}"
                                         ShowGroupPanel="False"
                                         RowLoaded="MatchPlayerGrid_RowLoaded"
                                         RowUnloaded="MatchPlayerGrid_RowUnloaded"
                                         telerikDragDrop:RadDragAndDropManager.AllowDrag="False"
                                         telerikDragDrop:RadDragAndDropManager.AllowDrop="True">

Event handling code for Player row event handlers
  • Note that I have the add'l MouseEnter/Leave event handlers commented out.  I've tried Row and Mouse event handlers for my Player (third-level) grid and they cause the exception seen below.
////////////////////////////////////////////////////////////////////////////////
//     //
//  //////  MatchPlayer grid
//   //
//
void MatchPlayerGrid_RowLoaded(Object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e) {
    var row = e.Row as GridViewRow;
    if (row != null) {
        //row.MouseEnter += new MouseEventHandler(MatchPlayerGridRow_MouseEnter);
        //row.MouseLeave += new MouseEventHandler(MatchPlayerGridRow_MouseLeave);
     }
}
 
void MatchPlayerGrid_RowUnloaded(object sender, RowUnloadedEventArgs e) {
    var row = e.Row as GridViewRow;
    if (row != null) {
        //row.MouseEnter += new MouseEventHandler(MatchPlayerGridRow_MouseEnter);
        //row.MouseLeave += new MouseEventHandler(MatchPlayerGridRow_MouseLeave);
    }
}
 
 
void MatchPlayerGridRow_MouseEnter(Object sender, System.Windows.Input.MouseEventArgs e) {
    var senderElement = e.OriginalSource as FrameworkElement;
    var mouseOverRow = senderElement.ParentOfType<GridViewRow>();
}
 
void MatchPlayerGridRow_MouseLeave(Object sender, MouseEventArgs e) {
    var senderElement = e.OriginalSource as FrameworkElement;
    var mouseExitRow = senderElement.ParentOfType<GridViewRow>();
}


Exception thrown when a third-level child grid has extant/active event handlers

System.NullReferenceException was unhandled by user code
  Message=Object reference not set to an instance of an object.
  Source=ccm3
  StackTrace:
       at ccm3.ContentControls.ucMatchManagement.System.Windows.Markup.IStyleConnector.Connect(Int32 connectionId, Object target) in f:\PredatorGames\src\ccm3\trunk\ccm3\ContentControls\ucMatchManagement.xaml:line 245
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
       at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
       at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
       at System.Windows.FrameworkTemplate.LoadContent()
       at Telerik.Windows.Controls.GridView.GridViewRow.PopulateHierarchyContent() in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewRow.cs:line 304
       at Telerik.Windows.Controls.GridView.GridViewRow.OnIsExpandedChanged(Boolean oldValue, Boolean newValue) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewRow.cs:line 230
       at Telerik.Windows.Controls.GridView.GridViewRow.OnIsExpandedChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewRow.cs:line 205
       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 MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)
       at MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)
       at System.Windows.Data.BindingExpression.UpdateSource(Object value)
  InnerException: 

Maya
Telerik team
 answered on 12 Dec 2011
1 answer
45 views
Hi,

We are using telerik's data grid view to show multi-level hierarchical data grid. When you select something from the child criteria drop down a new node in the child grid is created.

But the problem is that we cannot expand the child grid through the toggle button. We get an exception in the output window. However when we change our project setting to .NET 4.0, everything works fine. Since our main project is using .NET 4.0 we wanted to make sure that the multi level data grid works for us.

Can you please test out the attached test project and see how to make the hierarchical data grid work with .NET 4.0.

Thanks,
Farhan

PS: It seems that I cannot attach the project here. Is there any way I can send it to you guys !
Maya
Telerik team
 answered on 12 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
Expander
Slider
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?