Telerik blogs

Latest

  • People

    Don't miss today's webinar on the new RadDock for WinForms

    The new and improved RadDock for WinForms is coming and this is your opportunity to get a first look:   Join Developer Evangelist John Kellar as he shows you how quickly you can get up and running with the new version of RadDock. John will cover the new features so you know what to expect and how you can use RadDock in your applications once it is officially released. Don't miss it!       UPDATE: You can see watch an early preview of the new RadDock here: Introducing the new RadDock for WinForms. The beta is expected in the first week of June....
  • Web

    Mouse Right Click, Double Click and Mouse Wheel in RadControls for Silverlight

    Telerik RadControls for Silverlight provide three routed events in addition to the Silverlight mouse events: MouseWheel, MouseDown and MouseUp. The latter two enable the developers to check for DoubleClick and RightClick in their applications. I will briefly show how to use this functionality: 1) MouseWheel: using Telerik.Windows.Input; ... Mouse.AddMouseWheelHandler(element, OnMouseWheel); ... private void OnMouseWheel(object sender, MouseWheelEventArgs args) { var delta = args.Delta; } .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; }   In most cases you just need to make a ScrollViewer to respond on the mouse wheel rotations. We implemented this in the ScrollViewerExtensions.EnableMouseWheel attached behavior, so you don't have to: xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" <ScrollViewer telerik:ScrollViewerExtensions.EnableMouseWheel="true"> ... </ScrollViewer> .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; } NOTE: To successfully handle the mouse wheel events, the Silverlight plugin should be in windowless mode.   2) RightClick using Telerik.Windows.Input; ... Mouse.AddMouseUpHandler(element, OnMouseUp); ... private void OnMouseUp(object sender,...
    May 21, 2009
  • Productivity Reporting

    Do not filter on null

    This post might seem like a no brainer, but I've received quite a few inquiries on this matter recently, so decided to post here.  Let's say you have a parameter of Type: DateTime with AllowNull: true and we filter on a field based on the input parameter value i.e.: Expression        Operator      Value ===========   ========  ================================= =Fields.MyField        =            =Parameters.MyParam When we tick the 'null' checkbox, it basically filters the report to find the Fields with Nulls. However one might expect that it just won't filter at all with this setup. And indeed if you do not wish to filter, you should not have to. Then how do you handle "empty/blank" values in such cases and...
  • Web ASP.NET AJAX

    Telerik Web Mail Demo on Azure

    I recently showed you how to get started working with the RadControls for ASP.NET AJAX on Azure. It’s really a lot easier than you might think. If you missed the first two posts (and the follow-up videos), here they are for quick reference: RadControls for ASP.NET AJAX on Azure Deploying RadControls to Azure Azure Videos on Telerik TV Today, I updated the live running Telerik demo on Azure to feature the complete Telerik Web Mail demo! That means you can now see almost all of the RadControls for ASP.NET AJAX running live on the Azure Cloud. Included in the demo are RadGrid, RadEditor, RadSplitter, RadMenu, RadAjax,...
    May 20, 2009
  • Release

    Meet the Visual Style Builder CTP

    It's alive. Before anything else, it's a preview, so it may burn you. You've been warned! Colorization Surprise, surprise! I hope you didn't see that one coming. I've had a hard time keeping the secret... Every color that you may desire. By moving a humble slider that rotates the color wheel. Simple as that. And if you don't know what you're looking for, there's a "surprise me!" "randomize" button, just to make your life easier.
  • Web

    Saving some lines of code when using RadWindow

    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...
  • Web

    Integrating RadChart for Silverlight in existing ASP.NET applications

    There’s an emerging trend to integrate cool new silverlight controls into existing production asp.net solutions. And why wouldn’t it be there? There are many  asp.net applications in production out there that have been working quite well and don’t need to be replaced by a completely new technology. Wouldn’t it be nice, however, to spice them up a little with some rich silverlight visualization tools? This is exactly what a lot of our customers have been asking for lately. Well, here you can see some resources we published that will help anyone who wants to plug in RadChart for Silverlight in...
  • Web

    Applying Themes on RadControls for Silverlight

    The theme engine of RadControls for Silverlight is quite powerful and provides the developers with the ability to apply application-wide theme on all RadControls, as well as specific theme on a single control. If the theme does not contain the needed styles, the controls fallback to their default styles, so you could create an application theme for just a couple of controls and the rest will display with their default styles. We also provide styles for the standard controls, such as Button, CheckBox, RadioButton, etc. which enables you to create application with consistent look and feel. Each theme is distributed as...
    May 18, 2009
  • Web

    GridView in ComboBox with RadControls for Silverlight

    Recently we received several requests for an example, demonstrating how to put a virtualized GridView in a ComboBox popup. The best way to do this in my opinion is to replace the ItemsPresenter of the ComboBox with a GridView. There is some plumbing that has to be done, but I managed to separate it in two attached behaviors. The original idea is described in my blog post for TreeView in ComboBox which I recently updated with the latest control template of RadComboBox for Silverlight. The principle is exactly the same with RadGridView and it should work with very minor adjustments with...
    May 18, 2009
  • Release

    New dedicated training on Telerik OpenAccess ORM

    As most of you probably know, our valued partner Falafel Software recently introduced on-demand training and consulting services for Telerik tools. Whether you need a dedicated program to help your developers get up-to-speed with Telerik products, or simply require technical guidance on a project, Falafel Software is there to help. The latest set of comprehensive training sessions that Falafel announced will be dedicated on OpenAccess - Telerik’s enterprise-grade ORM. You will have the chance to explore OpenAccess from the ground up and acquire the necessary knowledge and skills for building your own data access pluming for desktop and web applications using only a...