• When allowing users to select a date value in your applications, one of the obvious issues is ensuring that they aren’t allowed to pick a value like December 24th, 563.  Thankfully, the developers for our Windows Phone team have incorporated some properties to help prevent this. 

    Step 1 – Min and Max Value Properties

    The easy way to make this happen is to simply set a MinValue and MaxValue.  In our scenario, we will say that we are scheduling appointments for some event in the future, therefore we can easily set out MinValue and MaxValue either via Xaml:

    <telerikInput:RadDatePicker x:Name="xRadDatePicker"
                                Grid.Row="1"
                                VerticalAlignment="Center"
                                MinValue="5-6-2011"
                                MaxValue="11-6-2011"/>

     

    Or since we can’t hard-code a...

  • Graphical user interfaces are rife with popups and messages springing from every direction in order to notify users of important information. The Windows Phone 7 experience is no different and RadWindow is here to provide this functionality. Currently the toolkit for windows phone development provides a Popup control out of the box, so why bother writing a window from scratch? The main reason is that the stock popup is not hardware accelerated, that is, animations on UI elements displayed on it are executed on the UI thread, it doesn’t matter if the animation is a simple double animation, if you...

  • RadDatePicker and RadTimePicker have a lot of basic common functionality. One of the components that provide some of this common functionality is RadPickerBox. It is a very basic control designed to provide an easy way for users to display some content, just like ContentControl:
    RadPickerBox first look

    Also when the content is clicked RadPickerBox displays a popup with more content that makes no sense to occupy the main real estate of the application:
    RadPickerBox opening
    In the context of RadDatePicker and RadTimePicker the popup part is used to produce a value which is then displayed in the content part when the popup is closed. RadPickerBox is not restricted to...
  • Yesterday I held a live webinar on Building a real-world application with RadControls for Silverlight 4. Thank you to all of those that attended, but if you did not have a chance to catch it, you can watch a recorded version here:

    Building a real-world application with RadControls for Silverlight 4

    I wasn't able to get too deep into the inner workings of the app because of time limitations, but over the upcoming weeks I will dig deeper in my blog posts, and potentially some videos.

    FYI, I just put up a new blog post where I provide a link to download the source...

  • In one of my previous blog posts I have explained how to display hierarchical data with Row Details. Now, if you are familiar with Row Details features, you know that you are not limited to showing the details inside RadGridView. You can show them anywhere by using the handy external DetailsPresenter. As a matter of fact, each GridViewRow has one of those DetailsPresenter’s inside its template. So you will be using the same class that we are using internally to show the details of each single row.

    The documentation states that in order to display Row Details outside RadGridView, you need to place...

  • The RadWindow control is part of the Telerik’s RadControls for ASP.NET AJAX suite and is intended to replace the standard browser’s popup (window.open()). Since the control is based on an IFRAME, it behaves just like one – basically, whatever can be done with an IFRAME, can be achieved with RadWindow as well. This fact is useful when you investigate a reason for some problem related to the RadWindow control. Just replace the RadWindow with a standard IFRAME or browser’s popup and see how your application will behave in this case. If the problem still exists, then it is not related to the...

  • If you are using some of the predefined modal dialogs part of RadWindow: Alert, Prompt and Confirm you may find this article quite handy.

    As you know the calls to these methods are asynchronous, thus you cannot stop the current UI thread in order to get the user feedback from the windows synchronously. This introduces some issues such as the need to declare class member variables whenever they may not be necessary. Due to that there have been a few requests on our support website to create a generic parameter inside the static calls of the dialogs with the purpose of carrying...