Telerik blogs

Latest

  • Web ASP.NET MVC ASP.NET AJAX

    Using Telerik Extensions for ASP.NET MVC within an ASP.NET WebForms application

    If you really, really like the new and shiny extensions, you can use them in your WebForms application, too! Here are the needed steps: Add references to the following assemblies: System.Web.Abstractions System.Web.Routing System.Web.Mvc Telerik.Web.Mvc The first three are usually in the GAC. Copy the Content and Scripts folders from the extensions’ distribution into your project. The pages which will contain the MVC components will need to inherit System.Web.Mvc.ViewPage. Also, you should mock an MVC environment, like this: protected class ControllerMock : Controller { public ControllerMock(NameValueCollection queryString) { foreach (string param in queryString.Keys) ...
    May 27, 2021 1 min read
  • Web ASP.NET MVC

    Telerik Extensions for ASP.NET MVC now support ASP.NET MVC2 RC

    As many of you know yesterday ASP.NET MVC 2 RC was released. We did our best to make Telerik Extensions for ASP.NET MVC compatible with that release and I am glad to announce that you can now download the updated bits from here (open source) or here (licensed). Changes There are a few things that changed: We are now producing two dll files – one for ASP.NET MVC 1 and one for ASP.NET MVC 2. The files differ only in their version: For ASP.NET MVC 1 applications you should use Binaries\Mvc1\Telerik.Web.Mvc.dll. Its assembly version ends with 135 (which means MVC v1 .NET...
    May 27, 2021 1 min read
  • Web ASP.NET AJAX

    Integrated Description field in RadScheduler for ASP.NET AJAX

    .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } One very common issue that we’ve addressed in the Q3 release is the lack of a description field for the appointments. Until now you had to customize the advanced template in order to get one, but not any more. How to enable the integrated description field: Data Source - set DataDescriptionField to the corresponding column in your database: <telerik:RadScheduler runat="server" ID="RadScheduler1" DataSourceID="AppointmentsDataSource" DataKeyField="ID" DataSubjectField="Subject" DataDescriptionField="Description" DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"> ... </telerik:RadScheduler> Provider – set EnableDescriptionField to “true” and persist the Appointment.Description value in your provider. <telerik:RadScheduler runat="server" ID="RadScheduler1" ProviderName="XmlSchedulerProvider" EnableDescriptionField="true" > ... </telerik:RadScheduler> This is all you need for editing and storing the description, but what about showing it? A simple appointment template will do: <AppointmentTemplate> <div> <%#...
    May 27, 2021 1 min read
  • Web

    How To: Display RadGridView Row Details with RadWindow for Silverlight

    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...
    May 27, 2021 3 min read
  • Web

    How to add a scrollbar to Telerik RadMenu for Silverlight

    As we received a lot of questions on how to add a ScrollViewer to the RadMenu control for Silverlight, in this blog post I am going to explain how you can achieve this. Adding a ScrollViewer to RadMenu for Silverlight can be easily accomplished using Expression Blend. Step 1. Create a new Silverlight 3 Application. Step 2. Add references to Telerik.Windows.Controls.dll and Telerik.Windows.Controls.Navigation.dll in your project. Step 3. Drag RadMenu and RadMenuItem controls from the Toolbox and drop them on the design surface.   Step 4. Right-click on one of the RadMenuItems and select EditStyle or select it and from the menu by choosing Object -> Edit Style ->...
    May 27, 2021 2 min read