http://www.telerik.com/community/forums/aspnet-ajax/chart/how-to-make-a-horizontal-chart-legend.aspx
<Legend>
<Appearence overflow="Row"></Appearence>
</Legend>
Javascript to open the RadWindow
function launchEditProjectType(projecttypeid) {
var URL = "wfrmAddProjectType.aspx?projecttypeid=" + projecttypeid
window.radopen(URL,
"AddProjectType");
return false;
}
<telerik:RadWindowManager ID="winMgr" runat="server" Modal="True" Skin="Web20" Left="" NavigateUrl="" EnableEmbeddedScripts="true" KeepInScreenBounds="true" Height="550px" Width="610px" Behaviors="Move,Maximize,Close">
<Windows>
<telerik:RadWindow runat="server" ID="editActivity" VisibleStatusbar="False" Skin="Web20" ReloadOnShow="True" Modal="true" Behaviors="Move,Maximize,Close" />
<telerik:RadWindow runat="server" ID="editProjectType" Height="700px" Width="740px" Behaviors="Close" VisibleStatusbar="False" Skin="Web20" ReloadOnShow="true" Modal="true">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
In the rad window:
<asp:TextBox ID="txtDescription" runat="server" Font-Names="Arial" Font-Size="12px" MaxLength="40" Width="256px" CausesValidation="true"></asp:TextBox>
<asp:CustomValidator ID="cv2" ControlToValidate="txtDescription" runat="server" Display="Dynamic" OnServerValidate="ValidateProjectType" Font-Bold="true" Font-Names="Arial" Font-Size="20px"
ErrorMessage="CPE Year must be unique" SetFocusOnError="true">*</asp:CustomValidator>
<asp:RequiredFieldValidator ID="rfv0" runat="server" ControlToValidate="txtDescription"
ErrorMessage="Description" Font-Names="Arial" Font-Size="12px">*</asp:RequiredFieldValidator>
in the .vb codebehind
Public Sub ValidateProjectType(ByVal sender As Object, ByVal args As ServerValidateEventArgs)
Dim a As Boolean = True
If args.Value() <> "" Then
Dim data As New AdminData
a =
Not data.isDuplicateProjectType(Me.txtDescription.Text, Me.lblProjectTypeID.Text)
Else
a =
False
End If
args.IsValid = False
End Sub
If all validation works, it will try to save. As you can see, I set the custom validator to always fail, yet it tries to save every time. If I don't run this code in a rad window, but in a browser on its own, the validation is fine.
Any thoughts?
I try to check spelling text at several radtexteditors before data is saved, and I don't want to user to click "spell" button. Instead, I put it at link button
OnClientClick
="StartCheck()"
and a javescript:
function StartCheck() {
var spell = $find('<%=FormViewComment.FindControl("RadSpell10").ClientID %>');
spell.startSpellCheck();
return false
}
which is inside a RadCodeBlock.
Spelling control is like this:
<telerik:RadSpell ID="RadSpell10" Runat="server" Skin="Vista" ControlsToCheck='<%# new string[3] {FormViewComment.FindControl("RadTextBoxOpportunities").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID}%>'
IsClientID="true" SupportedLanguages="en-US,English" ButtonType="none" />
All three textbox are inside a FormView Control, and it is inside an asp customer control.
When I click the link button to fire spell check, spell check dialog box does show up, but it pompup a "complete spelling check" message although some text is not spelled correctly, and give me some wired client script error which I don't understand. Please let me know what mistake I made.
Thanks

I am using RadControls for ASP.NET Ajax Q2 2010 NET 35 (2010.2.826.35)
I have set the radNumericTextbox ReadOnlyStyle as
<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" DataType="System.Int32" MaxValue="5000" MinValue="0" SelectionOnFocus="None" Skin="Sunset" Width="50px" Enabled="false"> <DisabledStyle BackColor="#EEEEEE" /> <ReadOnlyStyle BackColor="#EEEEEE" /> <EnabledStyle HorizontalAlign="Center" /> <NumberFormat DecimalDigits="0" /> </telerik:RadNumericTextBox>function EnableRadNumericTextBox1(enable) { var RadNumericTextBox1= $("div #divReqPositions [id$='RadNumericTextBox1']")[0].control; if (enable) { RadNumericTextBox1.enable(); RadNumericTextBox1._textBoxElement.readOnly = false; } else { RadNumericTextBox1.clear(); RadNumericTextBox1.disable(); }