Telerik blogs

Latest

  • Web

    How To: Telerik RadGrid client-side caching with client-side binding to web services using LINQ to SQL

    My new example illustrates how to cache the grid data client-side based on the current grid state. To do this we need to build a state key using current page index, page size, sort expressions and filter expressions: function getCacheKey(tableView) {       return String.format("{0}{1}{2}{3}",            tableView.get_currentPageIndex(), tableView.get_pageSize(),                tableView.get_sortExpressions().toString(), tableView.get_filterExpressions().toDynamicLinq());    }    Every time when we get new data we can store the result in our client-side cache: function updateGrid(result) {        var stateKey = getCacheKey(tableView);        if (!cache[stateKey]) {            cache[stateKey] = result;        }          tableView.set_dataSource(result);        tableView.dataBind();    }   and when the next grid command occur we can call explicitly updateGrid() method if we have already saved result for the current grid...
    September 19, 2008
  • Web

    Sitefinity ad

    Hello and thanks to everybody who gave their insightful comments in the first blog post by the Marketing Team.   We have decided that it will be a good idea to blog more often, to engage in a conversation, and generally to shed some light on our work. We are aware that what we do is not directly related to programming but we hope that you may be interested in what else is happening at Telerik, besides lines of code being entered in VisualStudio :-)   This post will continue where we left off last time. We would once more ask for your opinion on an ad we recently...
    September 19, 2008
  • Web ASP.NET AJAX

    RadTips, Episode 6: Using the LinqDataSource in your RadGrid for ASP.NET AJAX

    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: 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 This Week In this episode, I'm going to show you how to use the LinqDataSource control to combine the power of .NET 3.5's Language Integrated Query (LINQ) with the...
    September 19, 2008
  • People

    Join me this Weekend at the New England Code Camp

    That's right, I'm headed to Boston tomorrow for the 10th New England Code Camp. This will be a weekend of first for me. Not only is it my first time in Boston, but also my first talk as a Telerik evangelist. I'm pretty excited! So if you're in the area, drop on by and say hello. It's going to be a blast! There are plenty or great talks scheduled and still a few seats open for those of you who haven't signed up yet. Don't forget to check out my Silverlight talk on Sunday. I'm going to cover all the basics...
    September 19, 2008
  • Web ASP.NET AJAX

    Showing "tooltips" for the Nested RadGridView in RadMultiColumnComboBox

    I promised that I will continue the "tooltips" series by demonstrating a "HOWTO" approach with our RadMultiColumnComboBox component.   So what is the big difference with RadComboBox? What is really different is that RadGridView uses temporary elements to render grid cells, that are recycled every time you change something inside the screen estate of the RadGridView (say like scrolling). This means that setting the TooltipText properties of the cells in design time or through the API won't work. The solution That leaves us with the second approach only: to use the ToolTipTextNeeded event to get the job done.  Here is a small example...
    September 18, 2008
  • Productivity

    Wrapping a .NET user control as an ActiveX

    Before even asking why one should do anything like this, let me clarify that this is a good technique to spice up a bit your VB6 application. Now I know this is not cutting edge but still it is important to a lot of people (as I found out already). So let’s start then... Create a new solution that includes a Windows Forms application (to test easily the functionality provided by the user control). Then add a library project that will wrap our user control. What is demonstrated by this example is a very simple example that includes a label, and a...
    September 17, 2008
  • Release

    RadGauge for Silverlight - coming up with Q3

    There are lots of exciting things coming up with the official release of “RadControls for Silverlight”. One of them is the newly included RadGauge control in the suite. As it has already become a tradition – RadGauge for Silverlight will share the same code base as its WPF analogue. This will allow the users to use the same API with both the controls. With Telerik RadGauge for Silverlight you will be able to display and monitor live data using the rich set of  features the control provides. Furthermore, you will be able to completely customize the look of the control...
    September 16, 2008
  • Productivity

    Visual Studio Tooltips unplugged: How to use multiple monitors with Visual Studio efficiently

    It is no urban legend that having more monitors results in greater productivity, and most of all tremendous increase in developer’s comfort. Even the Myth Busters (http://en.wikipedia.org/wiki/MythBusters) dudes know that. So imagine that your group’s budget allows installing a brand new (say 22 inches) TFT display as your second, or even better you already have the setup. What are your options with VS 2005/2008 for efficient management of the screen estate to bust productivity? Better code access You can vertically split the Visual Studio screen estate in two, and position the divider down the center of the two monitors. This can be done...
    September 16, 2008
  • Web ASP.NET AJAX

    JavaScript >> Get Any CSS Property Value of an Object using $style

        This is the first of a series of blog posts providing Javascript and CSS tips and tricks aimed to help you in your day-to-day work with web user interfaces. Anyone who needs to polish a user interface and make it truly cross-browser has hit the wall of browser differences, bugs and inconsistencies. There are plenty of resources on the Internet discussing workarounds to some of those problems - but our team's front-end developer Martin and I believe that in "our" bag of tricks there are some interesting ones as well. We will try to roll out at least 20...
    September 16, 2008
  • Web ASP.NET AJAX

    How To: Telerik RadGrid for ASP.NET AJAX client-side data-binding to WCF

    In continue to my previous posts related to RadGrid for ASP.NET AJAX client-side data-binding, I've created new example how to bind the grid to a WCF service: web.config service registration: <system.serviceModel>     <behaviors>         <serviceBehaviors>             <behavior name="ServiceBehavior">                  <serviceMetadata httpGetEnabled="true"/>                  <serviceDebug includeExceptionDetailInFaults="false"/>...
    September 16, 2008