var dock = $find("<%= RadDock1.ClientID %>");
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SimpleView.ascx.cs" Inherits="AccessToWeb.Web.SimpleView" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><telerik:RadScriptManager ID="RadScriptManager" runat="server"></telerik:RadScriptManager><!-- content start --><telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><div style="padding-left:20px;"> <telerik:RadGrid ID="RadGrid1" AllowPaging="True" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="None" EnableViewState="true"> <MasterTableView EnableViewState="true" /> <PagerStyle Mode="NumericPages" /> </telerik:RadGrid></div>namespace AccessToWeb.Web{ public partial class SimpleView : System.Web.UI.UserControl { private string _con, _query; protected void Page_Load(object sender, EventArgs e) { _con = Sitecore.Context.Item["Connectionstring"]; _query = Sitecore.Context.Item["Select statement"]; if (string.IsNullOrEmpty(_con) || string.IsNullOrEmpty(_query)) { this.Visible = false; return; } } public DataTable GetDataTable(string query) { SqlConnection conn = new SqlConnection(_con); SqlDataAdapter adapter = new SqlDataAdapter(); adapter.SelectCommand = new SqlCommand(query, conn); DataTable myDataTable = new DataTable(); conn.Open(); try { adapter.Fill(myDataTable); } finally { conn.Close(); } return myDataTable; } protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { RadGrid1.DataSource = GetDataTable(_query); } }}
function ShowWindow(win) {
if (!win.isVisible()) {
win.show();
win.restore();
//if the window was maximized before client minimizes it, we need to restore
//its maximized state
if (win._Maximized) {
win.maximize();
win._Maximized =
null;
}
}
//ensure that the currently active RadWindow will have the highest z-Index.
var popupElem = win.get_popupElement();
var oldZindex = parseInt(popupElem.style.zIndex);
var styleZIndex = win.get_stylezindex();
var newZIndex = (styleZIndex) ? styleZIndex : Telerik.Web.UI.RadWindowUtils.get_newZindex(oldZindex);
popupElem.style.zIndex =
"" + newZIndex;
win.setActive(
true);
}
alert( $get("<%= telerikAjaxCtrlID.ClientID %>"));
give you "object"
and
alert( $find("<%= telerikAjaxCtrlID.ClientID %>"));
give you "object object"
and that you can apply JQuery operations against the objects the statements return. And, I have read some Telerik documentation that refers me to http://api.jquery.com to get a list of what JQuery methods and properties are available because Telerik uses the original JQuery library that has been modified in a minor way with some appended code while preserving the original.
But, the api.jquery.com documentation describes functions such as $.get and $.find (NOT $get and $find), and none of the JQuery methods and properties that can be applied to $.get and $.find seem to work against what is returned by $find and $get. For example, the JQuery $.get function is used to retrieve javascript from the server - not to locate any controls on a page. I can't see how anyone could expect methods and properties that come from $.get to be able to work with $get which you seem to use to locate controls.
Where can I find documentation that describes the jquery methods and properties availabe from the objects returned by $find and $get. I can't use intellisense because I'm working on a corporate project, where the team leader won't allow the insertion of JQuery intellesense libraries into the webpages. Besides, I'm NOT looking for intellisense. I need a printed list of methods/properties that I can use which I can reference and have a global view of.
="rgcItemName" ' inside the grid's columns. The background color on the header doesn't change when you sort. How can manipulate this css class (HeaderStyle-CssClass="rgcItemName" ) in order to activate the background color when you click a header in order for it to sort?<telerik:GridTemplateColumn HeaderText="Name" HeaderStyle-HorizontalAlign="Center" HeaderStyle-CssClass="rgcItemName" ItemStyle-CssClass="rgcItemName" HeaderTooltip="Full spelled out name of the primitive. May not exceed 200 characters." SortExpression="name"> <ItemTemplate> <%#Container.DataItem("name").ToString%> </ItemTemplate> </telerik:GridTemplateColumn>="rgcItemName" .rgcItemName { width:13%; }