Hi,
We are using the telerik
version 2015.3.930.45.
We are facing issue with
Save and Export.
RadImageEditor Code in
HTML
<telerik:RadImageEditor ID="testImageViewer" runat="server" ImageUrl="https://xxxxxx-xxxxxx.us/EDMTempfiles/10068_Image/nature2.jpg" EnableResize="true" EnableViewState="true" ToolsFile="~/Config/RadImageEditor.xml" >
1. When we click on Save button on tool, select “Downlaod Image” from “Save Dialog” and click “Ok” button then only .png file is downloading but we set .jpg image in the ImageUrl property and expecting .jpg file in download.
2. When we click on “Export” button in tool, we are getting the below error
Message : ="https://xxxxxx-xxxxxx.us/EDMTempfiles/10068_Image/nature2.jpg ' is not a valid
virtual path.
Source : System.Web
Help link :
WebEventCode : 0
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CheckValidVirtualPath(System.String)
HResult : -2147467259
Stack Trace : at System.Web.Util.UrlPath.CheckValidVirtualPath(String
path)
at
System.Web.Util.UrlPath.Combine(String appPath, String basepath, String
relative)
at
System.Web.VirtualPath.Combine(VirtualPath relativePath)
at
System.Web.UI.Control.ResolvePhysicalOrVirtualPath(String path,
VirtualPath& virtualPath, String& physicalPath)
at
System.Web.UI.Control.MapPathSecure(String virtualPath)
at
Telerik.Web.UI.RadImageEditor.TryGetEditableImageFromSource(Boolean
alwaysCreateEditableImage)
at Telerik.Web.UI.ImageEditor.Export.GetImageExtension()
at
Telerik.Web.UI.ImageEditor.Export.SetChildrensProperties()
at
System.Web.UI.Control.EnsureChildControls()
at
System.Web.UI.Control.InitRecursive(Control namingContainer)
at
System.Web.UI.Control.AddedControl(Control control, Int32 index)
at
Telerik.Web.UI.RadImageEditor.LoadDialog(String dialogName)
at
Telerik.Web.UI.RadImageEditor.LoadTool(Object sender, EventArgs e)
at
System.EventHandler.Invoke(Object sender, EventArgs e)
at
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)
Please let me know if I
am doing something wrong with imageEditor properties.
Hi,
when i set AllowSEOPaging=true the RadDataPager's image buttons disappear.
Thanks!
<
telerik:RadListView
ID
=
"RadListView1"
runat
=
"server"
OnNeedDataSource
=
"RadListView1_NeedDataSource"
AllowPaging
=
"True"
ItemPlaceholderID
=
"Panel1"
>
<
LayoutTemplate
>
<
asp:Panel
ID
=
"Panel1"
runat
=
"server"
/>
<
div
>
<
telerik:RadDataPager
ID
=
"RadDataPager1"
runat
=
"server"
PagedControlID
=
"RadListView1"
PageSize
=
"6"
SEOPagingQueryPageKey
=
"page"
AllowSEOPaging
=
"True"
>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"FirstPrev"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
PageButtonCount
=
"5"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"NextLast"
/>
</
Fields
>
</
telerik:RadDataPager
>
</
div
>
</
LayoutTemplate
>
<
ItemTemplate
>
<
div
>
<%#Container.DataItem%>
</
div
>
</
ItemTemplate
>
</
telerik:RadListView
>
Hi, I have an ASP.Net page with some JavaScript, a TabStrip and a PopupWindow. The tab strip was working fine (updates a radgrid) before I added the Javascript and Popupwindow. Now when I click on a new tab the window flickers as if it resfreshing but nothing changes. The tabstrip doesnt change but it thinks that it has as the tab that is clicked you now cannot click until you click another. Im not sure what is causing this issue and have come to a dead end.
Any help would be greatly appreciated.
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Mobile.Master" AutoEventWireup="true" CodeBehind="PickingScreen.aspx.cs" Inherits="Sphere.AutoSys.Web.Picking.PickingScreen" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Header" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript">
function tValueChanged(txt) {
if (document.getElementById('<%= hdnInit.ClientID%>').value == 'true') return;
document.getElementById('<%= hdnInit.ClientID%>').value = 'true';
$find("<%= rdSearch.ClientID %>").click();
}
function OnClientCloseHander(oWindow) {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("ReBind");
}
</script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgPickItems" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:Panel ID="pnlStartPage" runat="server" Visible="true">
<asp:HiddenField ID="hdnInit" runat="server" Value="false" />
<div style="float: left">
<asp:Label ID="lblZoneSelect" runat="server" Text="Select Zone" Width="100px"></asp:Label>
<telerik:RadDropDownList ID="lstZone" runat="server" Width="50px" DataSourceID="odsPickZones" Skin="MetroTouch" DataTextField="pickZone" DataValueField="pickZone" OnItemSelected="lstZone_ItemSelected" AutoPostBack="True" DropDownHeight="100%">
</telerik:RadDropDownList>
<br />
<asp:Label ID="lblBoxIDTag" runat="server" Text="Scan Box(es) "></asp:Label>
<%--<br />--%>
<telerik:RadTextBox ID="txtBoxID" runat="server" Width="100px" onchange="tValueChanged(this)"></telerik:RadTextBox>
<%-- <telerik:RadTextBox ID="RadTextBox1" runat="server" Width="100px" onchange="tValueChanged(this)" EnableViewState="true"></telerik:RadTextBox>--%>
<br />
<asp:Label ID="characters" runat="server" Text=""></asp:Label>
<asp:Label ID="lblError" runat="server" Text="" Visible="false"></asp:Label>
<br />
<telerik:RadButton ID="rdSearch" runat="server" Text="Start Picking" Skin="MetroTouch" OnClick="rdSearch_Click"></telerik:RadButton>
<telerik:RadButton ID="btnExitMain" runat="server" Text="Exit" Skin="MetroTouch" OnClick="btnExitMain_Click"></telerik:RadButton>
<br />
</div>
<div style="margin-left: auto; margin-right: auto; width: 200px; text-align: center; float: right">
<telerik:RadGrid ID="rgBoxes" runat="server" Width="200px" AutoGenerateColumns="False" DataSourceID="CurrentScannedBoxes" OnItemCommand="rgBoxes_ItemCommand1">
<MasterTableView DataSourceID="CurrentScannedBoxes">
<Columns>
<telerik:GridBoundColumn DataField="Identity" AllowSorting="false" AllowFiltering="false" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BoxBarcode" AllowFiltering="false" HeaderText="Box ID" UniqueName="boxid">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Remove" UniqueName="Delete" AllowFiltering="False">
<ItemStyle />
<HeaderStyle Width="100px"></HeaderStyle>
<ItemTemplate>
<asp:ImageButton ID="deleteButton" ImageUrl="~\Content\Images\delete_icon.jpg" runat="server" Height="25px" Width="25px" CommandName="Delete" CommandArgument='<%# Bind("BoxID") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</div>
<asp:ObjectDataSource ID="odsPickZones" runat="server" SelectMethod="get_Location" TypeName="Sphere.AutoSys.BusinessLayer.ProductLocationDB"></asp:ObjectDataSource>
</asp:Panel>
<asp:Panel ID="pnlMessage" runat="server" Visible="false">
<asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label>
</asp:Panel>
<asp:Panel ID="pnlPick" runat="server" Visible="false">
<div class="PageToolBar">
<asp:TextBox ID="txtProductScan" runat="server" AutoPostBack="True" OnTextChanged="txtProductScan_TextChanged" Width="100px"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Text=" " Width="25px"></asp:Label>
<telerik:RadButton ID="rdbtnPickItem" runat="server" Text="Pick Item" OnClick="rdbtnPickItem_Click"></telerik:RadButton>
<telerik:RadButton ID="popup" runat="server" Text="Popup" OnClick="popup_Click"></telerik:RadButton>
<asp:Label ID="Label3" runat="server" Text=" " Width="25px"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="Zone: " Font-Size="Medium"></asp:Label><asp:Label ID="lblZone" runat="server" Text="" Font-Size="Medium"></asp:Label>
<asp:Label ID="Label4" runat="server" Text=" " Width="50px"></asp:Label>
<%--<telerik:RadButton ID="btnMarkForQC" runat="server" Text="Send To QC" OnClick="btnMarkForQC_Click" Visible="false"></telerik:RadButton>--%>
<%-- <div style="float: right">
<asp:Image ID="SphereLogo" src="../Content/Images/Sphere.png" runat="server" Height="30px" Width="120px" />
</div>--%>
<div style="float: right">
<telerik:RadButton ID="radbtnClose" runat="server" Text="Close Boxes" OnClick="radbtnClose_Click" Skin="MetroTouch"></telerik:RadButton>
</div>
<br />
<br />
<asp:ObjectDataSource ID="CurrentScannedBoxes" runat="server" SelectMethod="GetCurrentBoxes" TypeName="Sphere.AutoSys.BusinessLayer.PickBoxesDB">
<SelectParameters>
<asp:Parameter DefaultValue="" Name="UserID" Type="String" />
<asp:ControlParameter ControlID="lstZone" DefaultValue="" Name="Location" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<telerik:RadTabStrip ID="rstBoxes" runat="server" DataSourceID="odsBoxNums" DataTextField="BoxID" DataValueField="BoxID" AppendDataBoundItems="true" OnTabClick="rstBoxes_TabClick">
<Tabs>
<telerik:RadTab Text="Picking List" Value="0"></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<br />
<br />
</div>
<br />
<br />
<div runat="server" id="spacer">
<br />
<br />
</div>
<telerik:RadGrid ID="rgPickItems" runat="server" CellSpacing="-1" GridLines="Both" DataSourceID="osdGetPickItems" AutoGenerateColumns="False">
<MasterTableView DataSourceID="osdGetPickItems" DataKeyNames="productID">
<Columns>
<telerik:GridBoundColumn DataField="boxID" HeaderText="Box ID" Visible="false" ItemStyle-Width="10%">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Barcode" HeaderText="Barcode" ItemStyle-Width="15%">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PickLocation" HeaderText="Location" ItemStyle-Width="15%">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="productID" HeaderText="Product ID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ProductCode" HeaderText="Code" ItemStyle-Width="20%">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Name" HeaderText="Name" ItemStyle-Width="40%">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Qty" HeaderText="Qty" ItemStyle-Width="10%">
</telerik:GridBoundColumn>
<%--<telerik:GridBoundColumn DataField="Picked" HeaderText="Picked" ItemStyle-Width="10%">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="IdentityCount" HeaderText="IdentityCount" ItemStyle-Width="10%">
</telerik:GridBoundColumn>--%>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<br />
<div style="float: left; width: 70%">
<telerik:RadButton ID="btnSplit" runat="server" Text="Split Box" OnClick="btnSplit_Click" Visible="False"></telerik:RadButton>
<asp:Label ID="Label5" runat="server" Text="" Width="3%"></asp:Label>
<telerik:RadButton ID="btnQC" runat="server" Text="Mark For QC" Visible="False" OnClick="btnQC_Click"></telerik:RadButton>
<asp:Label ID="Label6" runat="server" Text="" Width="3%"></asp:Label>
<telerik:RadDropDownList ID="lstReasons" runat="server" DataSourceID="odsQCReasons" Visible="False" DataTextField="Qcreason"></telerik:RadDropDownList>
<asp:ObjectDataSource ID="odsQCReasons" runat="server" SelectMethod="QCReasons" TypeName="Sphere.AutoSys.BusinessLayer.QCDB"></asp:ObjectDataSource>
</div>
<div style="float: right; width: 9%">
<telerik:RadButton ID="btnExit" runat="server" OnClick="btnHideMenu_Click" Text="Exit">
</telerik:RadButton>
</div>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Style="z-index: 999;">
<Windows>
<telerik:RadWindow ID="RadPopUpWindow" runat="server" VisibleTitlebar="false" Width="250px"
Height="400px" Left="20px" ReloadOnShow="true" Modal="true" VisibleStatusbar="false"
AutoSizeBehaviors="Default" OnClientClose="OnClientCloseHander" Behaviors="None" Skin="MetroTouch" />
</Windows>
</telerik:RadWindowManager>
</asp:Panel>
<asp:ObjectDataSource ID="osdGetPickItems" runat="server" SelectMethod="GetPickItems" TypeName="Sphere.AutoSys.BusinessLayer.PickingListDB">
<SelectParameters>
<asp:Parameter Name="UserID" Type="String" />
<asp:ControlParameter ControlID="lstZone" Name="Zone" PropertyName="SelectedValue" Type="String" />
<asp:Parameter Name="BoxID" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<br />
<br />
<asp:ObjectDataSource ID="odsBoxNums" runat="server" SelectMethod="GetPickBoxes" TypeName="Sphere.AutoSys.BusinessLayer.PickingListDB">
<SelectParameters>
<asp:Parameter Name="UserID" Type="String" />
<asp:ControlParameter ControlID="lstZone" Name="Zone" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<br />
<br />
<asp:XmlDataSource runat="server" ID="XMLTabStrip" DataFile="TabStrip.xml" XPath="~/Picking/"></asp:XmlDataSource>
</asp:Content>
Looking for input/suggestions on how to handle the following requirement without duplicating code.
When a new entry is made there should be a wizard that walks the user through a five step process to create the item. Once the item exists, the user must be able to access each 'step' independently. The steps are somewhat complicated, and a page for each step already exists.
1) Can each Step in the Wizard be an existing web page? I don't see where that's possible, but it might be worth considering.
2) Can each step be a RadWindow that would load an existing web page?
3) An option would be to put everything in the Wizard and set Render Selected Step Only. Run the wizard normally for the wizard interface and then when they need access to a Step independently, load that step and hide the progress bar, navigation bar, and progress buttons. This seems possible but also seems like it would create a rather large and unwieldy aspx file.
Any thoughts would be appreciated. Thanks.
I have read other threads and tried every proposed solution I could find here, but no success.
Basically I need to disable drag&drop of any of the elements of the page (e.g. website menu links, etc.), of the browser (e.g. address from the address bar etc.), as well as the editor's menu itself.
Hello all,
I am trying to export html from a RadEditor to PDF and I have a table where I need to determine if it is going to break and show on 2 pages. If this is the case, I need to add a page break at the start of the table to ensure the table only shows on 1 page.
I am trying to use this approach (http://www.telerik.com/blogs/using-an-external-library-for-the-export-to-pdf-functionality-in-telerik-s-asp.net-editor#disqus_thread) using RadDocument, but I am not seeing how to do this. Can anyone help?
Thanks,
Laura
I try to show image which is located FTP Server.
So I set ImageEditor.ImageUrl = ftp://sckpcsd:Korea%4012@krpcsdapp01/LMK/Image/2015/11/10474/7L4Q.JPG
Then when image loading, error window was happened, it says debug web page using internet explorer inside script Debugger.
If I select Yes, debugger is open.
If I select No, the image is sucessfully loading.
I think that image is located other PC, so the error window is happend.
How can I make the error message isn't happen before image loading without download image from ftp server to web server.
Hi,
My first post here. I'm using the Telerik Editor that is build into the Sitecore interface, though I see from the demos that this problem applies to the default Telerik Editor also.
The problem is that the toolbar buttons don't insert the expected HTML code. For example, using the B (bold) button, inserts the HTML tag <strong> (for strong emphasis), instead of either the <b> (bold) HTML tag or better the style="font-weight:bold" attribute.
<strong> is *not* equal to displaying bold text. It is by default displayed as bold in *most* browsers, but any stylesheet can easily redefine <strong> to be displayed with other formatting, in which case the connect with the "bold" button is totally invalid.
The same goes for the I (italic) button, which doesn't insert code for italic text but an <em> for emphasized text.
Following this pattern, I would have expected the U (underline) button to insert an <a> tag, because anchors are underlined by default, but this is not the case. The U button actually inserts <span style="text-decoration: underline;">. However, in an unrelated complaint, the use of underlining in webpages is bad user experience, since many visitors will misinterpret underlined text as a hyperlink, and try to click it. An underline button should not be offered in a web editor. My suspicion is the only reason for that button being there, is because it is also available in Microsoft Word. A web page is *not* the same as a Word document, and the Telerik Editor should honor this difference, instead of trying to mimic something it is not.
Hi,
I have enabled the rad grid keyboard navigation. But Up and down keys are not working. Please suggest me what I am doing wrong here.
<ClientSettings AllowColumnsReorder="True" AllowKeyboardNavigation="true" Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true" ReorderColumnsOnClient="True" KeyboardNavigationSettings-AllowActiveRowCycle="true">
<Selecting AllowRowSelect="True" />
<KeyboardNavigationSettings AllowActiveRowCycle="True" EnableKeyboardShortcuts="true" > </KeyboardNavigationSettings>
</ClientSettings>
Hello.
I have multi selection combobox with checkboxes. Variable "options" has value: "Cat, Dog". Combobox has values: "Cat", "Dog", "Pig". I want to check and select few values by using java script. I am not able to select few values at ones. This code only select "Dog".
function
setValuesInCombobox(options) {
var
controler =$find(getClientIdById(cboBuildingControlName));
controler.set_value(options);
controler.set_text(options);
var
allChoicesFromCbo = controler.get_items()._array;
var
selectedOptions = options.split(
","
);
for
(i = 0; i < selectedOptions.length; i++) {
var
building = selectedOptions[i].trim();
for
(j = 0; j < allChoicesFromCbo.length; j++) {
var
nameOfBuildingInCbo = allChoicesFromCbo[j]._properties._data.value;
if
( nameOfBuildingInCbo == building) {
allChoicesFromCbo[j]._setChecked(
true
);
allChoicesFromCbo[j].select();
}
}
}
}