Telerik Forums
UI for WPF Forum
7 answers
328 views
Hi,

shouldn't the RadContextMenu ensure on opening that the focus is within the attached element (or a child of it) in order to ensure that routed commands are working properly ?
Lets say I've two controls A and B.
Control B has a RadContextMenu set and contains a listbox.
The context menu contains one item "Copy" with the corresponding ApplicationCommands.Copy command set.
Control B has class command handlers for the Execute and CanExecute events of the ApplicationCommands.Copy command set.

Now if  control A receives the focus, you can still open the context menu for control B by simply right-clicking on it.
But the "Copy" menu item is now always disabled, since without the focus, the CanExecute and Execute event handlers of Control B are never called, so nobody listens on CanExecute in this case => the command is disabled.

If you left click on B's listbox and then open the context menu via right click, everything works properly, since now the listbox or it's item has the focus and CanExecute event walks up to control b.

Did I overlook something or do I really need to handle the RadContextMenu.ContextMenuOpening event manually and check whether to set the focus or not ?

Thanks in advance

Thorsten Klingert

Rosi
Telerik team
 answered on 26 Oct 2011
9 answers
453 views
I tried restyling the RadDocking ToolWindows. So I followed the instructions, created a dummy control with a RadDocking in it. copied a ToolWindow Style to a ResourceDictionary.

However now I end up with an error

Error 1 The type reference cannot find a public type named 'RadDockingTheme'.

The error refers to
 <Style x:Key="{telerik:ThemeResourceKey ThemeType={x:Type local:RadDockingTheme}, ElementType={x:Type telerik:ToolWindow}}" TargetType="{x:Type telerik:ToolWindow}">

I Have an empty class like this :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.Windows.Controls;

namespace RadControlsWpfApp1
{
    public class RadDockingTheme:Theme
    {
    }
}

and added xmlns:local="clr-namespace:RadControlsWpfApp1;assembly=RadControlsWpfApp1" before the style definition.

Can somebody tell me waht is wrong or post the source code of a working example of a restyled radpane toolbox?

Thanks in Advance!

Pieter

Dani
Telerik team
 answered on 26 Oct 2011
1 answer
109 views
Is it possible to bind and a funtion to "Add New Criteria" and "Delete" buttons onClick event?

Or an alternative event that fires everytime a new Filter Criteria or Nested Operator is added?

http://www.telerik.com/help/silverlight/raddatafilter-visual-structure.html

Rossen Hristov
Telerik team
 answered on 26 Oct 2011
1 answer
208 views
 

Hello Telerik Team,

I have a requirement where the rad combobox has a list of names. After selecting a value from the dropdown panel, the selected name should be displayed as a hyperlink.
I have managed to get the hyperlink by using a DataTemplate in the SelectionBoxTemplate of the radcombobox as shown below.

 

<UserControl.Resources>
<DataTemplate x:Key="SelectionBoxTemplateKey">
            <TextBlock>
                <Hyperlink Tag="{Binding Path=FocalUserId}" Name="hyplnkFocalFullName" 
                                Click="hyplnkFocalFullName_Click">
                    <TextBlock Text="{Binding FocalFullName}" ></TextBlock>
                </Hyperlink>
            </TextBlock>
        </DataTemplate>
</UserControl.Resources  
  
  
<Telerik:RadComboBox Name="radCmbFocal" IsEditable="False" Grid.Row="3" Grid.Column="5" Width="130"
      SelectedValue="{Binding Path=FocalId,Mode=TwoWay}"    SelectedValuePath="FocalId"
   DisplayMemberPath="FocalFullName" SelectionBoxTemplate="{StaticResource SelectionBoxTemplateKey}" 
  
HorizontalAlignment="Left" Margin="7 0 0 0" VerticalAlignment="Center"
    
SourceUpdated="radCmbFocal_SourceUpdated">                
</Telerik:RadComboBox>

But the click event of the hyperlink doesn't get's fired, nor does the cursor pointer changes to hand cursor on hovering over the selected value as it does for a normal hyperlink.

Is there a solution to achieve this requirement.

Thanks.

Regards,
Mausami.

Dani
Telerik team
 answered on 26 Oct 2011
1 answer
89 views
is there any documentation for this new control

cheers

