Hi
This is my requirement
I want to disable the DownloadFile option if i click on folder and once i select the folder if no records are there in grid that time also it should disable downloadFile option.
If click on file DownloadFile option shuld be enable
All these things happen rad gridview context menu shown and file or folder click.
Note:DownloadFile i added custom button.
i have done like this for if no records are there to display in gridview.But in case of if click on folder i want to disable download option and if i click on file download file option shuld be enable.
Please can u solve this prob.
Thanks
Bhavani.
This is my requirement
I want to disable the DownloadFile option if i click on folder and once i select the folder if no records are there in grid that time also it should disable downloadFile option.
If click on file DownloadFile option shuld be enable
All these things happen rad gridview context menu shown and file or folder click.
Note:DownloadFile i added custom button.
i have done like this for if no records are there to display in gridview.But in case of if click on folder i want to disable download option and if i click on file download file option shuld be enable.
function OnClientShown(oMenu, args) {
var iCount =0;
var deleteMenuItem = oMenu.findItemByValue("Delete");
var radExplorer = $find("<%# radFileExplorer.ClientID %>");
var getGrid = radExplorer.get_grid();
var table = getGrid.get_masterTableView();
var rows = table.get_dataItems();
var downloadFileItem = oMenu.findItemByValue("Download_File");
if (rows.length == 0) {
downloadFileItem.set_enabled(
false);
}
deleteMenuItem.set_enabled(
true);
}
Please can u solve this prob.
Thanks
Bhavani.