Telerik Forums
UI for WPF Forum
3 answers
84 views
I am use the RadChart in a CustomControl which used to work in the 2009 version of the control. Now that I have upgraded the controls to the 2010 Q3 SP1 version the control no longer works.

The problem is that - looking in snoop - the control has no visual tree. I have reduced the generic style to the following;

<Style TargetType="{x:Type asc:CustomControl1}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type asc:CustomControl1}">
                    <Grid>
                        
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"  >
                                <GradientStop Color="#FFDCE7FD" Offset="1"/>
                                <GradientStop Color="#FF898AAC" Offset="0"/>
                            </LinearGradientBrush>
                        </Grid.Background>
                        
                        <telerik:RadChart x:Name="PART_AscChart" />

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

    </Style>

The piece which I believe causes the problem is that the assemblies are loaded through a custom assembly loader at runtime, so I suspect that the generic style for RadChart is not being located.

Any ideas would be appreciated.

Thanks
Kendrew
Yavor
Telerik team
 answered on 09 Mar 2011
1 answer
50 views
Hi Geeks :)

I faced with the same issue, but my scenario is little bit different from the author of this post.

Steps to reproduce:

1. Click "add new item" in the grid.
2. Press "Escape" button (Once), to still have the item in the grid.
3. Click on the header of the column, the "add new item" control will appears.
4. Click on it ("add new item")

Result: The crash will appears.

In attachment you will find all the mentioned steps in graphical example.

Thx,
Julian Ust.
Yordanka
Telerik team
 answered on 09 Mar 2011
1 answer
89 views
Hi,

Is it possible to have a grid that allows users to add new items (through programatically calling BeginInsert) whilst preventing the user from editing existing items?

Thanks

Mat
Maya
Telerik team
 answered on 09 Mar 2011
1 answer
87 views
I'm using the Docking example you provided with RadControls_for_WPF40_2010_3_1314.

If I want to dock a panel in the SolutionExplorer pane the corresponding compass is shown outside of the main window and disappears if I move the mouse cursor toward it. See attached screen shot.

I think this is a bug. When will it be fixed?
George
Telerik team
 answered on 08 Mar 2011
3 answers
746 views
I'm trying to get validation working with the RadMaskedTextBox, I have found a few posts and an old example in your online help http://www.telerik.com/help/wpf/radmaskedinput-features-validation.html

The current help for the RadMaskedTextBox doesn't even talk about validation.

What I would like to do is have the outline around the RadMaskedTextBox turn red when something is wrong the data entered into the textbox.

Could you please send me a small example of this ?
Petar Mladenov
Telerik team
 answered on 08 Mar 2011
1 answer
75 views
Is there an easy way to select current date and time using the control or I should make such button myself?
Miroslav Nedyalkov
Telerik team
 answered on 08 Mar 2011
1 answer
76 views

Hi,

 

I want to use the data from the database to a pie chart.

 

is it possible in WPF chart??

I found an example in reporting however I want it in WPF

http://www.telerik.com/help/reporting/buildingdatabinddatabase.html


thanks in advance

Yavor
Telerik team
 answered on 08 Mar 2011
4 answers
133 views
I have two identical  WPF RadGridViews on my form. I want to be able to detect when the GroupHeader has been clicked so that
a) Only one group on each grid is expanded at any one time
b) If the group in radGridDebits is expanded/collapsed, the same group in radGridCredits is expanded/collapsed - i.e. synchronize the group header between both grids.
c) Basically, I'm looking for a GroupHeader.Clicked event but can't find it!!

<Controls1:RadGridView Grid.Row="1"
                            x:Name="radGridDebits"
                            AutoGenerateColumns="False"
                            ShowColumnHeaders="False"
                            IsReadOnly="True"
                            ItemsSource="{Binding Data}"
                            ShowGroupPanel="False"
                            RowIndicatorVisibility="Collapsed"
                            AutoExpandGroups="False">
         <Controls1:RadGridView.SortDescriptors>
             <Data:SortDescriptor Member="HlpAccountGroup.CategoryID" />
             <Data:SortDescriptor Member="Description" />
         </Controls1:RadGridView.SortDescriptors>
         <Controls1:RadGridView.GroupDescriptors>
             <Data:GroupDescriptor Member="HlpGroupCompany.Description"
                                   DisplayContent="Group company"
                                   SortDirection="Ascending" />
         </Controls1:RadGridView.GroupDescriptors>
         <Controls1:RadGridView.FilterDescriptors>
             <Data:CompositeFilterDescriptorCollection>
                 <Data:CompositeFilterDescriptor LogicalOperator="Or">
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Debit" />
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Common" />
                 </Data:CompositeFilterDescriptor>
             </Data:CompositeFilterDescriptorCollection>
         </Controls1:RadGridView.FilterDescriptors>
         <Controls1:RadGridView.GroupHeaderTemplate>
             <DataTemplate>
                 <Border Background="{Binding Group.Items[0].HlpGroupCompany.Brush}"
                         Padding="3"
                         Width="250"
                         CornerRadius="3"
                         BorderThickness="1">
                     <StackPanel Orientation="Horizontal">
                         <TextBlock Text="Group company:"
                                    Margin="0,0,3,0" />
                         <TextBlock Text="{Binding Group.Key}"
                                    Foreground="{StaticResource DarkBackground}"
                                    FontWeight="Bold" />
                     </StackPanel>
                 </Border>
             </DataTemplate>
         </Controls1:RadGridView.GroupHeaderTemplate>
         <Controls1:RadGridView.Columns>
             <Controls1:GridViewDataColumn Header="Account"
                                           DataMemberBinding="{Binding Description}" />
             <Controls1:GridViewDataColumn Header=""
                                           DataMemberBinding="{Binding HlpCurrency.CurrencyId}" />
         </Controls1:RadGridView.Columns>
     </Controls1:RadGridView>
 
 
 
 
 
