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
Hi Team,
I have a combo box like this and client function as shown below.
<telerik:RadComboBox ID="cmbCurrency" runat="server" CausesValidation="false" ClientIDMode="AutoID"
EmptyMessage="[Select All]" Filter="Contains" MaxHeight="150" Width="100%" HighlightTemplatedItems="true"
AllowCustomText="true" OnClientDropDownClosed="onDropDownClosing">
<ItemTemplate>
<div onclick="StopPropagation(event)" >
<asp:CheckBox runat="server" ID="cbxItem" Text='<%# Eval("CurrencyCode") %>' onclick="onCheckBoxClick(this,'cmbCurrency')"/>
</div>
</ItemTemplate>
</telerik:RadComboBox>
//<Combo box 2 with same onclick event >
Onclick Event:
function onCheckBoxClick(chk, val) {
var combo = $find("ctl00_MainContent_radDockSelection_C_ctl00_" + val);
//prevent second combo from closing
cancelDropDownClosing = true;
//holds the text of all checked items
var text = "";
//get the collection of all items
var items = combo.get_items();
for (var i = 0; i < items.get_count(); i++) {
var item = items.getItem(i);
//get the checkbox element of the current item
var chk1 = $get(combo.get_id() + "_i" + 0 + "_cbxItem");
var chk2 = $get(combo.get_id() + "_i" + i + "_cbxItem");
if (chk.nextSibling.innerHTML != "[Select All]") {
chk1.checked = false;
if (chk2.checked == true)
text += chk2.nextSibling.innerHTML + ", ";
}
else {
if (chk1.checked == true)
text = "[Select All]";
chk2.checked = false;
chk1.checked = true;
}
}
text = removeLastComma(text);
if (text.length > 0) {
//set the text of the combobox
combo.set_text(text);
combo.ToolTip = text;
}
}
There were 2 problems
1) Check boxes was not responsive.i.e they are not allowing to check either. I change clientstateId as AutoId then It worked.
2) Check all seems not working.
Please let me know How to fix this.
Note : the code recently migrated to dotnet 4 and hosted in windows 2008 r2 .
Thanks in Advance.
Krish
Hello,
i need to build an Audiometric chart like this in c# .net 4
x values are: 125, 500, 1000, 2000, 4000, 8000 Consider that the series can have intermediate values, example 750, 3000, 6000.
i suppose that values are logarithmic but I could not find the correct values.
Hi,
I need a control to enter time in hours and minutes. Is there any control like textbox with up and down arrows to select hour and minutes in telerik.
Please let me know.