or
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test1.aspx.cs" Inherits="WebApplication4.test1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head id="Head1" runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script type="text/javascript"> function test() { var EmployeeInfo = { "Emp_Number": "12349999" } var arr = []; arr.push(EmployeeInfo); grid = $find("<%=rdEmployeeInfo.ClientID %>"); tableView = grid.get_masterTableView(); tableView.set_dataSource(arr); tableView.dataBind(); } </script> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:button ID="Button1" runat="server" OnClientClick="test(); return false;" /> <asp:button ID="Button2" runat="server" onclick="Button2_Click" /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <br /> <telerik:RadGrid ID="rdEmployeeInfo" runat="server" AutoGenerateColumns="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" EnableAJAX="true" Width="100%" GridLines="None" PageSize="1" EnableViewState="true"> <ItemStyle ForeColor="Orange" /> <MasterTableView Width="100%" AutoGenerateColumns="false"> <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" /> <Columns> <telerik:GridBoundColumn DataField="Emp_Number" HeaderText="Employee Number" ReadOnly="true"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </div> </form></body></html>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Web.Services;using Telerik.Web.UI;namespace WebApplication4{ public partial class test1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DataTable dt = new DataTable(); dt.Columns.Add("Emp_Number"); rdEmployeeInfo.DataSource = dt; rdEmployeeInfo.DataBind(); } } protected void Button2_Click(object sender, EventArgs e) { } }}<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Save" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' OnClientClick="return CheckWeight()" />function CheckWeight() { var currentGoalWeightTotal = $("[id$='CurrentGoalWeightTotal']").val(); var weightInput = $("[name$='AG_Weight']").val(); if (parseInt(weightInput) + parseInt(currentGoalWeightTotal) > 100) { alert("Please make sure that your goal weight total does not exceed 100."); return false; } }<span class="aspLabelWithoutFocus" id="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents">
<div style="display: none; position: absolute;" id="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents_RadTooltip1" class="tooltipStyle">
<input id="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents_RadTooltip1_ClientState" name="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents_RadTooltip1_ClientState" type="hidden" autocomplete="off">
</div>
<span class="aspLabelWithoutFocus" onmouseover="this.className='cssClassMouseOver'" onmouseout="this.className='aspLabelWithoutFocus'"></span>
</span>