or
<telerik:radtreeview id="ScopeTreeView" runat="server" checkboxes="false" multipleselect="false" allownodeediting="false" registerwithscriptmanager="false" visible="true" />protected void RadGrid1_ItemCreated(object sender, Telerik.WebControls.GridItemEventArgs e) { if (e.Item is GridDataItem) { Button btn = (e.Item as GridDataItem)["TemplateColumn"].FindControl("Button1") as Button; ScriptManager1.RegisterPostBackControl(btn); } if (e.Item is GridCommandItem) { Button btncmd = (e.Item as GridCommandItem).FindControl("Button2") as Button; ScriptManager1.RegisterPostBackControl(btncmd); } }protected void ItemsGrid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem) { Guid candidaturaId = new Guid(ItemsGrid.MasterTableView.DataKeyValues[e.Item.ItemIndex]["ID"].ToString()); // create a new instance of ContactsManager with default provider CandidatureManager cm = new CandidatureManager(); // get the desired candidatura and set the values of the form ICandidatura candidatura = cm.GetCandidatura(candidaturaId); string ext = Path.GetExtension(candidatura.AllegatoFilename).ToLower(); CustomDownload cd = new CustomDownload { Filename = candidatura.AllegatoFilename, MimeType = (ext == ".pdf") ? MediaTypeNames.Application.Pdf : "application/unknown", Data = candidatura.Allegato.ToArray(), }; ScriptManager sm = (ScriptManager)Page.FindControl("TheScriptManager"); Response.ClearHeaders(); Response.ClearContent(); Response.AddHeader("Accept-Ranges", cd.Data.Length.ToString()); Response.AddHeader("Content-Disposition", "attachment;filename=" + cd.Filename); Response.ContentType = cd.MimeType; if (cd.Data.Length > 0) Response.BinaryWrite(cd.Data); Response.End(); } }Hi All,
Please go through the below link in Firefox 4.
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/headercontextmenu/defaultcs.aspx
When I Show/Hide the columns using Context Menu it is not auto - adjusting the width of the grid. It leaves an empty space
at the right hand side.Though it is working fine in IE(Internet Explorer) and lower versions of Firefox.
Can you please suggest how to get rid of this space so that it auto-adjusts itself.
Expecting for an early reply.
Thanks,
Amrita Mandal
if (content == "" || content == null || jQuery.trim(content) == "") { content = "<p> </p>"; } $("#telerik-editor").dialog("option", "title", title);$("#telerik-editor").dialog("open");var editor = $find("<%= radEditor.ClientID %>"); editor.set_html(content);$('input:visible').eq(0).trigger('focus');setTimeout(function(){ editor.setFocus(); if ($telerik.isFirefox){ setTimeout(function(){ editor.pasteHtml(""); editor.undo(1); }, 200); }; },200);