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