or
When I run the code and put the Grid into edit mode the dropdown column is populated with
seven 'System.Data.DataRowView' rows (which is the number of rows in the Title database table)
I cannot see why the values are not being displayed - instead I am getting the object name.
can anyone help?
This my code on the ItemdataBound Event:
GridEditableItem lEditItem = e.Item as GridDataItem; GridEditManager lEditManager = lEditItem.EditManager; GridDropDownColumnEditor lTitle = (GridDropDownListColumnEditor)(lEditManager.GetColumnEditor("ddlTitle")); DataTable dtTitle = ToDataTable2.ToDataTable(title); lTitle.DataSource=dtTitle; lTitle.DataValueField = dtTitle.Columns[0].ToString(); lTitle.DataTextField = dtTitle.Columns[1].ToString(); lTitle.DataBind();var $ = $telerik.$; function pageLoad() { if (!Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) { $(".wrapper").replaceWith( $("")); } } function added(sender, args) { if (Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) { $(".ruDropZone").html("<br /><div align=\"center\"><img src=\"images/toolboxdragdrop.jpg\"></div>"); $(".nonHTML5").replaceWith( $("")); } } </script> <div class="wrapper"> <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" OnClientAdded="added" OnFileUploaded="RadAsyncUpload1_FileUploaded"> </telerik:RadAsyncUpload> <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" /> </div> <div class="nonHTML5" style="position:relative;"> <table> <tr> <td id="controlContainer"> <telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="5" OverwriteExistingFiles="true" OnFileUploaded="RadAsyncUpload1_FileUploaded" /> <telerik:RadProgressArea ID="progressArea1" runat="server" /> </td> <td> <div class="smallModule"> <div class="rc1"> <div class="rc2"> <div class="rc3" style="width:240px"> <asp:Label ID="labelNoResults" runat="server" Visible="True">No uploaded files yet</asp:Label> <asp:Repeater ID="repeaterResults" runat="server" Visible="False"> <HeaderTemplate> <div class="title"> Uploaded files in the target folder:</div> </HeaderTemplate> <ItemTemplate> <%#DataBinder.Eval(Container.DataItem, "FileName")%> <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%> <br /> </ItemTemplate> </asp:Repeater> </div> </div> </div> </div> </td> </tr> </table> </div> <asp:Button ID="buttonSubmit" runat="server" CssClass="RadUploadSubmit" OnClick="buttonSubmit_Click" text="Submit" /> </td>public void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e) { RadAsyncUpload1.TargetFolder = MechanicToolboxClass.ToolBoxSaveToFolder(); } protected void buttonSubmit_Click(object sender, System.EventArgs e) { if (RadUpload1.UploadedFiles.Count > 0) { TargetFolderUpload = MechanicToolboxClass.ToolBoxSaveToFolder(); RadUpload1.TargetFolder = TargetFolderUpload; repeaterResults.DataSource = RadUpload1.UploadedFiles; repeaterResults.DataBind(); labelNoResults.Visible = false; repeaterResults.Visible = true; } else { labelNoResults.Visible = true; repeaterResults.Visible = false; } }hello:
There are Chinese characters in RadEditor control, when choose the export to pdf . the pdf is generated but the Chinese characters are shown abnormal .
eg:
So, instead of what I would expect:
"䏿–‡12"
I see this:
" ####12"
is there a way to fix this?
<asp:HoverMenuExtender ID="HME" runat="server" PopupControlID="panelClientCardsDropDown" TargetControlID="lnkClientCardsDropDown"></asp:HoverMenuExtender> <asp:Panel ID="panelClientCardsDropDown" runat="server"> <asp:Label ID="lblRecentCards" runat="server" Text="10 recent client cards :"/> <asp:SqlDataSource ID="SQLDS_RecentCards" runat="server" ConnectionString="<%$ ConnectionStrings:SQLusrConn %>" SelectCommand="spSelectRecent" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:Parameter DefaultValue='<%$ AppSettings:03 %>' Name="txtParametr03" Type="String" /> </SelectParameters> </asp:SqlDataSource> <asp:RadioButtonList ID="radRecentCards" runat="server" DataSourceID="SQLDS_RecentCards" DataTextField="Value" DataValueField="ID"> </asp:RadioButtonList> <asp:HyperLink ID="lnkNewCard" NavigateUrl="~/private/tcard.aspx?ID=new" Target="_blank" runat="server" Text="New Client Card"/> </asp:Panel>var defaultContent = "Comments"; function OnEditorLoad(editor, args) { editor.set_html(defaultContent); var EditorElement = document.all ? editor.get_document().body : editor.get_document(); $telerik.addExternalHandler(EditorElement, "click", function (e) { if (editor.get_html(true).trim() == defaultContent) { editor.set_html(""); } }); $telerik.addExternalHandler(EditorElement, "blur", function (e) { if (editor.get_html(true).trim() == "") { editor.set_html(defaultContent); } }); } ---------------------------------------------------------------------------------------------------<telerik:RadEditor ID="reComments" runat="server" Skin="Windows7" Width="94.7%" Height="150px" ToolsFile="~/Content/Tools_NoToolbar.xml" ToolTip="Enter Comments" ContentAreaCssFile="~/Content/cssRadEditorWhiteContent.css" OnClientLoad="OnEditorLoad" ToolbarMode="Default" EditModes="Design" StripFormattingOptions="MSWordRemoveAll" ContentAreaMode="Div"> <CssFiles> <telerik:EditorCssFile Value="~/Content/cssRadEditorWhiteContent.css" /> </CssFiles></telerik:RadEditor>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); |