Telerik blogs

Latest

  • Web ASP.NET MVC ASP.NET AJAX

    ASP.NET Ajax Controls in ASP.NET MVC

    The Q3 2008 release is now out and I am glad to inform you that RadScriptManager provides support for ASP.NET MVC view and master pages. What this means is that RadControls for ASP.NET Ajax can be used in ASP.NET MVC. We have tested with the ASP.NET MVC Beta 1 release. .csharpcode { overflow:auto; } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: Consolas, "Courier New", Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } Using RadControls for ASP.NET Ajax in ASP.NET MVC View Pages 1. Add an instance of RadScriptManager to your view page (or master page). Make sure the required HTTP handlers are properly registered (can be done from the smart tag in design time). 2. Add a control to your view page or master page. The following...
    November 06, 2008
  • Web

    Grid client-side data-binding performance with 1 mil. records

    Just before our Q3 release I've made quick test to see how the grid will perform with 1 mil. records table and here is the result: In this example the grid is bound with our new client-side declarative approach to a static page method: ... <DataBinding Location="~/Default.aspx" SelectMethod="GetData" SortParameterType="Linq"  FilterParameterType="Linq" />   ... ... [System.Web.Services.WebMethod]    public static Telerik.Web.UI.GridBindingData GetData(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)    { ...
    November 05, 2008
  • Web ASP.NET AJAX

    Using Regular Expression TextBox

    I've already blogged about the new RadInputManager control in the Beta of Q3 2008 for RadControls ASP.NET AJAX. One of the other very useful features that you can now take advantage of in the RadInputManager is its RegExpTextBox setting. Regular expressions are a good way to validate text fields such as names, addresses, phone numbers, and other user information. You can use it to constrain input, apply formatting rules, and check lengths. If you capture input by using TextBox controls, you can use the RegExpTextBoxSetting settings to validate that input - for example to restrict the range of valid characters, to strip...
    October 23, 2008
  • Web ASP.NET AJAX

    A quick, but not so dirty Image Editor using the public RadEditor ImageEditing API

    The ImageEditor dialog in RadEditor has been around for about half a year, providing much wanted common image editing capabilities to the editor's end users.      This dialog in fact is the front-end of a basic image editing engine that has been built into the Telerik.Web.UI.dll. Some time ago our colleague Todd Anglin suggested that we make the API public so it can be used independent of the editor. Sounded like a good idea - and the coming Q3 2008 will allow you to take advantage of it :)  And since the functionality is already available in the already released RadControls Futures (which acts...
    October 23, 2008
  • Web ASP.NET AJAX

    AJAX >> Using AJAX to load a usercontrol that has JavaScript declared in it

    Normal 0 false false false MicrosoftInternetExplorer4   /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} One of the things one needs to take care of when converting an existing application to use MS AJAX is inline script blocks inside pages or user controls. Problem with these is that if the control is sent to the client as a result of a partial page update (e.g. AJAX call) the inline script block simply won’t execute at all. The...
    October 20, 2008