Telerik Forums
UI for WPF Forum
12 answers
674 views
If I replace the RadAutoCompleteBox with a normal wpf textbox I can set focus in event OnLoaded with method myTextBox.Focus();
her is the code with the RadAutoCompleteBox that is not working:

<Window x:Class="Propertydesigner.Window1"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        Title="Window1" Height="300" Width="300" Loaded="Window1_OnLoaded" >
    <Grid>
        <telerik:RadBusyIndicator Grid.Row="1"  IsIndeterminate="True">
            <Grid HorizontalAlignment="Stretch" Margin="5">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
 
                <StackPanel>
                    <TextBlock Text="Enter a document name" Margin="0 0 0 5"/>
                    <controls:RadAutoCompleteBox  x:Name="SearchForDocuments"
                         DisplayMemberPath ="Name"
                         SelectionMode="Single"
                         TextSearchMode="Contains"                   
                         HorizontalAlignment="Stretch"
                         Margin="0 0 0 3"/>
                </StackPanel>
 
                <StackPanel Grid.Row="2"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Center"
                    Margin="0 10 0 0">
                    <telerik:RadButton Content="OK"  Width="70" Margin="0 0 10 0" />
                    <telerik:RadButton Content="Cancel" Width="70"/>
                </StackPanel>
            </Grid>
        </telerik:RadBusyIndicator>
    </Grid>
</Window>


  private void Window1_OnLoaded(object sender, RoutedEventArgs e)
        {
            SearchForDocuments.Focus();
        }


Nencho
Telerik team
 answered on 19 Sep 2014
5 answers
151 views
Hello,

I need to Populate current date in my telerik datepicker control as soon as i hit F3 key. How can i achieve this in wpf telerik datepicker?

Thanks,

Abdi
Kalin
Telerik team
 answered on 19 Sep 2014
0 answers
145 views
Hi Telerik Team,
I have a ContextMenu on a GridView where it will be opened on MouseLeftButtonClick, from here the Copy and Paste menu will invoke a copy and paste comman programmatically I've tried sample from the online documentation but I have no success. Any idea? 
Juzailie
Top achievements
Rank 2
 asked on 19 Sep 2014
1 answer
148 views
Hello, 

Below is a part of the template of CollectionEditor. I've added a new button named "ButtonClose" in to the footer of the collection editor. What should I do in code behind to make the collection editor close? Simply change the visibility?



<Border x:Name="FooterPanel_Background" Grid.Row="3" BorderBrush="{StaticResource ControlOuterBorder}" BorderThickness="0,1,0,0"  Grid.ColumnSpan="2" Background="{StaticResource CollectionEditor_FooterPanel_Background}">
                            <Grid>
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                                    <telerik:RadButton IsEnabled="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" 
                                                       MinWidth="48"  MinHeight="21"  Margin="4,6,4,7" 
                                                       telerik:StyleManager.Theme="{StaticResource Theme}" 
                                                       telerik:LocalizationManager.ResourceKey="CollectionEditorAdd"
                                                       Command="{x:Static propertyGrid:CollectionEditorCommands.AddNew}"/>
                                    <telerik:RadButton IsEnabled="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" 
                                                       MinWidth="48" MinHeight="21"  Margin="0,6,4,7" 
                                                       telerik:StyleManager.Theme="{StaticResource Theme}" 
                                                       telerik:LocalizationManager.ResourceKey="CollectionEditorRemove"
                                                       Command="{x:Static propertyGrid:CollectionEditorCommands.Delete}"/>
                                    <telerik:RadButton MinWidth="48" MinHeight="21"  Margin="0,6,4,7" Name="ButtonClose"
                                                       telerik:StyleManager.Theme="{StaticResource Theme}" 
                                                       Content="Close"
                                                       Click="ButtonClose_Click"/>
                                </StackPanel>
                                <Thumb x:Name="PART_ResizeThumb" Style="{StaticResource CollectionEditorGripperStyle}" Visibility="{TemplateBinding ResizeGripperVisibility}"/>
                            </Grid>
                        </Border>
Dimitrina
Telerik team
 answered on 19 Sep 2014
3 answers
96 views
When draging a toolboxitem from the toolbox gallery into the diagram is it possible to automatically open the SettingsPane ?

I have the following scenario: The user drags components from the toolbox into the diagram , the components have a few mandatory properties that needs to be set in its business object. My strategy is to put a form for the input of these properties in the SettingsPane and have this open whenever a new component is dropped into the diagram.

Petar Mladenov
Telerik team
 answered on 19 Sep 2014
1 answer
110 views
Hi,

I have a propertygrid with dynamically generated property definitions. I am currently setting the EditorTemplate for each PropertyDefinition at run time.
The issue I am facing is, when I use tab key to navigate from one row to another with the focus on the template, the next PropertyDefinition is not getting selected.
FYI, I used the keyboard navigation support for tabbing. This works fine on AutoGenerated columns but not on custom columns.

Thanks and Regards,
Nagarajan B P
Dimitrina
Telerik team
 answered on 18 Sep 2014
3 answers
150 views
I have a comboBox on my page after this comboBox i have a Telerik:RadTabControl with 3 tabs.

Upon loading this particular window the 3 Tabs pf tje RadTabControl are disabled. If the change event of the comboBox when a value has been selected I want to enable the 3 tabs.

How do I do this?
Julian
Top achievements
Rank 1
 answered on 18 Sep 2014
1 answer
152 views
I am using the RadWindow.Prompt for a user to rename files and folders.  Is there a way for me to give the textbox that comes up in the Prompt the ability to ignore illegal filename characters?  { '\\', '/', '*', '<', '>', ':', '"', '?', '|' }).   Beyond Prompt I don't see how to access any other properties to do that.  I want the same behavior as Windows Explorer where if an illegal character is entered, it is just ignored as if it wasn't typed.
Yana
Telerik team
 answered on 18 Sep 2014
5 answers
252 views
Hello,

Is there a way to open the DropDownContent of the RadDropDownButton not on MouseUp, but already on MouseDown?
I could create an PreviewMouseDown event handler and toggle the IsOpen property. However, the button for some reason also captures the mouse so that I always get an inconsistent behavior on the second click. But when I say e.IsHandled = true, I cannot click any controls inside the popup...

The Idea is that the button should behave similar to a menu:
- The first click on button opens the popup, the second click anywhere outside of the popup closes it.
- A click inside of the popup is ignored by the button (I have different controls inside the popup, not only buttons).

Alex
Kiril Vandov
Telerik team
 answered on 18 Sep 2014
1 answer
177 views
Hi,

if i add the page number in the header or the footer, the correct numbers on every page are shown.
If i then edit the header on one page, every page shows the page number of that page.

before edit:

page 1 -> 1
page 2 -> 2
page 3 -> 3

after edit (edit of header on page 2):

page 1 -> 2
page 2 -> 2
page 3 -> 2

This behavior can be reproduced in the current telerik demo! How can i achieve a proper behavior?

Thanks for your help.
Aylin
Telerik team
 answered on 18 Sep 2014
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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?