Telerik Forums
UI for WPF Forum
1 answer
181 views
I have IsTabStop="False" set on my RadToolBar but when I start tabbing it still gets focus... why is this and how do I stop it from being a tab stop?
Vladislav
Telerik team
 answered on 12 Jun 2013
2 answers
245 views
Hello Telerik ,
I can copy appointments in RadScheduleView by holding the CTRL key and dragging the appointment to the desired slot.
But I want to have this functionality in my ContextMenu or by using shortcuts.
 Is there any way to make copy/paste work with standard keyboard shortcuts (CTRL-C/CTRL-V) or  ContextMenu
?
Thank you in advance,
hiwa
Hiwa
Top achievements
Rank 2
 answered on 12 Jun 2013
3 answers
192 views

Hello,

I’ve found a strange behavior of the validation while cancel editing a cell. When I edit a cell and enter an invalid value it shows me, that there is an input error. Very nice and cool! But when I cancel the editing with the escape key, the cell resets the content to the previous value. If the previous value was invalid too, there is no error message.

Is there something I can do to fix the problem?

Dimitrina
Telerik team
 answered on 12 Jun 2013
3 answers
972 views
Consider my DataTemplateSelector below. I want all my RadPropertyGrid to have this particular editor for all string properties. This implies a problem when binding to the property in XAML - since the property name is unknown! How can I get this working?

My initial thought was to map Path to the property so that I can later bind to the Path instead of a specified property name. Ideas?

 

public class MyPropertyGridDataTemplateSelector : DataTemplateSelector
{
    public override DataTemplate SelectTemplate(object item, DependencyObject container)
    {
        var pd = item as PropertyDefinition;
 
        if (pd != null && pd.SourceProperty.PropertyType == typeof(string))
        {
            /* Something like this?
            pd.Binding = new Binding
            {
                Path = new PropertyPath(pd.SourceProperty.Name),
                Mode = BindingMode.TwoWay,
                UpdateSourceTrigger = UpdateSourceTrigger.LostFocus
            };
            */
 
            return FilePathDataTemplate;
        }
 
        return null;
    }
 
    public DataTemplate FilePathDataTemplate { get; set; }
}

Binding becomes a problem since the property name is unknown:
<local:MyPropertyGridDataTemplateSelector x:Key="dataTemplateSelector">
        <local:MyPropertyGridDataTemplateSelector.FilePathDataTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <!-- This is where the problem begin... -->
                    <TextBox Text="{Binding Path}" Grid.Column="0" />
                    <Button Content="..." Width="25" Height="25" Grid.Column="1" Command="{Binding DataContext.OpenCommand, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" CommandParameter="{Binding Path}" />
                </Grid>
            </DataTemplate>
        </local:MyPropertyGridDataTemplateSelector.FilePathDataTemplate>
    </local:MyPropertyGridDataTemplateSelector>
Ivan Ivanov
Telerik team
 answered on 12 Jun 2013
1 answer
136 views
Hello. How can I hide currency mask in RadMaskedCurrencyInput when I select this control? (I see next number ",   ,   ,  1.01", but I need to see only 1.01). Thanks.
Pavel R. Pavlov
Telerik team
 answered on 12 Jun 2013
1 answer
297 views
Hi,

I would like to have the width of the ganntview: 50% for the grid (left side) and 50% for the chart (right side).

Thanks

Madani
Vladi
Telerik team
 answered on 12 Jun 2013
1 answer
264 views
I am working on an application where functionality of a left click in a gridview (click on row and its highlighted) - extended to the MouseDown (right click) as well. I have searched the forums extensively and cannot find a solution. 

Basically all that I need to do is if a row is right clicked - set that to the selected row and highlight it.
Yoan
Telerik team
 answered on 12 Jun 2013
1 answer
286 views
Hi There,

I have a requirement where i have to display a small image at left side of contentpresenter on every header of control. for this at present i have to add a below xaml to every controls template,

<ControlTemplate TargetType="ContentControl"
                   x:Key="Sample">
      <StackPanel Orientation="Horizontal">
          <mage x:Name="Symbol"
                         Template="{Binding
                                                          Path=(prop:VResultType),
                                                          RelativeSource={RelativeSource TemplatedParent},
                                                          Converter={StaticResource vSymbolConverter}}"
                         Margin="0,0,5,0"
                         Visibility="Collapsed"
                         Height="16"
                         Width="16">
 
              <ToolTipService.ToolTip>
                  <ToolTip Placement="Bottom"
                           Content="{Binding
                                                      Path=(prop:ResultIndicator.ResultToolTip),
                                                      RelativeSource={RelativeSource TemplatedParent}}" />
              </ToolTipService.ToolTip>
          </uxc:XamlImage>
          <ContentPresenter x:Name="Content"
                            ContentSource="Header"
                            RecognizesAccessKey="True"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                            Height="Auto"
                            Width="Auto"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"
                            Visibility="Visible" />
      </StackPanel>
  </ControlTemplate>


but there will be a huge maintenance. i want to place this in one place may be i can create a template for contentpresenter and i can use the style key. 


If you have any better solution please guide me.

Thanks in Advance,
Srinivas.
.
Vanya Pavlova
Telerik team
 answered on 12 Jun 2013
1 answer
504 views
Hi,

We are sorting our columns only during Grid load and are using XAML to sort the Grid (see below). We have disabled runtime column sorting. But we don't want to show Sort indicator as this is not looking nice on UI (please see UI snapshot).

XAML Snippet:-

ColumnDefinition:-

 

<telerik:GridViewDataColumn Header="Ccy" DataMemberBinding="{Binding CurrencyBucket}" Width="50"

 

ColumnGroupName="Filler2" />

SortDescription:-

 

<telerik:ColumnSortDescriptor Column="{Binding Columns[\CurrencyBucket\], ElementName=CcySummaryGrid}"

 SortDirection="Ascending" />

 

 

 

Maya
Telerik team
 answered on 12 Jun 2013
2 answers
133 views
Is there any way to change the default behavior of the left mouse button when clicking on an empty area of a diagram?
By default it creates a selection rectangle but I would prefer if it defaulted to drag mode (the same as when you Ctrl-Left click).

Is this possible?
Jason
Top achievements
Rank 1
 answered on 12 Jun 2013
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?