Hi team,
I try to integrate RadFileExplorer control in one page. In my project developed by MVP format.
File explorer control is working delete,new folder creation, rename etc., File selected using upload control after click upload button but file is not uploaded.
Its not displayed any error.
I entered code also. kindly provide the solution for this problem. I am waiting for your reply
List page Code:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListControl.ascx.cs" Inherits="App.Presentation.CMS.Photobooth.Defaults.DomainControl.ListControl" %>
<%@ Register Assembly="Microsoft.Practices.Web.UI.WebControls" Namespace="Microsoft.Practices.Web.UI.WebControls" TagPrefix="pp" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<h1>Default</h1>
<script>
(function (global, undefined) {
function OnClientItemSelected(sender, args) {
var pvwImage = $telerik.$("#pvwImage").get(0);
var imageSrc = args.get_item().get_url();
if (imageSrc.match(/\.(gif|jpg)$/gi)) {
pvwImage.src = imageSrc;
pvwImage.style.display = "inline-block";
}
else {
pvwImage.style.display = "none";
}
}
global.OnClientItemSelected = OnClientItemSelected;
})(window);
</script>
<table style="width: 100%">
<tr>
<td style="width: 100%">
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="595px" Height="350px" EnableOpenFile="true" AvailableFileListControls="All"
EnableAsyncUpload="true" EnableCreateNewFolder="true" AllowPaging="true" PageSize="10" OnClientItemSelected="OnClientItemSelected" >
<Configuration EnableAsyncUpload="true" ViewPaths="~/Resources/Images" MaxUploadFileSize="1048576" AllowMultipleSelection="false"
UploadPaths="~/Resources/Images" DeletePaths="~/Resources/Images"></Configuration>
</telerik:RadFileExplorer>
</td>
</tr>
</table>
Master page code:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="App_CMS.master.cs" Inherits="App.Presentation.CMS.App_CMS" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="CMSMenu.ascx" TagName="Menu" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>HDB Content Management System</title>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script src='<%= ResolveUrl("~/Scripts/jquery-1.7.1.min.js") %>' type="text/javascript"></script>
<script src='<%= ResolveUrl("~/Scripts/jquery-ui-1.8.17.custom.min.js") %>' type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#dvLogo').click(function () {
document.location.href = "/Home.aspx"
});
});
</script>
</telerik:RadCodeBlock>
<link rel="SHORTCUT ICON" href="/Images/logo.ico" />
<link href="~/Styles/CMSStyleSheet.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body id="bodyContent">
<form id="form1" runat="server">
<script type="text/javascript">
if (typeof (Telerik) != "undefined" && typeof (Telerik.Web.UI.RadInputControl) != "undefined") {
Telerik.Web.UI.RadInputControl.prototype.updateCssClass_Old = Telerik.Web.UI.RadInputControl.prototype.updateCssClass;
Telerik.Web.UI.RadInputControl.prototype.updateCssClass = function () {
// this._hovered = false;
// this._focused = false;
// //this._focus = false;
// this.updateCssClass_Old();
}
}
</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"></telerik:RadScriptManager>
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="False" Skin="Sunset"></telerik:RadSkinManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelsRenderMode="Inline" />
<div id="divMainContainer">
<div id="divHeader">
<div id="leftcolumn"><img src="/Resources/Images/Logo_HDB.png" /></div>
<div id="rightcolumn"><img src="/Resources/Images/Logo_MNH.png" /></div>
<div class="clear"></div>
</div>
<div id="divMenu" style="width: 100%;">
<uc1:Menu ID="Menu1" runat="server" />
</div>
<div id="divContent">
<div style="margin-top:10px;margin-left:10px;margin-right:12px;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div id="divFooter">
</div>
</div>
</form>
</body>
</html>
Hi,
I am working on hybrid application. Recently I am having an issue in WIndows 8, when app is starting, the splash screen shows for a moment, then it hides and a white screen is displayed for a brief moment before the Keno Mobile UI shows. I have added AutoHideSplashScreen in Windows config.xml but it doesn't work in Windows phone. This configuration is working on Android, perfectly OK. I have upgraded Cordova to 3.7.0 version.
Can you give me any suggestions on how to remove white screen flash as the app starts, it looks unprofessional.
Thanks in advance.
Arpita
Hi guys,
I'm using Telerik Q2 2015 with the release of Export to PDF (multiple pages) using ExportClientManager.
When a user clicked export, the save window popped up asking for open or save the pdf file.
If that user chose save then open the PDF file, everything is good.
But If that user clicked open the PDF then save the file, it showed error code 23 (Please see attachment).
Have anyone been had this issue and is there any solution?
I'm using adobe reader version 11.0.4
categoryItem =
new
Telerik.Web.UI.RadComboBoxItem();
categoryItem.set_text(
"Separator"
);
categoryItem.set_value(
"Separator1"
);
comboItems.add(categoryItem);
categoryItem.set_isSeparator(
true
);
Hi,
I have a RadCombobox on an aspx page that I'm trying to populate with one item at OnLoad using
RadComboBoxItem newItem = getItem(id);
RadCombo1.Items.Add(newItem);
RadCombo1.SelectedValue = Request.QueryString["cid"];
RadCombo1.Text = newItem.Text;
After page finishes loading, while invoking RadCombo1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e), e has empty Text and loads data as if the box was empty.
Control on page:
<telerik:RadComboBox ID="RadCombo1" runat="server"
Width="300" MaxHeight="350" AllowCustomText="true"
MarkFirstMatch="true"
OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"
OnSelectedIndexChanged="RadCombo1_SelectedIndexChanged"
EnableLoadOnDemand="true" EnableVirtualScrolling="true"
OnItemsRequested="RadCombo1_ItemsRequested"
ShowMoreResultsBox="true" Filter="Contains">
</telerik:RadComboBox>
How can I set e.Text to my selectedItem.Text or invoke manually RadCombo1_ItemsRequested ?
I am very new to the Telerik controls, less then 8 hours. I just spent several hours building a social network diagram using the D3.js library and now need to see if I can create a similar product with the Telerik controls. Basically the diagram nodes need to show an image, that is stored on a local server, along with some textual information. All data for the nodes and links would be stored in a local json data-set. I would also need to add text labels to lines that link the nodes.
Can any one tell me if these requirements can be met using the Telerik controls, and any example code I could use to get up to speed.
Thanks
Perry