Telerik blogs

Latest

  • Web

    RadControls for Silverlight Demo with ADO.NET Data Services

    Yesterday I wrote about how to databind RadTreeView for Silverlight to ADO.NET Data Service and use Load on Demand. The simple application from yesterday was upgraded to a small back-end application for the Northwind database, that allows editing and deleting products. This time I decided to give it to one of our designers and our new Silverlight front end developer and they implemented this slick design: The application is available online: http://demos.telerik.com/silverlight/northwindbackend/Default.aspx The source code can be downloaded from here: NorthwindBackend.zip In addition to yesterday's application, NorthwindBackend has extended data source, that provides simple undo mechanism and ability to update and delete products...
    October 09, 2008
  • Web jQuery

    Telerik RadGrid client-side data-binding using jQuery

    Instead of traditional ASP.NET AJAX approach for "Exposing Web Services to Client Script" you can use jQuery and JSON2 JavaScript libraries to achieve the same very easily. Using this simple method you can call any page method in ASP.NET Page or WebService method: function executeMethod(location, methodName, methodArguments, onSuccess, onFail) {     $.ajax({         type: "POST",         url: location + "/" + methodName,         data: methodArguments,         contentType: "application/json; charset=utf-8",         dataType: "json",         success: onSuccess,         fail: onFail     }); }   Here is an example also how to use JSON2 JavaScript library to serialize any JavaScript object to string: function getRequestData(tableView) {     return JSON.stringify({...
    October 09, 2008
  • Web ASP.NET AJAX

    RadTips, Episode 8: Customizing the RadScheduler with Templates

    Welcome back to another episode of RadTips, a series of episodes offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to check them out. Each is only a few minutes long and covers a specific RadControl feature: 1 - Client-Side Data Binding in the RadGrid 2 - Client-Side Paging in the RadGrid 3 - Client-Side Sorting in the RadGrid 4 - Client-Side Filtering in the RadGrid 5 - Getting Started with the RadScheduler 6 - Using the LinqDataSource in your RadGrid ...
    October 09, 2008
  • Web

    Silverlight TreeView Load on Demand

    Today I created a really simple application that demonstrates "best practice" for using RadTreeView with load on demand and ADO.NET Data Service. The application uses the Northwind database, that can be downloaded here. The tricky part is that in order to create almost codeless application we need to modify the automatically generated code of the service reference. To do that you will need to show all files in the Silverlight application (click the Show All Files in the Solution Explorer title bar) and then open Reference.cs: In this file replace all occurrences of "System.Collections.ObjectModel.Collection" with "System.Collections.ObjectModel.ObservableCollection". This probably will be changed in...
    October 08, 2008
  • Web

    Context Menu for Silverlight. Integration with RadTreeView

    Here at Telerik we are cooking a lot of things with Silverlight. You will see some great new (and big!) controls with our Q3 release that is already knocking on the door. One small, but very popular thing, that is missing in Silverlight2 these days is the Context Menu support. As we got this working already internally, I thought that I'll share the good news with you :) This image above shows the integration between the new RadContextMenu and RadTreeView. As you can see you have full control over the context menu content, and you can also control the shortcut keys that will open the menu. So, any comments about that?  ...
    October 07, 2008