Telerik Forums
UI for WPF Forum
2 answers
40 views
Hi team,

Im getting "get_IsInDesignMode()    " error while trying create and object of Radwindow

here is the stack trace.

StackTrace = "   at Telerik.Windows.Controls.RadWindow.get_IsInDesignMode()    at Telerik.Windows.Controls.RadWindow..ctor()    at

please let me know how i can resolve this

-raj
orion systems india
Miroslav Nedyalkov
Telerik team
 answered on 23 Dec 2009
2 answers
119 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
189 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
108 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
140 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
106 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
62 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
97 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
423 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
326 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?