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