Telerik blogs
  • Web

    How To: Print your DataGrid (or any UIElement) on multiple pages with Silverlight 4

    In Silverlight 4 you can use PrintDocument to print easily any UIElement: …    var doc = new PrintDocument();    doc.DocumentName = YourDocumentName;    doc.PrintPage += (s, e) =>    {         e.PageVisual = YouUIElement;    };    doc.Print(); … and I’ve made an extension method that can be used to print any UIElement on multiple pages: public static void Print(this UIElement source, string documentName) { ...
    May 27, 2021 1 min read
  • Productivity

    Working with OpenAccess in Visual Studio 2010 Beta 2

    If you’re like me, the end of the year represents a time when most other projects are starting to wind down and you finally have a chance to get back to testing some of those “fun” Microsoft betas. Visual Studio 2010 Beta 2 is probably at the top of the stack. Microsoft’s next major update to the flagship IDE is getting very close to RTM, so now is a great time to start checking-out the tool.   What you should be pleased to know is that almost all of Telerik’s developer tools already offer a lot of support for VS 2010- even...
    May 27, 2021 3 min read
  • Web

    Cannot discover WCF services in your Silverlight application?

    If you try to add service reference in your Silverlight application and you simply cannot discover any services in the solution using the Add Service Reference tool here is the way how to solve it. Note that the issue occurs both in Silverlight 2 and Silverlight 3 Beta.     1. Uninstall your Silverlight tools for Visual Studio      2. Go to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE or the place you have installed your Visual Studio environment.     3. Delete the file Microsoft.VisualStudio.ServicesProxy.dll      4. Install again Silverlight tools for Visual Studio and note that your file will be created again. There seems to be something wrong with the installer of Silverlight tools, which...
    May 27, 2021 1 min read
  • Productivity

    Visual Studio: “Error Creating Control”

    I’ve run into this error before and last night it reared its ugly head again. You’ll find it from time to time when switching to Design View in Visual Studio to work with custom server controls. The bug is in Service Pack 1 of VS and can be quite annoying.   It has been submitted to Microsoft and they claim to be working on a solution which will “fix it in subsequent releases” of Visual Studio. Unfortunately, developers (like me) don’t want their productivity to suffer while we all wait for a fix from Microsoft. So here are a couple of steps...
    May 27, 2021 1 min read
  • Productivity

    SQL Server 2008 Error: 'Saving changes is not permitted.'

    Tonight I ran into the following error message when using a freshly installed version of SQL Server 2008 in a new project. Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created. The error appeared after I created a new table, set up it's primary key column, clicked save, and then tried to modify and re-save the table again. The reason this error dialogue is being...
    May 27, 2021 1 min read