Telerik blogs
  • Web

    An HTML drawing master :-)

    I just came across something amazing... and this is not fake, this is real - you can check the actual...
  • Web

    Never access the controls collection in Page_Init or Page_PreInit with declarative data-binding in ASP.NET 2.0

    If you have a GridView, DataGrid, DetailsView, FormView, DataList or Repeater bound using DataSourceID you should never touch the controls collection in Page_Init or Page_PreInit. If you do this your declarative data-binding will be lost on any outside of the control post-back. How to check this?Example:aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title>Untitled Page</title></head><body>    <form id="form1" runat="server">        <asp:Button ID="Button1" Text="Button1" runat="server" />        <asp:GridView ID="GridView1" AllowPaging="true" DataSourceID="AccessDataSource1"            runat="server">        </asp:GridView>        <asp:DetailsView ID="DetailsView1" DataSourceID="AccessDataSource1" AllowPaging="true"            runat="server">        </asp:DetailsView>        <asp:FormView ID="FormView1" DataSourceID="AccessDataSource1" AllowPaging="true"            runat="server">            <ItemTemplate>                ProductID :                <%# Eval("ProductID") %>            </ItemTemplate>        </asp:FormView>        <asp:DataList ID="DataList1" DataSourceID="AccessDataSource1" runat="server">            <ItemTemplate>               ...
  • Web

    All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer workaround

    Did you know that all style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer? Well this applies to IE7 and LINK elements too and if you have such page for example you are lost: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title> <link type="text/css" rel="stylesheet" href="StyleSheet.css" /> <link type="text/css" rel="stylesheet" href="StyleSheet.css" /> <link type="text/css" rel="stylesheet" href="StyleSheet.css" /> <link type="text/css" rel="stylesheet" href="StyleSheet.css" /> <link type="text/css" rel="stylesheet" href="StyleSheet.css" /> <link type="text/css" rel="stylesheet" href="StyleSheet.css" /> <link type="text/css"...
  • Web

    The new Silverlight media player

    I just checked our brand new still unpublished Silverlight media player control and I have to say that I'm really amazed!!! Just check this:Isn't it cool? :-)Common guys post some more info/demos on this :-)...
  • Web

    -moz-user-select: -moz-none;

    Did you ever wonder how to get rid of these evil pseudo cells selection / borders in your html tables in FireFox?The solution is:     <table border="1" style="-moz-user-select: none;">        <tr>           <td>Cell</td>           <td>Cell</td>        </tr>      ...however... if you have an INPUT elements inside the cells you will definitely loose the selection inside the INPUT. You can try this example:     <table border="1" style="-moz-user-select: none;">        <tr>           <td<input type="text" /></td>           <td>Cell</td>        </tr>      ...So the question is: How to remove the cell selection borders and keep the selection in INPUT elements? ... and the answer is ...: -moz-user-select:...