| <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" Transparency="20" BackColor="#E0E0E0"> |
| <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' |
| alt="Loading..." style="margin: 383px 500px 383px 500px" /> |
| </telerik:RadAjaxLoadingPanel> |
| GridColumn c = theExplorer.Grid.Columns.FindByUniqueNameSafe("Size"); |
| if (c != null) |
| { |
| c.ItemStyle.HorizontalAlign = HorizontalAlign.Right; |
| c.HeaderStyle.HorizontalAlign = HorizontalAlign.Right; |
| } |
| <body id="bodymaster" runat="server" style="background-image:url(../../img/titlebg.jpg); background-attachment:fixed"> |
| <form id="frm01" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"> |
| <Scripts> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
| <telerik:RadAjaxPanel ID="radAjaxPanel01" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="onRequestStart"> |
| <div style="width: 100%; height:20px;top:0px; left:auto;" class="div03"> |
| <table class="tbl12"> |
| <tr> |
| <td width="50%" style="text-align:left"> |
| <asp:Label ID="lblMessage" runat="server" CssClass="txt08r" Visible="false" EnableViewState="false" /> |
| </td> |
| <td width="50%" style="text-align:right"> |
| <asp:Label ID="lblApp" runat="server" style="color:#FFFFFF" /> |
| <asp:Image ID="imgApp" runat="server" ImageUrl="~/img/spacer.gif"/>  <asp:Label ID="lblAppTitle" runat="server" CssClass="txt09s" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| <div id="pnlContentMain01_01" name="pnlContentMain01_01" style="PADDING-RIGHT: 0px;PADDING-LEFT: 0px;PADDING-BOTTOM: 0px;OVERFLOW: auto;WIDTH: 100%;PADDING-TOP: 0px;moz-box-sizing: border-box;box-sizing: border-box"> |
| <asp:contentplaceholder id="mpContentMain01_01" runat="server" /> |
| </div> |
| </telerik:RadAjaxPanel> |
| </form> |
| </body> |
| </html> |
Hi
I have a RadGrid, I have now been tasked with putting a Right Click Context menu in place. What I need to figure out is:
1) How can I get a value from the either the DataItem or the DataKeyValues from client side for the row that has fired off the
context menu?
Any thoughts / pointers most appreciated
| http://www.telerik.com/help/aspnet-ajax/grdsavingsettingsonperuserbasis.html |
public class CustomRadNumericTextBoxControl : RadNumericTextBox, IPostBackEventHandler, INamingContainer
{
private string OnKeyPressFunctionName = "OnKeyPress";
protected override void OnPreRender(EventArgs e)
{
RegisterJavascripts();
this.Type = NumericType.Currency;
this.Culture = CultureInfo.CurrentCulture;
this.DataType = System.Type.GetType("System.Decimal");
this.NumberFormat.AllowRounding = true;
this.ClientEvents.OnKeyPress = OnKeyPressFunctionName;
base.OnPreRender(e);
EnsureChildControls();
}
public void RegisterJavascripts()
{
Page.ClientScript.RegisterClientScriptInclude(
Guid.NewGuid().ToString(),
Page.ClientScript.GetWebResourceUrl(GetType(),
"<<Embedded javascript resource file name>>"));
}
}
}