<Controls1:RadGridView Grid.Row="1"
                            x:Name="radGridCredits"
                            AutoGenerateColumns="False"
                            ShowColumnHeaders="False"
                            IsReadOnly="True"
                            ItemsSource="{Binding Data}"
                            ShowGroupPanel="False"
                            RowIndicatorVisibility="Collapsed"
                            AutoExpandGroups="False">
         <Controls1:RadGridView.SortDescriptors>
             <Data:SortDescriptor Member="HlpAccountGroup.CategoryID" />
             <Data:SortDescriptor Member="Description" />
         </Controls1:RadGridView.SortDescriptors>
         <Controls1:RadGridView.GroupDescriptors>
             <Data:GroupDescriptor Member="HlpGroupCompany.Description"
                                   DisplayContent="Group company"
                                   SortDirection="Ascending" />
         </Controls1:RadGridView.GroupDescriptors>
         <Controls1:RadGridView.FilterDescriptors>
             <Data:CompositeFilterDescriptorCollection>
                 <Data:CompositeFilterDescriptor LogicalOperator="Or">
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Credit" />
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Common" />
                 </Data:CompositeFilterDescriptor>
             </Data:CompositeFilterDescriptorCollection>
         </Controls1:RadGridView.FilterDescriptors>
         <Controls1:RadGridView.GroupHeaderTemplate>
             <DataTemplate>
                 <Border Background="{Binding Group.Items[0].HlpGroupCompany.Brush}"
                         Padding="3"
                         Width="250"
                         CornerRadius="3"
                         BorderThickness="1">
                     <StackPanel Orientation="Horizontal">
                         <TextBlock Text="Group company:"
                                    Margin="0,0,3,0" />
                         <TextBlock Text="{Binding Group.Key}"
                                    Foreground="{StaticResource DarkBackground}"
                                    FontWeight="Bold" />
                     </StackPanel>
                 </Border>
             </DataTemplate>
         </Controls1:RadGridView.GroupHeaderTemplate>
         <Controls1:RadGridView.Columns>
             <Controls1:GridViewDataColumn Header="Account"
                                           DataMemberBinding="{Binding Description}" />
             <Controls1:GridViewDataColumn Header=""
                                           DataMemberBinding="{Binding HlpCurrency.CurrencyId}" />
         </Controls1:RadGridView.Columns>
     </Controls1:RadGridView>

Many thanks
Jeremy Holt
Maya
Telerik team
 answered on 08 Mar 2011
1 answer
201 views
Hi,

I have declared the following template in my Resource File :
<DataTemplate x:Key="MenuItem">
<telerik:RadMenuItem 
                Margin="0"
                Padding="0"
                Header="{Binding Header}"
IsCheckable="{Binding IsCheckable}"
IsChecked="{Binding IsChecked, Mode=TwoWay}"
IsSeparator="{Binding IsSeparator}"
IsEnabled="{Binding IsEnabled}"
Command="{Binding MenuCommand}"
/>
        </DataTemplate>

<HierarchicalDataTemplate 
x:Key="MenuItemTemplate"
ItemsSource="{Binding MenuItems}"
ItemTemplate="{StaticResource MenuItem}">
        <telerik:RadMenuItem Header="{Binding Header}"
                             IsCheckable="{Binding IsCheckable}"
                             IsChecked="{Binding IsChecked, Mode=TwoWay}"
                             IsSeparator="{Binding IsSeparator}"
                             Margin="0"
                             Padding="0"
                             IsEnabled="{Binding IsEnabled}"
                             Command="{Binding MenuCommand}"/>
</HierarchicalDataTemplate>

And I am using the above resources in RadGridView as below:
 <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="_gridContextMenu" 
Opened="_gridContextMenu_Opened"
ItemTemplate="{StaticResource MenuItemTemplate}"
ItemsSource="{Binding ContextMenu}">
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
ContextMenu is a ObservableCollection<ContextMenuController>. 

Now Everything seems to be working except that IsSeperator doesn't work. When IsSeperator is true for a ContextMenuController it still shows as an Item occupied more space than it is supposed to be.

Look at the attached image and see how it shows the RadMenuItem which is nothing but a seperator.

Regards
Sanket
Pana
Telerik team
 answered on 08 Mar 2011
1 answer
128 views
Hi,

I'm having some very odd behaviour by using the Expression Dark resource dictionary for the BusyIndicator in my project. I had everything working perfectly with the default style and settings. I have a requirement to make the background overlay more opaque, so I attached the busy indicator resource dictionary and fired up my application ready to try and tweak it. At this point I have not changed anything in the resource dictionary, only attached it to my project. It seems that this action alone causes the BusyIndicator to fire and cover my whole window with the overlay. If I comment out the line that links the resource dictionary to my project, the problem disappears.

Does anyone have any idea why this might be?

All I want to do is make the grey overlay a little more transparent, so if there is another way to achieve this without editing the resource dictionary that would also help.

Thanks

Mark
Dani
Telerik team
 answered on 08 Mar 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?