I've implemented StripFormattingOptions and StripFormattingOnPaste (set to AllExceptNewLines) to strip formatting and OnClientPasteHTML to display an alert to the user that the formatting is being stripped from the pasted text. This works fine in IE and Firefox, but in Chrome and Safari the OnClientPasteHTML also fires when the user hits the Enter key while in the Rad Editor.
Has anybody else seen this behavior and what can I do to resolve it (other than removing the alert)?
From what I can tell OnBatchEditCellValueChanged triggers on blur of the field. Am I correct in this assumption?
I am using the following code in my template to show social share buttons for FB, Twitter and LinkedIn. A peculiar thing I am noticing is that the FB button doesn't always show and I am not observing any pattern for when it appears or hides.
<
telerik:RadSocialShare
ID
=
"SocialShare"
runat
=
"server"
>
<
MainButtons
>
<
telerik:RadFacebookButton
/>
<
telerik:RadTwitterButton
/>
<
telerik:RadLinkedInButton
/>
</
MainButtons
>
</
telerik:RadSocialShare
>
Has anyone else noticed this behaviour and found a solution?
The open sub menu function only works when the >
image is selected, not anywhere in the item (as would be expected)
But when going back the user can select any area in
the menu item and it will go back correctly (as you would expected)
It has been like this for some years or am I doing something wrong?
Hi,
I have master page and there are child pages that is using ajaxmanager. Now we had requirement to add one button on master page and if user click on this button, whole page don't need to be refresh. I was trying to add ajaxmanager on Masterpage but there was an error saying only one instance of ajaxmanager can be used. Is there any other way?
Thank you.
Best regards,
Ei Wai
protected
override
void
OnPreRender(EventArgs e)
{
//Complete normal prerender stuff.
base
.OnPreRender(e);
if
(ReadOnly)
{
MakeGridReadOnly(MasterTableView);
}
}
private
static
void
MakeGridReadOnly(GridTableView radGridTableView)
{
HideAddNewCommandButton(radGridTableView);
HideEditDeleteColumns(radGridTableView);
foreach
(var detailView
in
radGridTableView.DetailTables )
{
MakeGridReadOnly(detailView);
}
}
private
static
void
HideAddNewCommandButton(GridTableView radGridTableView)
{
/* http://www.telerik.com/community/forums/aspnet-ajax/ajax/radgrid-addnewrecordbutton-problem-on-prerender-event.aspx#2169542*/
if
(radGridTableView.GetItems(GridItemType.CommandItem).Length <= 0)
return
;
var commandItem = radGridTableView.GetItems(GridItemType.CommandItem)[0];
var newRecordButton = commandItem.FindControl(
"AddNewRecordButton"
);
if
(newRecordButton !=
null
) newRecordButton.Visible =
false
;
var initInsertButton = commandItem.FindControl(
"InitInsertButton"
);
if
(initInsertButton !=
null
) initInsertButton.Visible =
false
;
}
private
static
void
HideEditDeleteColumns(GridTableView radGridTableView)
{
try
{
GridColumn editColumn = radGridTableView.Columns.FindByUniqueName(
"EditCommandColumn"
);
if
(editColumn !=
null
)
editColumn.Visible =
false
;
}
catch
{
}
try
{
GridColumn deleteColumn = radGridTableView.Columns.FindByUniqueName(
"DeleteCommandColumn"
);
if
(deleteColumn !=
null
)
deleteColumn.Visible =
false
;
}
catch
{
}
}
Hello,
I use the onbeforeunload javascript event in asp.net page. What i want is to custom message display and change the button name when message come if page leaving or close, this is not achievable in firefox higher version and this is drawback for firefox higher version.
Default message when page leaving : This page is asking you to confirm that you want to leave - data you have entered may not be saved.
I want to know that any work can be achieved from telerik side. I think you understand my query.
If any work can be achieved that will be appreciated thing.
Pl. help me and suggest any work which can be work properly.
Thanks
Jiten Mutum
Currently I am working with a RadGrid that is using batch update that is attached to a SqlDataSoure to load, update and delete. Everything is working fine but normally the users spend around 20 minutes to review and update everything they need before hit "Save Changes", during this process new records are inserted in the database so the data displayed on the screen is not the same of the database. When the user finally hit "Save Changes" the grid refresh first the dataset and after that perform the updates generating errors because records that were not displayed are updated.
Is there a way to tell the grid to load the data only when it is not postback? Like doing it in the OnNeedDatasource in the code behind.
I've recently converted an ASP.NET 2.0 application to 3.5 and have been trying to add telerik.
vs2013 & Telerik asp.net ajax v2015.1.401.35
Recently converted an ASP.NET 2.0 web application to 3.5 and it runs fine.
I've used the telerik wizard to add the necessary bits to web.config.
Tried replacing the scriptmanager with RadScriptManager, but that errors with
JavaScript critical error at line 4, column 1 in http://localhost/iWebTest/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=3.5.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:eb198dbd-2212-44f6-bb15-882bde414f00:ea597d4b:b25378d2;Telerik.Web.UI:en-US:bfbc94e0-0f9b-4d52-9983-75ffc518eea7:16e4e7cd:f7645509:22a6274a\n\nSCRIPT1002: Syntax error
so reverted to normal scriptmanager for now until that can be resolved.
Created a new web form, added a radtextbox and a button then in click event in the code behind I tried to retrieve the textbox.text value.. it just returns the original value, not the changed one..
What the heck have I done wrong ?
Hi,
We use the RadGauge a lot, but lately we had some real performance issues, mostly on tablets (iPad)!
When reverting back to a telerik version prior to 2015 Q1 (2014 something), all issues are gone...
In a simple example:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="gauge.aspx.vb" Inherits="TestaTredjepartWeb.gauge" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
window.__dt = new Date();
setTimeout(function () { alert((new Date()) - window.__dt - 10); }, 10);
</
script
>
<
asp:ScriptManager
ID
=
"s"
runat
=
"server"
>
</
asp:ScriptManager
>
<
div
>
<
asp:Button
ID
=
"btn"
runat
=
"server"
/>
<
telerik:RadRadialGauge
ID
=
"rrg"
runat
=
"server"
Transitions
=
"false"
>
<
Pointer
Value
=
"44"
Color
=
"Red"
Cap-Color
=
"Yellow"
></
Pointer
>
<
Scale
>
<
Labels
Position
=
"Outside"
Color
=
"Gray"
Font
=
"normal 10px Segoe UI, Tahoma, Helvetica"
/>
<
Ranges
>
<
telerik:GaugeRange
From
=
"0"
To
=
"40"
Color
=
"Red"
/>
<
telerik:GaugeRange
From
=
"40"
To
=
"90"
Color
=
"Yellow"
/>
<
telerik:GaugeRange
From
=
"90"
To
=
"200"
Color
=
"Green"
/>
</
Ranges
>
</
Scale
>
</
telerik:RadRadialGauge
>
</
div
>
</
form
>
</
body
>
</
html
>
When running this sample on a desktop computer, the alert says about 30ms with 2014 version and 100ms with any 2015 version, on an iPad it says 150ms with 2014 version and 600ms with any 2015 version.
About 3-4 times slower!
On some pages we have multiple gauges, which makes it even worse...
The 2015 Q2 Beta is also slow...
Regards
Andreas