Telerik blogs

Latest

  • Web ASP.NET MVC

    MVC3 and unobtrusive validation support with Grid for ASP.NET MVC

    As you may know, we just released our ASP.NET MVC extensions latest service pack. Beside the regular dose of fixes, this service release incorporates even better support of the official version of MVC3. One of those new MVC3 feature, which I want to bring to your attention, is the unobtrusive validation.   We all know how client validation from the previous version of MVC has worked; outputting a mass of JSON serialized validation rules. Although, this approach is still available, the newer one is far more pleasing. Enabled by default in the VS2010’s MVC3 project template, validation rules will be attached...
    January 20, 2011
  • Web ASP.NET AJAX

    WebForms to Razor view converter tool

    We just love inventing tools. It’s one of those things hardcoded in our genome. There’s a great joy in seeing your invention work for you and all you have to do is sit back and sip a beer debug the hell out of it. But I digress. During the conversion of our online examples to the Razor view engine we’ve came up with a simple tool to help us. We didn’t have great hopes for it, as completely automatic conversion is hardly possible. It’s purpose was to take care of the bulk of the conversion, leaving the more fine points to the human...
    January 19, 2011
  • Web ASP.NET MVC

    Full Razor support and examples coming in SP1 of Telerik Extensions for MVC (2010 Q3)

    We’ve “signed off” the first service release of the Telerik Extensions (2010 Q3) just a few minutes ago and it’s on its way to you. Apart from the usual fixes this release adds full support for the new Razor view engine. The official MVC 3 release has been out only for a few days, but the interest in this new view engine is deservedly high. This view engine required some tinkering under the hood of the Extensions, but it has all been taken care of. Any issues you might have had until now (nested content rendering out of place, syntax errors in template...
    January 18, 2011
  • Web

    TreeView BringIntoView

    Quite often TreeView is used in scenarios where a particular item should be displayed on the screen. You may want to display some item when the tree is initially shown on the screen or when a new item is added. These scenarios look simple but are a bit tricky because you have to wait until the TreeView loads and then make your desired actions. Waiting for Loaded Event TreeView provides the BringIntoView functionality in several forms: you can call BringIntoView from the tree itself and bring a child item; get some TreeViewItem by calling GetItemByPath and call BringIntoView upon this item container;...
    January 12, 2011
  • Web

    How to Create Ad Rotator with Telerik TransitionControl and CoverFlow control for Silverlight

    function onSilverlightError(sender, args) { var appSource = ""; if (sender != null && sender != 0) { appSource = sender.getHost().Source; } var errorType = args.ErrorType; var iErrorCode = args.ErrorCode; if (errorType == "ImageError" || errorType == "MediaError") { return; } var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ; errMsg += "Code: "+ iErrorCode + " \n"; errMsg += "Category: " + errorType + " \n"; errMsg += "Message: " + args.ErrorMessage + " \n"; if (errorType == "ParserError") { errMsg += "File: " + args.xamlFile + " \n"; errMsg += "Line: " + args.lineNumber + " \n"; errMsg += "Position: " + args.charPosition + " \n"; } else if (errorType == "RuntimeError") { if (args.lineNumber != 0) { errMsg += "Line: " + args.lineNumber + " \n"; errMsg += "Position: " + args.charPosition + " \n"; } errMsg += "MethodName: " + args.methodName + " \n"; } throw new Error(errMsg); } Today I'm going to show you a very simple way to turn any ContentControl or a ListBox control into an AdRotator control. "What is AdRotator control?", you would ask. A common definition for an AdRotator is a control that lets you to show some data (most commonly ads) and change it periodically. An AdRotator control should be a control that lets you do that out-of-the-box without writing any code. Furthermore, switching the ads with a nice animation will give our AdRotator more polished and glamorous look. To accomplish this, we are going to use RadTransitionControl (a ContentControl) and RadCoverFlow (a ListBox)...