function OnGridContextItemClicked(oGridMenu, args) { var menuItemText = args.get_item().get_text(); if (menuItemText == "UnZip") {// 'UnZip' command var oExplorer = $find("<%= rfeStorage.ClientID %>"); var oAjaxPanel = $find("<%= RadAjaxPanel1.ClientID %>"); var selectedItem = oExplorer.get_selectedItem(); if (selectedItem.get_extension() == "zip") { //var itemExt = ; // get the extension of the current item var itemPath = selectedItem.get_path(); // get the path of the current item oAjaxPanel.ajaxRequest(itemPath); // Call the RadAjaxPanel1_AjaxRequest function on the server ; } else { alert("Please, select a ZIP file"); } } } //]]> </script> RadMenuItem item = new RadMenuItem("UnZip"); item.PostBack = false; item.Value = "CustomValue"; rfeStorage.GridContextMenu.Items.Add(item); rfeStorage.GridContextMenu.OnClientItemClicked = "OnGridContextItemClicked";} protected void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e) { string path = e.Argument; LblAjaxPanel.Text = path; }If
TypeOf e.Item Is GridDataItem Then
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
If item("mattach").Text = MailHasAttach Then
Dim img As New System.Web.UI.WebControls.Image
img.ID =
"attachpic"
img.ImageUrl = Session(
"virtualdir") & Session("imagepath") & "attach.gif"
item(
"mattach").Controls.Add(img)
'End If
Else
Dim img As New System.Web.UI.WebControls.Image
img.ID =
"attachpic"
img.ImageUrl = Session(
"virtualdir") & Session("imagepath") & "blank.gif"
item(
"mattach").Controls.Add(img)
End If
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="help" IsClientID="true" Animation="Slide"> <asp:Image ID="Image2" runat="server" /> </telerik:RadToolTip>protected void RadComboBox6_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) {
case 1: Image2.ImageUrl = "/App_Themes/img/Mexico-Credencial-del-elector-reverso.jpg";
break;
break; case 2: Image2.ImageUrl = "/App_Themes/img/AGUILA-PJF.JPG"; break; } }<thead> <tr> <th scope="col"> </th> </tr> </thead><
script type="text/javascript">
function OpenCreateVirtualFarmWindow(button, args) {
var oManager = GetRadWindowManager();
var oWnd = oManager.getWindowByName("CaasRADWindow");
oWnd.SetSize(400, 400);
oWnd.SetUrl("/CaasCustomerPortal/CreateFarm.aspx");
oWnd.Show();
return false;
}
</
script>
radTextBox.RenderControl(writer);Script control 'radTextBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
I don't wan't to create a new userControl with my two controls and the RadGrid. Could you please tell me how I can add child controls to a control derived from RadGrid?
