public
partial
class
_Default : System.Web.UI.Page
{
RadProgressContext progress = RadProgressContext.Current;
protected
void
Button_Click1(
object
sender, EventArgs e)
{
for
(
int
i = 0; i < 100; i++)
{
// 1. RadProgressBar (new control):
RadProgressBar1.Value = i;
// 2. RadProgressArea (previous control):
progress.PrimaryValue = i;
progress.PrimaryPercent = i;
progress.SecondaryValue = i;
progress.SecondaryPercent = i;
System.Threading.Thread.Sleep(100);
}
}
protected
void
Button_Click2(
object
sender, EventArgs e)
{
// Clear the progressbar:
RadProgressBar1.Value = 0;
}
}
Hi. i am trying to form for user to type in the name of their course. then each of this course will be able to upload multiple files.
for example user type Computer Engineering, then they are able to upload multiple files for this Computer Engineering. i have tried to do a sample test page to try out the control. but when i click on the Add to add a row to repeater, the previously uploaded data got lost.
Markup:
01.
<
asp:UpdatePanel
ID
=
"pnlEntryTemplate1"
runat
=
"server"
UpdateMode
=
"Conditional"
>
02.
<
ContentTemplate
>
03.
<
asp:Repeater
ID
=
"rptReplyDate"
runat
=
"server"
OnItemCommand
=
"rptReplyDate_ItemCommand"
>
04.
<
HeaderTemplate
>
05.
<
table
cellpadding
=
"0px"
cellspacing
=
"0px"
>
06.
</
HeaderTemplate
>
07.
<
FooterTemplate
>
08.
<
tr
>
09.
<
td
style
=
"padding: 1em 1em;"
align
=
"right"
>
10.
<
asp:Button
ID
=
"btnAddEntry"
runat
=
"server"
Text
=
"Add Entry"
OnClick
=
"btnAddEntry_Click"
/>
11.
</
td
>
12.
</
tr
>
13.
</
table
>
14.
</
FooterTemplate
>
15.
<
ItemTemplate
>
16.
<
tr
>
17.
<
td
style
=
"padding: 1em 1em;"
>
18.
<
table
cellpadding
=
"0px"
cellspacing
=
"0px"
class
=
"repeaterTable"
>
19.
<
tr
>
20.
<
td
>
21.
<
asp:TextBox
ID
=
"txtName"
ClientIDMode
=
"Static"
runat
=
"server"
Text='<%# DataBinder.Eval(Container.DataItem, "txtName") %>'></
asp:TextBox
>
22.
</
td
>
23.
</
tr
>
24.
<
tr
>
25.
<
td
>
26.
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUpload1"
runat
=
"server"
PostbackTriggers
=
"btn_Submit"
></
telerik:RadAsyncUpload
>
27.
</
td
>
28.
</
tr
>
29.
</
table
>
30.
</
td
>
31.
</
tr
>
32.
</
ItemTemplate
>
33.
</
asp:Repeater
>
34.
</
ContentTemplate
>
35.
</
asp:UpdatePanel
>
36.
<
asp:Button
ID
=
"btn_Submit"
runat
=
"server"
Text
=
"Submit"
OnClick
=
"btn_Submit_Click"
/>
I'm using RadEditor with Telerik 2014.2.618.40
I have created a new class that inherits FileSystemContentProvider so that files can be saved to S3 instead of on the web server.
It works when I use it like this in the code behind:
MyRadEditor.ImageManager.ContentProviderTypeName = typeof(S3FileBrowserContentProvider).AssemblyQualifiedName;
How can I set this as the default value across my application? I don't want to have to set this every single time I use the RadEditor, which is a lot.
Hello,
I used the example code to create a simple popup on the server side. This creates a popup that displays a question and a textbox. What I want to do is something similar. I want to create a popup that has a comment box. I want to return the data from the comment box back to my backend code. How do I do that? Here is my code. thank you!
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="tpop.aspx.vb" Inherits="Student_tpop" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<script type="text/javascript">
(function (global, undefined) {
var demo = {};
function promptCallBackFn(arg) {
radalert("After 7.5 million years, <strong>Deep Thought</strong> answers:<h3 style='color: #ff0000;'>" + arg + "</h3>", 350, 250, "Deep Thought");
}
global.promptCallBackFn = promptCallBackFn;
global.$dialogsDemo = demo;
})(window);
</script>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<style type="text/css">
.demo-container {
width: 220px;
}
html.RadForm_Black,
html.RadForm_BlackMetroTouch {
background-color: #fff;
}
</style>
<title>Telerik ASP.NET Example</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<div class="demo-containers">
<telerik:RadWindowManager RenderMode="Lightweight" ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>
<div class="demo-container">
<h2>Dialogs called from server: </h2>
<telerik:RadAjaxPanel ID="pnl1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
<asp:Button ID="btnPrompt" Width="230" runat="server" OnCommand="Btn_OnCommand" Text="radprompt from server"
CommandArgument="radprompt"></asp:Button>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
</div>
</div>
</form>
</body>
</html>
Imports System
Imports System.Web.UI.WebControls
Partial Class Student_tpop
Inherits System.Web.UI.Page
Protected Sub Btn_OnCommand(sender As [Object], e As CommandEventArgs)
Select Case e.CommandArgument.ToString()
Case "radprompt"
RadWindowManager1.RadPrompt("Server RadPrompt: What is the answer of Life, Universe and Everything?", "promptCallBackFn", 950, 500, Nothing, "Server RadPrompt", "42")
Exit Select
End Select
End Sub
End Class
Hi,
May I know why the Radgrid looks totally different in IE (published version) vs IE (Debugging Mode), as well as Chrome?
Kindly refer to the attached images.
Thanks!
Folks,
Using Windows 10 with VS 2017 and Progress® Telerik® UI for ASP.NET AJAX (Version 2018.1.117.45).
Each time I download a new updates, I get attached error message.
Is taking about 2-3 days to research to find out the root cause of this error. Pretty frustrating.
I manually added Telerik.Web.UI.dll and Telerik.Web.UI.Skins.dll in Bin Folder of my project. Also copied both files into C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PublicAssemblies folder. Still no luck.
Telerik please give us a solution what can be done. 2-3 days time is not acceptable to senior management of our organization.
Also by mistake I made the same post in general discussions. Please delete the thread from there.
Thanks
gc_0620
When the editor is initialized everything works as expected. I can see the contextmenu for the table but after an postback the contextmenu stops working with the js-error: Access denied. File: LayoutBuilderEngine.js, row: 28, column: 39
Other contextmenus still works.
Using version: 2017.3.913
if
(d.tagName ==
"TD"
|| d.tagName ==
"TH"
) {
if
(
this
._selectedCell != d) {
this
._selectedCellClassName = d.className;
// here....
}
this
._selectedCell = d;
}
else
Hello,
I have recently upgraded my trial version to licensed version 2018.1.117.45. However i am still getting message "Thanks you for using Trial product......" can anyone assist me in this?
I have already followed below threads but no luck :(
https://www.telerik.com/forums/upgrading-version-creates-bizarre-error
https://www.telerik.com/blogs/upgrade-the-version-of-your-telerik-asp.net-controls-in-6-easy-steps
We have an app that is over 1000 pages and many of those screens have grids with the PDF Export option enabled. We have found that when we don't specify a filename, it automatically uses the Tile Tag of the page. So this:
<title>Issue Analysis</title>
Becomes Issue__Analysis.pdf
That has worked out fine for several years, but recently we have added a bunch of translations to the system and that title tag becomes this:
<title><%= Utilities.getTranslation("Issue Analysis", "IssueAnalysis", "globalRes") %></title>
Apparently when we export now, instead of a filename and extension, we get pdf as the filename with no extension and Windows doesn't recognize this as a pdf file. If you do it a second time, you get a filename with pdf (2) as the name.
I know we could specify a filename in the markup, but with literally over a thousand pages, I would like to avoid that. Another suggestion is that we could instead do the translation in the code behind rather than the aspx page - I haven't tried that, but that also entails updating over a thousand pages along with reverting the aspx change. Does anyone else have a better way?