Telerik Forums
UI for WPF Forum
5 answers
449 views
Hi

I wanted to set the default DateTimeWatermarkContent for RadDatePicker from Style. At first it seemed not working (the default "Enter date" text appeared), later I have defined the property for each RadDatePicker manually and later removed these manual overrides for some reason. Surprisingly, the Style definition seemed to work now, but only in Visual Studio (I could even change the default value and the designer followed the changes). However, when I have run the application, my style definition was not used ("Enter date", again). Even stranger that from this point on, the designer "forgot" to use the style again as well.

What am I doing wrong? It is possible to set this property from Style?

My code:

 <Window.Resources>
        <ResourceDictionary>
            <Style TargetType="telerik:RadDatePicker">
                <Setter Property="Culture" Value="hu-HU" />
                <Setter Property="MinWidth" Value="100" />
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="DateTimeWatermarkContent" Value=""/>
            </Style>
        </ResourceDictionary>
    </Window.Resources>
...
<telerik:RadDatePicker Grid.Column="1" Grid.Row="0"></telerik:RadDatePicker>
<telerik:RadDatePicker  Grid.Column="1" Grid.Row="2"></telerik:RadDatePicker>
...

Any ideas?

Thanks for the help in advance!


Gergely
Top achievements
Rank 1
 answered on 20 Oct 2010
1 answer
252 views
Hello,

     I wanted to make a suggestion for your next release of RadWindow.  When it is active in a modal state (i.e. prompt or ShowDialog), it does not behave as one would expect.  The Tab, Control, and Directional navigation does not operate in a manner that the customer would expect.  If you go to your online demo, activate one of the Prompt samples.  Than place focus in the address bar and start tabbing.  You will notice that the controls behind the prompt get keyboard focus as well as Control and Navigation focus.

      It would be great if your prompt was the only thing a user can focus to.  I don't have to tell you how much of a problem this is in the case of protected (meaning that if I wanted a user to do something before gaining access to the main application a user can bybass my prompt and interact with the protected controls). 

- Rashad Rivera
George
Telerik team
 answered on 20 Oct 2010
2 answers
131 views
Hi, i've got a problem.
in my project i've a class like this :

 

 

 

 

public class Progetto
   {
       public Progetto()
       {
           ID = 0;
           Descrizione = String.Empty;
           Stringhe = new ObservableCollection<Stringa>();
           Sprites = new ObservableCollection<Sprite>();
       }
       public int ID { set; get; }
       public String Descrizione { set; get; }
       public ObservableCollection<Stringa> Stringhe { set; get; }
       public ObservableCollection<Sprite> Sprites { set; get; }
   }

In my RadTree i'd like to see  under the root node (Progetto) the two items "stringhe" and "sprites". I Tried with HierarchicalDataTemplate but with no result because under the root node i can only see "Stringhe" or "Sprites"... how to see that together ?? :

 

 

 here my Hierrarchical..

<HierarchicalDataTemplate x:Key="Stringa">
             
           <StackPanel Orientation="Horizontal">
               <TextBlock Text="{Binding Ciao}" Foreground="Black" FontWeight="Bold" FontSize="12" />
               <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" />
           </StackPanel>
       </HierarchicalDataTemplate>
       <HierarchicalDataTemplate x:Key="Sprite">
           <StackPanel Orientation="Horizontal">
               <TextBlock Text="{Binding ID}" Foreground="Black" FontWeight="Bold" FontSize="12" />
               <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" />
           </StackPanel>
       </HierarchicalDataTemplate>
 <HierarchicalDataTemplate x:Key="Progetti" ItemsSource="{Binding Stringhe}"
                                 ItemTemplate="{StaticResource Stringa}">
           <StackPanel Orientation="Horizontal" >
               <TextBlock Text="{Binding ID}" Foreground="Black" FontWeight="Bold" FontSize="12" />
               <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" />
           </StackPanel>
       </HierarchicalDataTemplate>

Any Idea.. THANX IN ADVANCE

Claudio
Top achievements
Rank 1
 answered on 20 Oct 2010
1 answer
91 views
Hello,
is it possible to use Telerik controls without theme eq. mixing standard SL controls with Telerik's?
 
