Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
41 views
Hi All,

I am using radscheduler

I want to show the timeslot of appoitmet while showing the appointment
in radscheduler.

Thanks
Simon
Telerik team
 answered on 20 Oct 2008
1 answer
78 views
how to initially sort the Radgrid by two columns? Thanks.
Missing User
 answered on 20 Oct 2008
1 answer
125 views
I have a problem with RadColorPicker. I am not able to disable it from code behind. I am using the recent version of Telerik controls as suggested by you in a previous post . The Version I am using is "RadControls Prometheus for ASPNET Q3 2007".

The code is:


protected void Button1_Click(object sender, EventArgs e) 

    { 

        RadColorPicker1.Enabled = false; 

    } 

Svetlina Anati
Telerik team
 answered on 20 Oct 2008
1 answer
97 views

 Hi, I'm using the example below to update some information on the screen, after the close radwindow, however with the code: GetRadWindow (). BrowserWindow.location.reload (); the whole screen is being updated, and that I needed to update only the GRID I have.

Still, I'm passing the values manually to the grid.

Can you help me?

 

  1. function RefreshParentPage()
    {
        GetRadWindow().BrowserWindow.location.reload();
    }
    </script>
  2. private void Button2_Click(object sender, System.EventArgs e)
    {
        InjectScript.Text="<script>RefreshParentPage()</" + "script>";
    }
Svetlina Anati
Telerik team
 answered on 20 Oct 2008
3 answers
661 views
I am having trouble getting a RadAlert mesaage to display after a postback button click.  I have tried the solutions shown in the KB article on RadAlert, but cannot get it to work.

I have an input form sshown below, and in the Submit_Click routine I do data validation.  On a validation error I have the radAlert code:

protected

 

void Submit_Click(object sender, EventArgs e){
    ...validation code....
    if (error)
    {
    message = "Required information missing. Please fill in all required information.";
    string scriptstring = "radalert('" + message + "', 330, 180, 'CPR+ Web Portal Alert');";
    ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true);
    }

But this does not result in any alert message display.  Why?

My aspx page:

 

<%@ Page Language="C#" MasterPageFile="~/Master/SiteTemplate.master" AutoEventWireup="true"
CodeFile="createuserform.aspx.cs" Inherits="Admin_createuserform" Title="Create User Account" %>

<%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="radW" %>
<%@ Register Assembly="RadComboBox.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="radI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphWebData" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <radW:RadWindowManager ID="messages" runat="server" Skin="WebBlue">
    </radW:RadWindowManager>
    <radA:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%" LoadingPanelID="AjaxLoadingPanel1">
        <div class="info-row gradient">
            <h1 class="primary-font-color row-heading">ACCOUNT INFORMATION:</h1>
                <div class='label' style="width: 170px">
                    <asp:Label ID="lblUsername" runat="server" Text="Username*:"></asp:Label>
                </div>
                <div class='field'>
                    <radI:RadTextBox ID="txtUsername" runat="server" Skin="Monochrome"
                        Width="159px" MaxLength="100">
                    </radI:RadTextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                        ControlToValidate="txtUsername" Display="Dynamic"
                        ErrorMessage="Username is required!"></asp:RequiredFieldValidator>
                </div>
                <div id='password'>
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblPassword" runat="server" Text="Password*:"></asp:Label>
                    </div>
                    <div class='field' style="vertical-align: middle;">
                        <radI:RadTextBox ID="txtPassword" runat="server" TextMode="Password" Skin="Monochrome"
                            SelectionOnFocus="SelectAll" Width="159px" MaxLength="50">
                        </radI:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                            ControlToValidate="txtPassword" Display="Dynamic"
                            ErrorMessage="Password is required!"></asp:RequiredFieldValidator>
                    </div>
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblVerifyPwd" runat="server" Text="Verify Password*:"></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadTextBox ID="txtVerifyPwd" runat="server" TextMode="Password" Skin="Monochrome"
                            SelectionOnFocus="SelectAll" Width="159px" MaxLength="50">
                        </radI:RadTextBox>
                        <asp:CompareValidator ID="ComparePassword" runat="server" ErrorMessage="Passwords do not match!"
                            ControlToValidate="txtVerifyPwd" ControlToCompare="txtPassword" SetFocusOnError="true" Font-Size="xx-small" Font-Bold="True"></asp:CompareValidator>
                    </div>
                </div>
        </div>
        <div class="info-row ">
                <div id='email'>
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblEmail" runat="server" Text="E-mail Address:" ></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadTextBox ID="txtEmail" runat="server" Skin="Monochrome" Width="159px" SelectionOnFocus="SelectAll">
                        </radI:RadTextBox>
                        <asp:RegularExpressionValidator ID="regEmail" ControlToValidate="txtEmail" Text="(Invalid E-mail Address!)"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" runat="server" Font-Size="xx-small" Font-Bold="True"></asp:RegularExpressionValidator>
                    </div>
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblVerifyEmail" runat="server" Text="Confirm E-mail Address:" ></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadTextBox ID="txtVerifyEmail" runat="server" Skin="Monochrome" Width="159px"
                            SelectionOnFocus="SelectAll">
                        </radI:RadTextBox>
                        <asp:CompareValidator ID="CompareEmail" runat="server" ErrorMessage="E-mail Addresses do not match!"
                            ControlToValidate="txtVerifyEmail" ControlToCompare="txtEmail" SetFocusOnError="true" Font-Size="xx-small" Font-Bold="True"></asp:CompareValidator>
                    </div>
                </div>
        </div>
        <div class="info-row gradient">
                <div id='firstname' runat='server'>
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblFirstName" runat="server" Text="First Name*:"></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadTextBox ID="txtFirstName" runat="server" Skin="Monochrome" Width="159px">
                        </radI:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                            ControlToValidate="txtFirstName" Display="Dynamic"
                            ErrorMessage="First Name is required!"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div id='lastname' runat="server">
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblLastName" runat="server" Text="Last Name*:"></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadTextBox ID="txtLastName" runat="server" Skin="Monochrome" Width="159px">
                        </radI:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
                            ControlToValidate="txtLastName" Display="Dynamic"
                            ErrorMessage="Last Name is required!"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div id='dob' runat="server">
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblDOB" runat="server" Text="Patient's Date of Birth*:"></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadDateInput ID="txtDOB" runat="server" Culture="English (United States)"
                            MinDate="1900-01-01" SelectionOnFocus="SelectAll" Skin="Monochrome" Width="105px">
                        </radI:RadDateInput>
                    </div>
                </div>
                <div id='ssn' runat="server">
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblSSN" runat="server" Text="Patient's Soc. Sec. # *:"></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadMaskedTextBox ID="txtSSN" Mask="###-##-####" PromptChar=" " runat="server"
                            Skin="Monochrome" Width="78px" SelectionOnFocus="SelectAll">
                        </radI:RadMaskedTextBox>
                    </div>
                </div>
                <div id='caregiver' runat="server">
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblCareGiver" runat="server" Text="Are you the Care Giver?:"></asp:Label>
                    </div>
                    <div class='field'>
                        <asp:CheckBox ID="chkCareGiver" runat="server" />
                    </div>
                </div>
                <div id='zip' runat="server">
                    <div class='label' style="width: 170px">
                        <asp:Label ID="lblZip" runat="server" Text="Zip Code:"></asp:Label>
                    </div>
                    <div class='field'>
                        <radI:RadMaskedTextBox ID="txtZip" Mask="#####-####" PromptChar=" " runat="server"
                            Skin="Monochrome" Width="72px" SelectionOnFocus="SelectAll">
                        </radI:RadMaskedTextBox>
                    </div>
                </div>
               
        </div>
        <div class="info-row ">
                <div class='label'>
                    * Indicates required fields
                </div>
                <br /><br />
                <div style="text-align: center;">
                    <asp:Button ID="btnSubmit" Text="Submit" CommandName="Update" OnClick="Submit_Click" runat="server" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnCancel" Text="Cancel" OnClick="Cancel_Click" CausesValidation="False" runat="server" />
                </div>
                <div class='header'>
                    <asp:RegularExpressionValidator ID="CheckPassword" runat="server" ControlToValidate="txtPassword"
                        SetFocusOnError="true" ValidationExpression="(?=^.{6,}$)(?=.*\d)(?=.*\W+)(?![.\n]).*$"
                        ErrorMessage="Your Password must have at least 1 number, 1 special character, and more than 6 characters."></asp:RegularExpressionValidator>
                </div>
        </div>
    </radA:RadAjaxPanel>
    <radA:AjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Height="75px" Width="75px">
        <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/Loading.gif" />
    </radA:AjaxLoadingPanel>
