protected
void
RadComboBox1_OnSelectedIndexChanged(
object
sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
lblSubtotal.Text =
"Mytest"
;
}
function DownloadFileWindow(oGridMenu, args) {
var domElem = args.get_targetElement();
var text = $telerik.$(domElem).text();
//var isFolder = text.indexOf(".") == -1;
var gridContextMenuItems = oGridMenu.get_allItems();
for (var i = 0; i < gridContextMenuItems.length; i++) {
var menuItem = gridContextMenuItems[i];
if (menuItem.get_value() == "Download_File") {
OnClientFileOpen(sender, args)
__doPostBack(
"download");
}
}
}
radFileExplorer.GridContextMenu.OnClientItemClicked = "DownloadFileWindow";
string userSelection = Request.Params.Get("__EVENTTARGET");
if (userSelection == "download")
{
DownLoadFile();
}
private
void DownLoadFile()
{
string TargetFile = here i need physical path of the file
//radFileExplorer.TreeView.SelectedNode.GetFullPath("/");//radFileExplorer.Configuration.ViewPaths;
System.IO.
FileInfo file = new System.IO.FileInfo(TargetFile);
//-- if the file exists on the server
//set appropriate headers
if (file.Exists)
{
FileStream liveStream = new FileStream(TargetFile, FileMode.Open, FileAccess.Read);
byte[] buffer = new byte[Convert.ToInt32(liveStream.Length) + 1];
liveStream.Read(buffer, 0,
Convert.ToInt32(liveStream.Length));
liveStream.Close();
Response.ClearHeaders();
Response.ClearContent();
Response.Clear();
Response.ContentType =
"application/octet-stream";
Response.AddHeader(
"Content-Length", buffer.Length.ToString());
Response.AddHeader(
"Content-Disposition", "attachment; filename=" + file.Name);
Response.BinaryWrite(buffer);
}
}
Unfortunately, there is no option to set client settings for telerik treelist to make the headers constant while scrolling.There is paging option but i donot need paging. all the nodes should expand collapase on demand.In the clientsettings option i cannot see this
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="true" />
<ClientSettings>