when I deploy the site then it don't recognize the image path but it works on localhost:
I'm using this code to define paths:
RadEditor1.ContentFilters = Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute;
string[] viewImages = new string[] { "~/images/content/pagina" };
string[] uploadImages = new string[] { "~/images/content/pagina" };
string[] deleteImages = new string[] { "~/images/content/pagina" };
RadEditor1.ImageManager.ViewPaths = viewImages;
RadEditor1.ImageManager.UploadPaths = uploadImages;
RadEditor1.ImageManager.DeletePaths = deleteImages;
so the idea is when open the media manager it goes automatically to that path.... but when deploy I get an empty path field
var
origDeleteRecord = batchManager.deleteRecord;
batchManager.deleteRecord =
function
(tableView, row)
{
var
pv = window.Page_Validators;
window.Page_Validators =
null
;
// HACK:
batchManager.raise_rowDeleting(row);
origDeleteRecord.call(batchManager, tableView, row);
batchManager.raise_rowDeleted(row);
window.Page_Validators = pv;
}
<
telerik:RadGrid
ID
=
"RadGridActive"
runat
=
"server"
OnNeedDataSource
=
"RadGridActive_OnNeedDataSource"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
AllowMultiRowSelection
=
"True"
AllowAutomaticInserts
=
"False"
AllowAutomaticDeletes
=
"False"
AllowAutomaticUpdates
=
"False"
AllowPaging
=
"True"
PageSize
=
"1000"
OnExportCellFormatting
=
"RadGridActive_OnExportCellFormatting"
>
<
ExportSettings
HideStructureColumns
=
"True"
ExportOnlyData
=
"True"
></
ExportSettings
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridClientSelectColumn
UniqueName
=
"ClientSelectColumn"
>
</
telerik:GridClientSelectColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
AllowColumnsReorder
=
"True"
ReorderColumnsOnClient
=
"True"
>
<
Virtualization
EnableVirtualization
=
"True"
InitiallyCachedItemsCount
=
"1000"
ItemsPerView
=
"200"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
></
Virtualization
>
<
Selecting
AllowRowSelect
=
"True"
EnableDragToSelectRows
=
"False"
></
Selecting
>
<
Scrolling
AllowScroll
=
"True"
ScrollHeight
=
"500"
UseStaticHeaders
=
"True"
></
Scrolling
>
</
ClientSettings
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
></
PagerStyle
>
</
telerik:RadGrid
>
public
static
void
ExportGridToExcel(RadGrid grid)
{
//remove selected checkbox column if there
if
(grid.MasterTableView.Columns[0].UniqueName ==
"ClientSelectColumn"
) grid.MasterTableView.Columns[0].Visible =
false
;
if
(grid.MasterTableView.Columns[0].UniqueName ==
"EditButton"
) grid.MasterTableView.Columns[0].Visible =
false
;
//if rows selected, only export selected
if
(grid.SelectedItems.Count != 0)
{
foreach
(GridDataItem item
in
grid.MasterTableView.Items)
{
if
(!item.Selected)
item.Visible =
false
;
}
}
grid.ExportSettings.IgnorePaging =
true
;
grid.ExportSettings.OpenInNewWindow =
true
;
grid.ExportSettings.FileName = grid.ID;
grid.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
grid.MasterTableView.ExportToExcel();
}