</asp:Content>

 

Maria Ilieva
Telerik team
 answered on 20 Oct 2008
1 answer
108 views
Hi,

We are having a weird problem with the RadUpload control. It works on certain files, but when we try and upload a video or audio file we get the following:
There is no uploaded file, or the uploaded file is invalid. Uploaded file: unknown

Here is the init code:

RadUpload1.AllowedFileExtensions =

new string[0];
RadUpload1.MaxFileSize = 5242880;
// 5 MB
lblInstructions.Text = string.Format(UploadInstructions, "", "5 MB");
UploadItemType = 4;
RadUpload1.TargetFolder =
"~/uploads/other";

 

Please help.

Veselin Vasilev
Telerik team
 answered on 20 Oct 2008
1 answer
157 views
I have a RadComboBox that uses ItemTemplate to show a bunch of CheckBoxes.

When a user checks on or off one of the checkboxes the whole drop-down closes.

Is there a way to keep it open until the user manually closes it?
Veselin Vasilev
Telerik team
 answered on 20 Oct 2008
1 answer
93 views
i want to group the table by some field but the column header should be displayed with each group rather than by just one column header at top for all the groups. How to enable header for all groups??
Princy
Top achievements
Rank 2
 answered on 20 Oct 2008
1 answer
70 views
Is it possible to highlight the slider bar on the outsides of the handles, rather than the inside when using IsSelectionRangeEnabled = true?  This effectively would show you are selecting say the Bottom 20% and Top 20%.

Tsvetie
Telerik team
 answered on 20 Oct 2008
1 answer
132 views
I currently have a form where an asp:TextBox is set as the OpenerElement of a RadWindow and it works fine.  However, I want to replace the TextBox with a RadTextBox and when I did that the RadWindow no longer opened and I don't know why.

Here's some sample code to illustrate this problem.

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />

<telerik:RadTextBox ID="radTextBox" Columns="30" ReadOnly="true" text="RadTextBox" runat="server" />
<asp:TextBox ID="aspTextBox" Columns="30" ReadOnly="true" text="AspTextBox" runat="server" />

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<telerik:RadWindow ID="rwFindBranch" runat="server"
OpenerElementId="<%# radTextBox.ClientID %>"
NavigateUrl="http://www.telerik.com" />

<telerik:RadWindow ID="rwFindBranch2" runat="server"
OpenerElementId="<%# aspTextBox.ClientID %>"
NavigateUrl="http://www.google.com" />
</Windows>
</telerik:RadWindowManager>

</form>
Georgi Tunev
Telerik team
 answered on 20 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?