Jason
Rossen Hristov
Telerik team
 answered on 26 Oct 2011
1 answer
76 views
When I put 1 in Minimum, en type -5 the value is 1.

If I put 0 (zero) in Minimum and type -5, the value stays at -5...

Bug ?
Michel
Top achievements
Rank 1
 answered on 25 Oct 2011
0 answers
84 views
I would like to define how my columns are presented based on the value type (e.g. integers are red, double blue, Image is shown with an icon, Percentage with a progress bar, etc). I just read about DataTemplateSelector, is this the way intended for the RadGridView? If so how do I set the datatemplateselector on the gridview? If not, what is the correct approach?

thank you for your time!
marc
Top achievements
Rank 1
 asked on 25 Oct 2011
1 answer
698 views
I have a data entry grid that I am grouping by a code in each detail record (by default - the user does not see the grouping panel).  I would like to be able to show some additional data from the group on the header.  To do this I am using Aggregate functions which does display the correct data.  However, I really want to be able to format these results to save some space and make the display more readable.  For example:
00000 Description   Cash  Inv
                                1.00   5.00

What shows is:
00000 Description  Cash 1.00  Inv 5.00

If I leave the aggregate functions showing, I can't seem to format them.  Here is the group descriptor and template that I am trying to use.  What am I missing?  Is there another way to do this?  The data is really parent/child related but the data entry is better for our users if they can go from one "parent' to another so flattened the heirarchy.  This is working fine except the display of the group header.

thanks, Koren
P.S. I realize that the template display may not be exactly right but I can't tweak it until it actually displays something.

<telerik:RadGridView.GroupHeaderTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Margin="0,0">
                        <TextBlock Text="{Binding Group.Key}" Margin="0,0,0,2" Width="200" />                       
                        <telerik:AggregateResultsList ItemsSource="{Binding}" VerticalAlignment="Center">
                            <ItemsControl.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Vertical" VerticalAlignment="Center">
                                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding Caption}" Width="80" />
                                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding FormattedValue}" Width="80" />
                                    </StackPanel>
                                </DataTemplate>
                            </ItemsControl.ItemTemplate>
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel Orientation="Horizontal" />
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>
                        </telerik:AggregateResultsList>
                    </StackPanel>
 
                </DataTemplate>
            </telerik:RadGridView.GroupHeaderTemplate>
            <telerik:RadGridView.GroupDescriptors>
                <telerik:GroupDescriptor x:Name="TransactionGroup" Member="TransactionGroup" SortDirection="Ascending" >
                    <telerik:GroupDescriptor.AggregateFunctions>
                        <telerik:MinFunction Caption="Cash: " SourceField="CashTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="Inv Beg: " SourceField="BegInvTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="End: " SourceField="EndInvTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="Acc Beg: " SourceField="BegAccruedTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="End: " SourceField="EndAccruedTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="Accrual: " SourceField="AccrualAmount" ResultFormatString="{}{0:0.00}"  />
                        <telerik:SumFunction Caption="Ent Amt: " SourceField="Amount" ResultFormatString="{}{0:c2}"  />
                        <local:EnterpriseDifferenceFunction Caption="Diff: " ResultFormatString="{}{0:0.00}" />
                    </telerik:GroupDescriptor.AggregateFunctions>
                </telerik:GroupDescriptor>
            </telerik:RadGridView.GroupDescriptors>


Dimitrina
Telerik team
 answered on 25 Oct 2011
1 answer
71 views
I have a very simple model.
Users can choose multiple surfaces to show the scheduled events. Basically I have to group them ( in all views) by each surface name.
Something very similar to your first look example. But we get all that data from a database. So the surface selection is always dynamic.
And each surface has it's own color elements. Also, each appointment belongs to a particular customer and users can assign different color properties to each of these clients. I want to know, if you guys can give me a full ( event if it is simple) example of how I can achieve this using XML as my data source? I am kind of new to your controls.
Rosi
Telerik team
 answered on 25 Oct 2011
1 answer
227 views

Hello,
Can I stop the grid from being rendered while manipulating data, and making it render again only at a specific point?

Now I have serious performance issues, which seems to be caused by over re-measuring of the grid.

Pavel Pavlov
Telerik team
 answered on 25 Oct 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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?