• .NET Mobile

    Don't Use BODY ONLOAD in ASP.NET AJAX Websites

    In the past developers used <body onload="..."> to execute some script as soon as the page is loaded. Nowadays this is rather old-fashioned, no matter how you look at it. What's more, it doesn't work as expected in ASP.NET AJAX websites. Consider the following example:   <body onload="MyFunction()">    <script type="text/javascript">       function MyFunction()     {        var myAjaxControl = $find("myAjaxControlClientID");        myAjaxControl.doSomething();     }    </script>    </body>    The client-side page load event is fired by the browser as soon as all HTML and scripts have been loaded. However, this happens before the controls' client-side instances have been created. As a result, myAjaxControl will be null and the doSomething() method will trigger a Javascript error. So, a lot better approach...
    December 13, 2008
  • .NET Mobile

    New online resources for the past four weeks (11/01/2008 - 12/01/2008)

    Below is a summary of the new online resources available for our ASP.NET AJAX/Winforms/WPF/Silverlight controls: RADCONTROLS FOR ASP.NET AJAX RadScheduler Help topics Appearance and Styling -> Horizontal Scrolling:http://www.telerik.com/help/aspnet-ajax/scheduler-horizontal-scrolling.html Appearance and Styling > Inline Form Resizing:http://www.telerik.com/help/aspnet-ajax/scheduler-inline-form-resizing.html Knowledge base articles Limit the number of concurrent appointments just for a single resource:http://www.telerik.com/support/kb/aspnet-ajax/scheduler/limit-the-number-of-concurrent-appointments-just-for-a-single-resource.aspx RadTreeViewHelp topics How To > Client-Side Programming > How-to distinguish whether node.get_parent() returns the parent node or the parent treeview:http://www.telerik.com/help/aspnet-ajax/treeview-get-parent.html How To > Client-Side Programming > Implement findNodesByAttribute method:http://www.telerik.com/help/aspnet-ajax/treeview-find-nodes-by-attribute.html How To > Client-Side Programming > Set the tooltip of the node with javascript:http://www.telerik.com/help/aspnet-ajax/treeview-set-node-tooltip-clientside.html Usability > Validation:http://www.telerik.com/help/aspnet-ajax/treeview-validation.html How To > CheckBoxes > Validate treeview by checked nodes:http://www.telerik.com/help/aspnet-ajax/validate-treeview-by-checked-nodes.html Code library entries Undo Drag & Drop operations:http://www.telerik.com/community/code-library/aspnet-ajax/treeview/undo-drag-drop-operations.aspx FindNodebyText() case...
    December 11, 2008
  • .NET Mobile

    Taming Ajaxified asp:HiddenField Controls in Internet Explorer

    If you are using asp:HiddenField controls (rendered as <input type="hidden" />) in your website and update their values with AJAX requests, you may observe some unexpected changes in the page layout in Internet Explorer (IE). It will seem that an empty line is inserted at each location where a HiddenField control resides. The behavior is observed only in IE and looks like a problem caused by the browser or the MS AJAX client-side framework. A quite easy workaround for this glitch is to wrap the HiddenField in a container with no height and reduced font size. Here is an...
    December 09, 2008
  • .NET Mobile

    RadTips, Episode 10: Add an 'ExportToPdf' Button to the RadEditor for ASP.NET AJAX

    Welcome back to another episode of RadTips, a series of screencasts offering tips and tricks for using Telerik's RadControls for ASP.NET AJAX. If you've missed previous episodes, be sure to check them out. Each is only a few minutes long and covers a specific feature of the RadControls. Here is a list of the last few episodes... Getting Started with the RadScheduler for ASP.NET AJAX Using the LinqDataSource in your RadGrid for ASP.NET AJAX  Customizing Appointments with Resources in the RadScheduler for ASP.NET AJAX  Customizing Templates in the RadScheduler for ASP.NET AJAX  Spell-Checking with the RadSpell for ASP.NET AJAX This Tip In this episode...
    December 03, 2008
  • .NET Mobile

    Tip of the day - Modal Dialogs

    When we have a running application and we want to show a modal dialog window what we generally do is more or less the following: var window = new MyDialogWindow(); window.ShowDialog();   Doing that works great - the dialog window shows and is modal. It has just one tiny defect - if you switch from the running application to another one (i. e. using Alt + Tab) and then come back to the running app the modal dialog window is not showing and the app is inactive. The solution - just assign the parent window to the Owner property of your modal dialog window :  var window = new MyDialogWindow(); window.Owner = this;  window.ShowDialog(); ...
    December 02, 2008