I am trying to access text entered into a RadEditor but when I try to retrieve the value in a button click event there isn't any value there. It works fine in Chrome but not IE 11.
Here is the UI tag:
<td colspan="6">
<telerik:RadEditor ID="reCommentsJDEItem" runat="server" ToolbarMode="ShowOnFocus" ToolsFile="~/BasicTools.xml" CssClass="td" Enabled="false"EditModes="Design" AutoResizeHeight="true" Height="80px"></telerik:RadEditor></td>
From the click event:
oPackSlipDetail.Comments = reCommentsJDEItem.Content;
No value appears even though something has been typed. Version I am using: 2016.1.113.35 Runtime: v2.0.50727
Thanks
Hello telerik team,
I am developing an aspx page (C#, ASP.Net),
In my webform i have four buttons with its own functionality aligned similar to tabs.
If i click button1, then button1 should be highlighted and automatically all the other three buttons should not be highlighted, vise versa to all the three buttons.
Only one clicked button should be highlighted at a time.
Is there any easy ways to achieve it..
Thanks in advance.
Will be more grateful if u people replied a bit faster..
I have a radgrid bound by entity datasource and has the following column:
<
telerik:GridTemplateColumn
UniqueName
=
"Color"
HeaderText
=
"Background Color"
DataField
=
"Colour"
ItemStyle-Width
=
"150px"
ItemStyle-HorizontalAlign
=
"Center"
SortExpression
=
"myColor"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"32px"
>
<
ItemTemplate
>
<
div
style='width: 16px; height: 16px; background-color: #<%# Eval("Colour") %>'></
div
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadColorPicker
runat
=
"server"
ShowIcon
=
"true"
ID
=
"RadColorPicker1"
SelectedColor='<%# System.Drawing.ColorTranslator.FromHtml("#" + Eval("Colour")) %>' />
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
The datasource looks like this
<
asp:EntityDataSource
ID
=
"eds1"
runat
=
"server"
OrderBy
=
"[it].Name"
ConnectionString
=
"name=DBSchoolsEntities"
DefaultContainerName
=
"DBSchoolsEntities"
EnableDelete
=
"True"
EnableFlattening
=
"False"
EnableInsert
=
"True"
EnableUpdate
=
"True"
EntitySetName
=
"Classifications"
EntityTypeFilter
=
"Classification"
>
</
asp:EntityDataSource
>
I have other columns on the grid that dont have EditItemTemplates and these fields update in the db just fine, but the colour picker column doesnt update in the database and I dont know why?
Hi all,
I have a grid and I use Popup for editing row. I use client side event OnPopUpShowing to set popup position and size. The problem is that my data contains text with symbols '<>' which are not allowed for web request and I need to replace them before request is sent to server. I can do it simple by javascript when any button is clicked, but I am not able to detect closing button (from top right corner).
Is there any client-side event when popup is closing?
Or is it possible to remove/hide closing button when dialog is showing?
Thank you for any idea,
Petr
Hi guys,
I've been attempting to create and aspx page that will automatically launch the select window, as if the user had clicked the "Browse" button, as soon as the page loads. I was able to launch the window successfully using a new button I created myself (ID "RunMe"), and as you can see I've tried a couple different methods in the code below to try and launch the window on page load (document.ready and an onload function call in the body tag). I added in the timeouts in case the call was happening before the control finished loading. I'm testing in Chrome Version 48.0.2564.97 m.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewFileUpload.aspx.cs" Inherits="CYBERWebPortal.NewFileUpload" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script type="text/javascript">
function OnClientFileUploaded(sender, args) {
//var contentType = args.get_fileInfo().contentType;
//alert(contentType);
__doPostBack('RadAsyncUpload1', '');
}
function OnClientClicking(sender) {
setTimeout(function () {
$telerik.$(".ruFileInput").click();
}, 100);
//$telerik.$(".ruFileInput").click();
}
function FinishedLoading(sender) {
setTimeout(function () {
$telerik.$(".ruFileInput").click();
}, 900);
//$telerik.$(".ruFileInput").click();
}
$(document).ready(function () {
setTimeout(function () {
document.getElementById("RunMe").click();
}, 900);
});
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body onload="FinishedLoading()">
<div>
<button type="button" id="RunMe" onclick="OnClientClicking()">Test</button>
<p><strong> Your test was successful. You have reached doc upload!</strong></p>
<div style="display:inline-block;" >
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" >
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<telerik:RadAsyncUpload ID="RadAsyncUpload1"
runat="server"
AutoAddFileInputs="false"
OnFileUploaded="HandleFileUploaded"
OnLoad="HandlePageLoadForFiles"
OnClientFileUploaded="OnClientFileUploaded"
Localization-Select="Upload" InputSize="25"
AllowedFileExtensions=".jpg,.jpeg,.pdf,.doc,.docx,.bmp,.tif,.tiff,.png,.txt,.ppt,.pptx,.xls,.xlsx,.rtf"
TemporaryFolder="../App_Data/"
TargetFolder="../TargetUploads/"
EnablePermissionsCheck="false"
EnableInlineProgress="false" >
</telerik:RadAsyncUpload>
</div>
</div>
</body>
</html>
I have a form contains many types of controls and validationpart .contains a rad tabstrip has two tabs in one tab entry controls like radtextbox and radcombobx there is a vaidation for each control result in a validationsummary, second tab contains a radgrid containing add record button opens a radwindow cotaining a webform for enering data .
In normar case when pressing a tab from tab strib it cuases a postback so the validation summary has error messages but the add button in the radgrid works fine.
I edited the config file add
<add key="validationsettings:unobtrusivevalidationmode" value="none">
the tabstrip worked fine but the add button in the radgrid has no effect and the window.radopen does not occure
is there a setting do the same thing witout affecting radgrid or radwindow
I've made a lot of progress with the scheduler, but I am running into one issue.
I am working on scheduling physicians and they are either scheduled as a person or a group.
I have two seperate drop down boxes. One for physicians and one for groups.
I am able to display the appointment and return either the group name or physician name on the appointment box, but I have set a parameter for inserting or updating entries with a @Type parameter. @Type is defined in my c# code and works for all other function, except when dragging an appointment to another day. @Type sets whether the insertion was a physician or a group. When I do a report it will need to know if the ID stored is a physician ID or group ID. Based on that it will resolve group/physician names and create links.
Long story short I need to be able to define @Type insert parameter while the appointment is being moved to another day. The appointment wouldn't necessarily be the last appointment open, which is making it harder. The javascripting I've tried so far with OnClientAppointmentMoveEnd has caused the appointment to not be stored in SQL at all.