I uses RadButton in asp.net ChangePassword Control.
Here is my code
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"Panel1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"Panel1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
<
ClientEvents
OnRequestStart
=
"RequestStartHandler"
OnResponseEnd
=
"ResponseEndHandler"
/>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Skin
=
"Vista"
/>
<
asp:Panel
ID
=
"Panel1"
runat
=
"server"
>
<
asp:ChangePassword
ID
=
"ChangePassword1"
runat
=
"server"
Width
=
"231px"
OnChangedPassword
=
"ChangePassword1_ChangedPassword"
ContinueDestinationPageUrl
=
"~/ChangePassword.aspx"
ChangePasswordFailureText
=
"Password incorrect."
>
<
ChangePasswordTemplate
>
<
div
id
=
"div1"
runat
=
"server"
style
=
"height:16px;"
>
<
asp:Label
ID
=
"CurrentPasswordLabel"
runat
=
"server"
AssociatedControlID
=
"CurrentPassword"
>Current Password:</
asp:Label
>
</
div
>
<
div
id
=
"div2"
runat
=
"server"
style
=
"height:27px;"
>
<
asp:TextBox
ID
=
"CurrentPassword"
runat
=
"server"
Font-Size
=
"12px"
Width
=
"192px"
MaxLength
=
"125"
TextMode
=
"Password"
onKeyDown
=
"return disable_sp(event);"
onKeyPress
=
"return disable_sp(event);"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"rfvCurrentPwd"
runat
=
"server"
ControlToValidate
=
"CurrentPassword"
ErrorMessage="<img
src
=
'App_Themes/Images/note.png'
/>"
ToolTip="This field is required." ValidationGroup="ChangePassword">
</
asp:RequiredFieldValidator
>
</
div
>
<
div
id
=
"div3"
runat
=
"server"
style
=
"height:16px;"
>
<
asp:Label
ID
=
"NewPasswordLabel"
runat
=
"server"
AssociatedControlID
=
"NewPassword"
>New Password:</
asp:Label
>
</
div
>
<
div
id
=
"div4"
runat
=
"server"
style
=
"height:16px; color: #cc0f16;"
>
A minimum length of <%= Membership.MinRequiredPasswordLength %> characters.
<
asp:RegularExpressionValidator
ID
=
"valPwd"
runat
=
"server"
ControlToValidate
=
"NewPassword"
ErrorMessage="<img
src
=
'App_Themes/Images/note.png'
alt
=
''
/>"
ValidationExpression=".{4}.*"
ValidationGroup="ChangePassword">
</
asp:RegularExpressionValidator
>
</
div
>
<
div
id
=
"div5"
runat
=
"server"
style
=
"height:27px;"
>
<
asp:TextBox
ID
=
"NewPassword"
runat
=
"server"
Font-Size
=
"12px"
Width
=
"192px"
MaxLength
=
"125"
TextMode
=
"Password"
onKeyDown
=
"return disable_sp(event);"
onKeyPress
=
"return disable_sp(event);"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"rfvNewPwd"
runat
=
"server"
ControlToValidate
=
"NewPassword"
ErrorMessage="<img
src
=
'App_Themes/Images/note.png'
/>"
ToolTip="This field is required." ValidationGroup="ChangePassword">
</
asp:RequiredFieldValidator
>
</
div
>
<
div
id
=
"div6"
runat
=
"server"
style
=
"height:16px;"
>
<
asp:Label
ID
=
"ConfirmNewPasswordLabel"
runat
=
"server"
AssociatedControlID
=
"ConfirmNewPassword"
>Confirm New Password:</
asp:Label
>
</
div
>
<
div
id
=
"div7"
runat
=
"server"
style
=
"height:24px; padding-bottom:2px;"
>
<
asp:TextBox
ID
=
"ConfirmNewPassword"
runat
=
"server"
Font-Size
=
"12px"
Width
=
"192px"
MaxLength
=
"125"
TextMode
=
"Password"
onKeyDown
=
"return disable_sp(event);"
onKeyPress
=
"return disable_sp(event);"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"rfvConfirmNewPwd"
runat
=
"server"
ControlToValidate
=
"ConfirmNewPassword"
ErrorMessage="<img
src
=
'App_Themes/Images/note.png'
/>"
ToolTip="This field is required." ValidationGroup="ChangePassword">
</
asp:RequiredFieldValidator
>
</
div
>
<
div
id
=
"div8"
runat
=
"server"
style
=
"color:#ff0000;"
>
<
asp:CompareValidator
ID
=
"NewPasswordCompare"
runat
=
"server"
Display
=
"Dynamic"
ControlToCompare
=
"NewPassword"
ControlToValidate
=
"ConfirmNewPassword"
ErrorMessage
=
"New password and confirm new password mismatch."
ValidationGroup
=
"ChangePassword"
>
</
asp:CompareValidator
>
</
div
>
<
div
id
=
"div9"
runat
=
"server"
style
=
"height:27px; padding-top:4px;"
>
<
telerik:RadButton
ID
=
"btnChangePassword"
runat
=
"server"
ButtonType
=
"LinkButton"
Text
=
"Submit"
CommandName
=
"ChangePassword"
ValidationGroup
=
"ChangePassword"
></
telerik:RadButton
>
<
telerik:RadButton
ID
=
"btnCancel"
runat
=
"server"
ButtonType
=
"LinkButton"
Text
=
"Cancel"
CommandName
=
"Cancel"
CausesValidation
=
"False"
></
telerik:RadButton
>
</
div
>
<
div
id
=
"div10"
runat
=
"server"
style
=
"color:#ff0000;"
>
<
asp:Literal
ID
=
"FailureText"
runat
=
"server"
EnableViewState
=
"False"
></
asp:Literal
>
</
div
>
</
ChangePasswordTemplate
>
<
SuccessTemplate
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
style
=
"width:100%; height:175px;"
>
<
tr
><
td
valign
=
"top"
align
=
"left"
><
telerik:RadButton
ID
=
"btnContinue"
runat
=
"server"
ButtonType
=
"LinkButton"
Text
=
"Continue"
CommandName
=
"Continue"
></
telerik:RadButton
></
td
></
tr
>
</
table
>
</
SuccessTemplate
>
</
asp:ChangePassword
>
</
asp:Panel
>
I got Error: 'undefined' is null or not an object' in IE after the page Postback.
This problem come from RadAjaxManager and RadButton.
I set UseSubmitBehavior="false" but the error still occur.
How to solve this problem, please help.
p.s. I use RadControls for ASP.NET AJAX 2010 Q3
Please help.
Thank you
<telerik:RadNumericTextBox |
ID="rntbLineNumber" |
MinValue="1" |
MaxValue="32767" |
Type="Number" |
runat="server"> |
<NumberFormat DecimalDigits="0" GroupSeparator="" /> |
</telerik:RadNumericTextBox> |
int myValue = int.Parse(rntbLineNumber.Text); |
Hello,
I've been trying the Rad Componets for ASP.net and a small issue came up.
I was trying to create a Self-referencing hierarchy grid programmatically on the Page_Init Event.
While I have been successful in creating the grid in the designer view, when I set up it's structure in the Page_Init the hierarchy doesn't seem to be working (ie I get all the records and columns to show normally but they don't have any children).
Is it possible to give me a few pointers on what I need to create the Self-referencing structure on the grid?
PS:My code looks like:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SelfHierarchyRadGrid._Default" %> |
<%@ Register assembly="Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
<!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></title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager runat="server"> |
</telerik:RadScriptManager> |
<div> |
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None"> |
</telerik:RadGrid> |
<asp:SqlDataSource ID="SqlDataSource1" runat="server" |
ConnectionString="<%$ ConnectionStrings:TestDBConnectionString %>" |
SelectCommand="SELECT [aa], [parentaa], [Text] FROM [HierarchyTest]"> |
</asp:SqlDataSource> |
</div> |
</form> |
</body> |
</html> |
protected void Page_Init(object sender, EventArgs e) |
{ |
if (!IsPostBack) |
{ |
InitGrid(); |
} |
} |
private void DefineStructure() |
{ |
RadGrid1.DataSourceID = "SqlDataSource1"; |
RadGrid1.MasterTableView.HierarchyDefaultExpanded = true; |
RadGrid1.MasterTableView.HierarchyLoadMode = GridChildLoadMode.Client; |
RadGrid1.MasterTableView.AllowSorting = true; |
string[] dkn={"aa", "parentaa"}; |
RadGrid1.MasterTableView.DataKeyNames = new string[] { "aa", "parentaa" }; |
RadGrid1.MasterTableView.SelfHierarchySettings.ParentKeyName = "parentaa"; |
RadGrid1.MasterTableView.SelfHierarchySettings.KeyName = "aa"; |
RadGrid1.ClientSettings.AllowExpandCollapse = true; |
RadGrid1.AutoGenerateColumns = false; |
RadGrid1.ClientSettings.Selecting.AllowRowSelect = true; |
//Create Columns |
GridBoundColumn boundcolumn = new GridBoundColumn(); |
boundcolumn.datafield="aa"; |
RadGrid1.MasterTableView.Add(boundcolumn); |
boundcolumn.UniqueName = "aa"; |
boundcolumn.Visible = true; |
boundcolumn.HeaderText = "aa"; |
//... Rest of the columns ... |
} |
Hi,
The RadEditor (version 5.6.4.0, RadEditor2.dll and Treeview (version 5.1.3.0, RadTreeview.Net2.dll) are currently being used by our team, we are thinking about the possibility to upgrade to latest ajax enabled radcontrol (Telerik.web.UI.dll version 2011.3.1115.35). We are using vs 2010, framework 3.5. What are the steps for upgrading the vs 2010 website ? Anything we need to watch out f( we like to make sure all the existing content will be compatable with the new controls).
Any input will be appreciate, thanks.
Assembly "..." does not contain a script with hash code "...".
Telerik.Web.UI
STACK TRACE:
at Telerik.Web.UI.ScriptEntry.Deserialize(String serializedScriptEntries)
at Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()
at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
I have a need to filter one column based on what the user selects in a rad combo box. It works fine with one value selected but when two or more values are selectd it will not filter correct. I also need to do this client side so server side is not an option. I think the problem is within the "OR" clause. Anyone have any suggestions?
Thanks for any help,
D
<
telerik:GridBoundColumn
UniqueName
=
"foundin"
DataField
=
"foundin"
HeaderText
=
"Fields search term matched"
HeaderStyle-Width
=
"215px"
ItemStyle-Width
=
"215px"
FilterControlWidth
=
"215px"
AllowFiltering
=
"true"
ItemStyle-Wrap
=
"True"
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"radcombo_foundin"
runat
=
"server"
UniqueName
=
"radcombo_foundin"
Width
=
"200px"
OnClientDropDownClosed
=
"filterfoundin"
CheckBoxes
=
"true"
Filter
=
"Contains"
>
</
telerik:RadComboBox
>
</
FilterTemplate
>
</
telerik:GridBoundColumn
>
function filterfoundin(sender, e) {
var tableView = $find('<%=rad_SearchResults.ClientID %>').get_masterTableView();
var filter = "Contains";
var i = 0;
var q = "";
while (i <
sender._itemData.length
) {
q += sender._itemData[i].checked ? sender._itemData[i].value : "";
if (i + 1 < sender._itemData.length) {
if (sender._itemData[i].checked) {
q += " OR ";
}
}
i++;
}
q
= q.substring(q.length - 4) == " OR " ? q.substring(0, q.length - 4) : q;
var
hidden
=
document
.getElementById('<%=hf_foundin.ClientID %>');
hidden.value = q;
tableView.filter('foundin', q, filter);
}
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500