Telerik Forums
UI for WPF Forum
2 answers
152 views
A customer is asking me if it's possible to do the following:
  • Entering time directly in the box, but filtering possible value as 00-23 for hours and 00:59 for minutes
  • Allowing maximum of 4 characters. I.e. 2359
  • Automatically SelectAll content of the input box on focus

Kind regards
4ward s.r.l.
Top achievements
Rank 1
 answered on 22 Dec 2009
2 answers
244 views
I need to skip the inputBox focus on Tab in order to speed up data entry through keyboard, but even if we set IsTabStop property to false on the DatePicker, the InputBox on its left is still getting focus on Tab, is it possible to change this behaviour ?

Thanks and regards,

Ivan
4ward s.r.l.
Top achievements
Rank 1
 answered on 22 Dec 2009
1 answer
145 views
FYI,
    The first column of my grid is readonly. I needed to programmatically  add a value to a cell in this column. This is how to do it:

<data table>.Columns[<column index>].ReadOnly = false;

<data table>.Rows[<row index>][<column index>] = <value>;

<data table>.Columns[<column index>].ReadOnly = false;

column index is 0 for me.
Nedyalko Nikolov
Telerik team
 answered on 22 Dec 2009
1 answer
169 views
Hello, I organiza my windows like tabItems in tab controls. when i click on menu item:

        private void PaieskaTab_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) 
        { 
            RadTabItem tabItem = new RadTabItem(); 
            ListTemplate lst = new ListTemplate(); 
            lst.tabWindow = tabItem; 
            tabItem.Content = lst; 
            tabItem.Header = "Paieskos langas"; 
            tabItem.Name = "tabPaieskosTestas"; 
            tabControlR.Items.Add(tabItem); 
        } 
ListTemplate is a user control. In List template is a button "Close". Now when i click this button, i need that this tab,whitch contains this user control, would close. I try code from other forum in telerik:
            var tabItem = tabWindow as RadTabItem; 
 
            var parentItemsControl = Telerik.Windows.Controls.ItemsControl.ItemsControlFromItemContainer(tabItem); 
 
            parentItemsControl.Items.Remove(tabItem);  
But his code shows error:
Error 23 The type or namespace name 'ItemsControl' does not exist in the namespace 'Telerik.Windows.Controls' (are you missing an assembly reference?) D:\!_Projects\Teleric_EmptyProject WPF\XSoftArt.WPFengine\XSoftArt.WPFengine\BaseClasses\ListTemplate.xaml.cs 1102 63 XSoftArt.WPFengine
Its this becouse that code is for Silverlight..?How i must change it to get working..?
Valentin.Stoychev
Telerik team
 answered on 22 Dec 2009
1 answer
152 views
Hello

I use a hierarchy grid
not all the rows have children
in my case
the first rows dont have children
so there is now column for the expand button
when i scroll down and I see the rows taht have children
the expand column appear
but whn I scroll back' to the rows that dont have children
the columns move
I attached 3 print screens
Thanks
Missing User
 answered on 22 Dec 2009
1 answer
89 views
I am working on a project where I need a different control type (date picker, combo box, textbox) for each cell on the same column.

Example:

Attributes Value
Name Textbox
DOB Date Picker
Origin Combo Box (List of Countries)

If it is possible, any sample code would be appreciated.

Thanks.

Vlad
Telerik team
 answered on 22 Dec 2009
3 answers
142 views
When I do this: RadGridView.ItemsSource = null;
A first chance exception of type 'System.ArgumentException' occurred.What can I do?
Message:
    "Invalid property or field - 'tip' for type: Object"
StackTrace:
   at Telerik.Windows.Data.Expressions.MemberAccessTokenExtensions.CreateMemberAccessExpression(IMemberAccessToken token, Expression instance)
   at Telerik.Windows.Data.Expressions.ExpressionFactory.MakeMemberAccess(Expression instance, String memberName)
   at Telerik.Windows.Data.Expressions.ExpressionFactory.MakeMemberAccess(Expression instance, String memberName, Boolean liftMemberAccessToNull)
   at Telerik.Windows.Data.Expressions.PropertyAccessExpressionBuilder.CreateMemberAccessExpression()
   at Telerik.Windows.Data.Expressions.MemberAccessExpressionBuilderBase.CreateLambdaExpression()
   at Telerik.Windows.Data.SortDescriptorCollectionExpressionBuilder.Sort()
   at Telerik.Windows.Data.SortDescriptorCollection.Sort(IQueryable queryable)
   at Telerik.Windows.Data.QueryableExtensions.Sort(IQueryable source, SortDescriptorCollection sortDescriptors)
   at Telerik.Windows.Data.QueryableCollectionView.CreateView()
   at Telerik.Windows.Data.QueryableCollectionView.get_QueryableView()
   at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList()
   at Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList()
Vlad
Telerik team
 answered on 22 Dec 2009
1 answer
459 views
Hello,

I need a context menu on my radgrid view, but i need it to operate on the current data context of the cell (I.e. each operation on the context menu will be on the current context of the cell (or row).

I used this code:
            <telerik:RadGridView.Resources>
                <ContextMenu x:Key="MyContextMenu" Opened="ContextMenu_Opened_1">
                    <MenuItem Header="Update Order" Click="Update_Click"/>
                    <MenuItem Header="Cancel Order" Click="Cancel_Click"/>
                </ContextMenu>
            </telerik:RadGridView.Resources>

But i didn't know how to implement Update_Click to operate on the appropriate DataContext

Thanks,
Ofer
Vlad
Telerik team
 answered on 22 Dec 2009
4 answers
400 views

Hi Guys,

When I drag the nodes in the treeview, it displays "Infinity is not a valid value for the property Width". What caused this error?

Thanks,

Lauren Nickerson
Top achievements
Rank 1
 answered on 21 Dec 2009
3 answers
156 views
I am trying to achieve a very simple 2 pane docking layout. I want both panes to fill the space available with a splitter between them. If I hide one pane I want the other to fill the remaining space. Here is my markup:

    <Grid> 
         
        <telerik:RadDocking Name="radDocking1" > 
             
            <telerik:RadSplitContainer Name="LeftContainer" InitialPosition="DockedLeft" > 
                 
                <telerik:RadPaneGroup> 
                    <telerik:RadPane Header="Task List"> 
                    </telerik:RadPane> 
                </telerik:RadPaneGroup> 
                 
            </telerik:RadSplitContainer> 
 
            <telerik:RadSplitContainer Name="RightContainer" InitialPosition="DockedRight"> 
 
                <telerik:RadPaneGroup> 
                    <telerik:RadPane Header="Map"> 
                    </telerik:RadPane> 
                </telerik:RadPaneGroup> 
            </telerik:RadSplitContainer> 
 
        </telerik:RadDocking> 
    </Grid> 
 


What seems to be blocking this is the DocumentHost. Even when I remove the document host by following the posted instructions - using blend to grab the style sheet and setting visibility to collapsed I still can't get my 2 panes to fill the space.

Any ideas anyone?

Cheers

Steve
Steve Chadbourne
Top achievements
Rank 1
 answered on 21 Dec 2009
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?