
When I want to upload images with the image manager, the upload path seems incorrect. Although the view- and uploadpath are set to the same directory, and I see the correct path when entering the image manager, the uploaded files are being uploaded in an different directory. They're being uploaded in the directory where the user control with the radeditor is in.
How can I fix this?
| <telerik:RadEditor id="RadEditor1" runat="server" > |
| <ImageManager UploadPaths="~/Upload/Industry/New" ViewPaths="~/Upload/Industry/New" /> |
| </telerik:RadEditor> |


| function OnClientTabSelecting(sender, eventArgs) { |
| var tab = eventArgs.get_tab(); |
| var navigateUrl = tab.get_navigateUrl(); |
| if (navigateUrl && navigateUrl != "#" && dataChangeField.value == "true") { |
| var proceed = tabConfirm(Click OK to proceed or Cancel to stay on current page.',eventArgs, 330, 100, '', "Change"); |
| if (!proceed) { |
| eventArgs.set_cancel(true); |
| } |
| else { |
| eventArgs.set_cancel(false); |
| dataChangeField.value = "false"; |
| } |
| } |
| window.tabConfirm = function(text, ev, oWidth, oHeight, callerObj, oTitle) { |
| var callerObj = ev._tab._linkElement; |
| if (callerObj) { |
| //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again. |
| var callBackFn = function(arg) { |
| if (arg) { |
| callerObj["onclick"] = ""; |
| if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz |
| else if (callerObj.tagName == "A") //We assume it is a link button! |
| { |
| try { |
| eval(callerObj.href) |
| } |
| catch (e) { } |
| } |
| } |
| } |
| radconfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle); |
| } |
| return false; |
| } |
function
exportToExcel(fileName) {
var objGrid = $find("<%= grid.ClientID %>").get_masterTableView();
objGrid.exportToExcel(fileName);
}
function
requestStart(sender, args){
if (args.get_eventArgument().indexOf("Export") != -1) {
args.set_enableAjax(
false);
}
}
also i tried this to use ajaxmanager but OnRequestStart event does not fire, because my page does not post back..
when i try to use grid like your samples; bind grid with sqldatasource excelExport works, but when i try to binding on client side
excelExport does not work..
How can i solve this problem?
thanks..