Teleriks themes is nice, but some conservative customers like old win32 application (Windows 98/2000 gray canvas).

How to use Telerik DataGrid with native Silverlight Button in one place?

Thanks
Kalin Milanov
Telerik team
 answered on 20 Oct 2010
2 answers
145 views

Hello all,

First of all, I have done some searching on the Telerik forums (and using Google) to find my desired behavior, but I haven't been able to find quite what I'm looking for.  If there is another post or how-to that I missed, please direct me there.

I am working with the WPF GridView control, and want to duplicate the behavior of the current WPF Toolkit DataGrid, with regards to editing.  When you are focused on a cell (in the WPF DataGrid), you can immediately start typing, and the input cell will switch to edit mode and record that first key stroke, and continue in edit mode.  (Think Microsoft Excel as another example.)  I have been playing with the RadControls WPF Demo App, and cannot find any example that behaves in this fashion.  Speed of data entry is a prime consideration for our users, and most will be using a tablet pc, so the act of double-clicking to change to edit mode makes for an inconvenient extra step.

Hopefully my description is clear...  any help is greatly appreciated.
Thanks!
-Matt.
Matt
Top achievements
Rank 1
 answered on 20 Oct 2010
1 answer
115 views
Hello,

i have some unsteady and non-reproducible XamlParseExceptions in the context of telerik RadGridView. These exceptions are caused by a denied access to  tmp-files in the users temp-dir (eg: "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp").
The files content is binary (maybe some BAML?).  The user is logged in as a normal user (not as administrator).
We are developing a desktop application using the RadGridView for WPF (2009.2) with .NET3.5 and Windows 7.


System.Windows.Markup.XamlParseException: Die in der Assembly "Telerik.Windows.Controls.GridView, Version=2009.2.813.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" definierte Instanz von "FrozenColumnsSplitter" kann nicht erstellt werden. Ein Aufrufziel hat einen Ausnahmefehler verursacht.  Fehler in Objekt "PART_FrozenGridViewCellsPanel" in Markupdatei "Telerik.Windows.Controls.GridView;component/themes/office/black/DataCellsPresenter.xaml". ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp" wurde verweigert.
   bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bei System.IO.File.Delete(String path)
   bei System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
   bei System.Windows.Input.Cursor..ctor(Stream cursorStream)
   bei Telerik.Windows.Controls.GridView.GridViewCursors.get_RefreezeCursor()
   bei Telerik.Windows.Controls.GridView.FrozenColumnsSplitter..ctor()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
   bei System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)


Does anyone have any ideas whats happening here and how to avoid it?

thanks
tim
Milan
Telerik team
 answered on 20 Oct 2010
2 answers
43 views
I wish to capture the selection changed event for DateTimePicker. But the event is triggered when I select the date and yet to select the time, how to make sure that the event is triggered only after I select both date and time?
Kaloyan
Telerik team
 answered on 20 Oct 2010
5 answers
171 views
Hi,
I need to add a button to my treeviewitems in code behind (c#).
I don't find any "How to ", can you please help me?

Regards.
/Rodolfo
Alex Fidanov
Telerik team
 answered on 20 Oct 2010
4 answers
416 views
In code, I am attempting to execute the following pseudo code:

On left mouse up 
{
   (If the item clicked is an image) and
   (matches Carosel.FindCaroselPanel().TopComtainer)
   {
      Show image preview overlay.  // This is not a thumbnail as is inside the carousel. It's a bigger image.
   }
}

I'm fairly certain I'll get this working, but I'm wondering if I'm just missing some functionality that the carousel has.  Seems like this would be a common use for it.
Milan
Telerik team
 answered on 20 Oct 2010
1 answer
686 views
Programmatically, if I put text with new line characters in it into a cell, it automatically increases the height and displays the text correctly. The question is, when I'm using the control, how do I type the newline characters in from the keyboard. Enter takes you to the next cell.
I've tried Alt-Enter (like Excel), Ctrl-Enter and Shift-Enter but I can't seem to insert newlines into the text.

Do I need to set a property to enable this sort of behavior?
Vanya Pavlova
Telerik team
 answered on 20 Oct 2010
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
Security
VirtualKeyboard
HighlightTextBlock
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?