Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
126 views
Hi,
    Why does getCellByColumnUniqueName only work for visible columns? If I use it to get a cell value for a column that has visible=false then it returns null.

Is there a workaround for this?

Thanks
Shinu
Top achievements
Rank 2
 answered on 03 Aug 2010
1 answer
109 views
Hi,

I'd need to know which item is currently shown in the RadRotator so I implemented an AjaxRequest called from the OnClientItemShown event that calls the server and stores the currently shown item there. This itself works just fine.

<telerik:RadAjaxManager ID="ComponentSelectionPanel" runat="server" OnAjaxRequest="ComponentSelectionPanel_AjaxRequest"><br><AjaxSettings><br><telerik:AjaxSetting AjaxControlID="ComponentSelectionPanel"><br><UpdatedControls><br><telerik:AjaxUpdatedControl ControlID="ComponentSelectionPanel" /><br></UpdatedControls><br></telerik:AjaxSetting><br></AjaxSettings><br></telerik:RadAjaxManager><br>

function OnClientItemShown(sender, arg)<br>{<br><br>         $find("<%=ComponentSelectionPanel.ClientID%>").ajaxRequest(componentID);<br>}<br>

However, when user clicks on anything (say on an <a href=...>) on the page too early after recent Rotator scrolling (thus my AjaxRequest is still in progress) then the following error appears:

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0"

Is there a way how to either hide/stop this error message, or to pass the information about currently shown Rotator item to the server in another way that doesn't interfere with too fast users? The AjaxLoadingPanel is a logical choice but would completely destroy the user experience of smooth RadRotator scrolling, I am afraid. I need the AjaxRequest to be completely running in background not bothering the user.

Thanks!
Fiko
Telerik team
 answered on 03 Aug 2010
1 answer
134 views
I have a RadGrid and a button that loads the grid based on a search string, and use the loading panel when the user hits the search button. I have a javascript function validate() on the button to validate if use enters search criteria, if I remove this javascript function from the button, the loading panel works fine. But if I add this function nothing happens when clicking search button even though the function return true.

the code is as below:
function validate() {
        if (document.getElementById("<%=txtQueryText.ClientID%>").value == "") {
            alert("Please enter search keyword!");
            document.getElementById("<%=txtQueryText.ClientID%>").focus();
            return false;
        }
        else return true;
    }
  
  
<AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="BtnSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGridResults" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
<asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:GUI,Button.Search %>" OnClick="btnSearch_Click"  OnClientClick="return validate()" />


Does it support client script button or what could be wrong.

Please help. Thanks.
Maria Ilieva
Telerik team
 answered on 03 Aug 2010
4 answers
133 views
Hi to all!
Some days ago I've downloaded Q2 2010 ASP.NET AJAX Trial and now I'm trying to do an example web app.
I've done all correctly and It function very good but now I have a problem. I use about 3/4 different Skins for page (Sitefinity for RadPanelBar, Windows7 for RadWindow, and my self created skins with stylebuilder). It's possible to do this? 
Because when I add RadWindow or RadEditor happens the... I can't describe the problem, I show you it on images.
        1) Telerik RadControls before (PanelBar, ToolTip)
         
        2) Controls after adding RadWindow or RadEditor
         

Thanks for your help and sorry for my english!
Michelle
Rumen
Telerik team
 answered on 03 Aug 2010
3 answers
262 views
Hi,
I'm kübra.Im Turkish.I using the radDatePicker in radgrid filterTemplate.I change radDatePicker DataFormatString={0:dd/MM/yyyy} and DateInput dateFormat={0:dd/MM/yyyy}.But it doesnt work.Because telerik doesnt support turkish dateformat.If I change dateInput DateFormat={0:yyyy/MM/dd}.It is work.I dont understand.why ıt doesnt support.

My Code Line

<

telerik:GridBoundColumn DataField="Start_Date" DataType="System.DateTime"

HeaderText="<%$Resources:GridColumnStartDateText %>" SortExpression="Start_Date" UniqueName="Start_Date"

 

 

DataFormatString="{0:dd/MM/yyyy}" >

 

 

<FilterTemplate>

 

 

<telerik:RadDatePicker ID="Start_DateDatePicker" runat="server" Width="100px" MinDate="07-04-1996" Skin="Sunset"

 

 

MaxDate="05-06-2020" ClientEvents-OnDateSelected="DateSelected" >

 

 

<DateInput DateFormat="dd/MM/yyyy"></DateInput>

 

 

</telerik:RadDatePicker>

 

 

<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

 

 

 

<script type="text/javascript">

 

 

function DateSelected(sender, args) {

var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

var date = FormatSelectedDate(sender.toString());

tableView.filter("Start_Date", date, "EqualTo");

}

function FormatSelectedDate(picker) {

var date = picker.get_selectedDate();

var dateInput = picker.get_dateInput();

var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat());

return formattedDate;

}

</script>

 

 

 

 

</telerik:RadScriptBlock>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

This code block doesnt work.It doesnt filter.My javascript doesnt work,changing

 

<DateInput DateFormat="dd/MM/yyyy"></DateInput>.Can you hepl me please ?İt is ımportant for me :(

How can I? 

 

 

 

Radoslav
Telerik team
 answered on 03 Aug 2010
1 answer
329 views
I have a web form with text boxes and ASP Validators. I wanted to add a RadAjaxLoadingPanel to give some feedback when the code was updating. The AjaxUpdatedControl disables all of the ASP Validators. The Javascript for the ASP Validators is not in the page source. The XmlHttpPanel_ServiceRequest is empty in the code-behind. If I comment out the AjaxUpdatedControls, the validators work!

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditUser.aspx.cs" Inherits="AdCacEdits.EditPages.EditUser" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    </telerik:RadStyleSheetManager>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanelControls" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <h2>
        Edit User: Edit User by User name or CAC ID Number
    </h2>
    <p>
        Enter the user name to edit the user's information:
        <asp:TextBox ID="TextBoxUserName" runat="server" Width="250px"></asp:TextBox>
         <asp:Button ID="ButtonLookupUser" runat="server" Text="Look Up" OnClick="ButtonLookupUser_Click" />
         in the
        <asp:Label ID="LabelDomain" runat="server" Text="Label"></asp:Label>
        domain.<br />
    </p>
    <asp:Panel ID="PanelNotFound" runat="server">
        <asp:Label ID="LabelNotFound" runat="server"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="PanelUserInfo" runat="server" Visible="True">
        <asp:Label ID="LabelAccountStatus" runat="server" Text="User Account Status"></asp:Label>
        <asp:ValidationSummary ID="ValidationSummaryUserUpdate" runat="server" ValidationGroup="ValidationGroupUserUpdate"
            CssClass="failureNotification" HeaderText="You must correct these errors before you can update the record." />
        <br />
        <table style="width: 100%;">
            <tr>
                <td class="tableQuarterLabels" width="25%">
                    Active Account
                </td>
                <td class="tableQuarterColumns" width="25%">
                    <asp:Label ID="LabelActiveStatus" runat="server"></asp:Label>
                </td>
                <td class="tableQuarterLabels" width="25%">
                    Organizational Unit
                </td>
                <td class="tableQuarterColumns" width="25%">
                    <asp:Label ID="LabelOu" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Employee #<asp:RegularExpressionValidator ID="RegularExpressionValidatorCac" runat="server"
                        ControlToValidate="TextBoxEmployeeId" ErrorMessage="CAC ID numbers must be exactly ten digits"
                        ValidationExpression="\b(\d){10}\b" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification" Display="Dynamic">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxEmployeeId" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels" colspan="2">
                    <asp:Label ID="LabelDistinguishedName" runat="server" Enabled="False" Text="Distinguished Name"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Last Name or Surname<asp:RegularExpressionValidator ID="RegularExpressionValidatorSurname"
                        runat="server" ControlToValidate="TextBoxSurname" ErrorMessage="Surnames must be just letters"
                        ValidationExpression="^[a-zA-Z-'.\s\,ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀ]{1,40}$"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorLastName" runat="server" ControlToValidate="TextBoxSurname"
                        ErrorMessage="Must enter a last name" ToolTip="Must enter a last name" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification">*</asp:RequiredFieldValidator>
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxSurname" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels">
                    Account Enabled
                </td>
                <td class="tableQuarterColumns">
                    <asp:CheckBox ID="CheckBoxAccountEnabled" runat="server" Text="User disabled if clear"
                        Enabled="False" />
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    First Name<asp:RequiredFieldValidator ID="RequiredFieldValidatorFirstName" runat="server"
                        ControlToValidate="TextBoxFirstName" ErrorMessage="Must enter a first name" ToolTip="Must enter a first name"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorFirstName" runat="server"
                        ControlToValidate="TextBoxFirstName" ErrorMessage="First names must be just letters"
                        ValidationExpression="^[a-zA-Z-'.\s\,ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀ]{1,40}$"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxFirstName" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels">
                    Middle Name or Inital<asp:RegularExpressionValidator ID="RegularExpressionValidatorMiddleName"
                        runat="server" ControlToValidate="TextBoxMiddleName" ErrorMessage="Middle names must be just letters"
                        ValidationExpression="^[a-zA-Z-'.\s\,ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀ]{1,40}$"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxMiddleName" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Display Name<asp:RegularExpressionValidator ID="RegularExpressionValidatorDisplayName"
                        runat="server" ControlToValidate="TextBoxDisplayName" ErrorMessage="Display names must be just letters"
                        ToolTip="Display names must be just letters" ValidationExpression="^[a-zA-Z-'.\s\,ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀ]{1,80}$"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxDisplayName" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Locked Out
                </td>
                <td class="tableQuarterColumns">
                    <asp:CheckBox ID="CheckBoxLockedOut" runat="server" Text="Locked if checked" Enabled="False" />
                </td>
                <td class="tableQuarterLabels">
                    Bad Password Count
                </td>
                <td class="tableQuarterColumns">
                    <asp:Label ID="LabelBadPasswordCount" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Password Last Changed
                </td>
                <td class="tableQuarterColumns">
                    <asp:Label ID="LabelPasswordLastChanged" runat="server"></asp:Label>
                </td>
                <td class="tableQuarterLabels">
                    Last Bad Password
                </td>
                <td class="tableQuarterColumns">
                    <asp:Label ID="LabelLastBadPassword" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Must Change Password
                </td>
                <td class="tableQuarterColumns">
                    <asp:CheckBox ID="CheckBoxMustChangePassword" runat="server" Text="Must change at next login"
                        Enabled="False" />
                </td>
                <td class="tableQuarterLabels">
                    Log On Count
                </td>
                <td class="tableQuarterColumns">
                    <asp:Label ID="LabelLogOnCount" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Last Log On
                </td>
                <td class="tableQuarterColumns">
                    <asp:Label ID="LabelLastLogOn" runat="server"></asp:Label>
                </td>
                <td class="tableQuarterLabels">
                    Last Log Off
                </td>
                <td class="tableQuarterColumns">
                    <asp:Label ID="LabelLastLogOff" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels" style="height: 27px">
                    Home Phone<asp:RegularExpressionValidator ID="RegularExpressionValidatorHomePhone"
                        runat="server" ControlToValidate="TextBoxHomePhone" ErrorMessage="Home phone format is wrong"
                        ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" ValidationGroup="ValidationGroupUpdateUser"
                        CssClass="failureNotification">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableQuarterColumns" style="height: 27px">
                    <asp:TextBox ID="TextBoxHomePhone" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels" style="height: 27px">
                    Work Phone<asp:RegularExpressionValidator ID="RegularExpressionValidatorWorkPhone"
                        runat="server" ControlToValidate="TextBoxWorkPhone" ErrorMessage="Work phone format is wrong"
                        ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableQuarterColumns" style="height: 27px">
                    <asp:TextBox ID="TextBoxWorkPhone" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Mobile Phone<asp:RegularExpressionValidator ID="RegularExpressionValidatorMobilePhone"
                        runat="server" ControlToValidate="TextBoxMobilePhone" ErrorMessage="Mobile phone format is wrong"
                        ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxMobilePhone" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels">
                    Other Phone
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorOtherPhone" runat="server"
                        ControlToValidate="TextBoxOtherPhone" ErrorMessage="Other phone format is wrong"
                        ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification" ToolTip="Other phone format is wrong">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxOtherPhone" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Fax Number<asp:RegularExpressionValidator ID="RegularExpressionValidatorFaxNumber"
                        runat="server" ControlToValidate="TextBoxFaxNumber" ErrorMessage="Fax phone format is wrong"
                        ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxFaxNumber" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels">
                    Initials<asp:RegularExpressionValidator ID="RegularExpressionValidatorInitials" runat="server"
                        ControlToValidate="TextBoxInitials" ErrorMessage="Only 2 or 3 letters allowed for initials"
                        ValidationExpression="^(\w){2,3}$" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxInitials" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Smart Card Required
                </td>
                <td class="tableQuarterColumns">
                    <asp:CheckBox ID="CheckBoxSmartCardRequired" runat="server" Text="For workstation login only"
                        Enabled="False" />
                </td>
                <td class="tableQuarterLabels">
                    Account Expires
                </td>
                <td class="tableQuarterColumns">
                    <telerik:RadDateInput ID="RadDateInputAccountExpires" runat="server" Culture="en-US"
                        DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" Width="100%">
                    </telerik:RadDateInput>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    User's URL<asp:RegularExpressionValidator ID="RegularExpressionValidatorUserUrl"
                        runat="server" ControlToValidate="TextBoxUserUrl" ErrorMessage="URL is not in a valid format"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxUserUrl" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Email<asp:RegularExpressionValidator ID="RegularExpressionValidatorEmail" runat="server"
                        ControlToValidate="TextBoxEmail" ErrorMessage="Must enter a valid email" ToolTip="Must enter a valid email"
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="ValidationGroupUserUpdate"
                        CssClass="failureNotification">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorEmail" runat="server" ControlToValidate="TextBoxEmail"
                        ErrorMessage="Must enter the user's email" ToolTip="Must enter the user's email"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification">*</asp:RequiredFieldValidator>
                       
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxEmail" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Company<asp:RegularExpressionValidator ID="RegularExpressionValidatorCompany" runat="server"
                        CssClass="failureNotification" ErrorMessage="Company must be valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxCompany"
                        ToolTip="Company must be valid characters" ValidationExpression="^[0-9a-zA-Z\s#.,:;]{1,80}$">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxCompany" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Department<asp:RegularExpressionValidator ID="RegularExpressionValidatorDepartment"
                        runat="server" CssClass="failureNotification" ErrorMessage="Department must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxDepartment"
                        ToolTip="Department must use valid characters" ValidationExpression="^[0-9a-zA-Z\s#.,:;]{1,80}$">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxDepartment" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Title<asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle" runat="server"
                        CssClass="failureNotification" ErrorMessage="Title must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxTitle"
                        ToolTip="Title must use valid characters" ValidationExpression="^[0-9a-zA-Z\s#.,:;]{1,80}$">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxTitle" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Description<asp:RegularExpressionValidator ID="RegularExpressionValidatorDescription"
                        runat="server" CssClass="failureNotification" ErrorMessage="Description must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxDescription"
                        ToolTip="Descriptions must use valid characters" ValidationExpression="^[0-9a-zA-Z\s#.,:;]{1,80}$">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxDescription" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    User Information<asp:RegularExpressionValidator ID="RegularExpressionValidatorUserInfo"
                        runat="server" CssClass="failureNotification" ErrorMessage="User Info must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxUserInfo"
                        ToolTip="User Info must use valid characters" ValidationExpression="^[0-9a-zA-Z\s#.,:;]{1,80}$">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxUserInfo" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Street<asp:RegularExpressionValidator ID="RegularExpressionValidatorStreet" runat="server"
                        CssClass="failureNotification" ErrorMessage="Street must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxStreet"
                        ToolTip="Street must use valid characters" ValidationExpression="^[0-9a-zA-Z\s#.,:;]{1,80}$">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableList" colspan="3">
                    <asp:TextBox ID="TextBoxStreet" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Street Second Line<asp:RegularExpressionValidator ID="RegularExpressionValidatorStreet2"
                        runat="server" CssClass="failureNotification" ErrorMessage="Second Street must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxStreet2"
                        ToolTip="Second Street must use valid characters" ValidationExpression="^[0-9a-zA-Z\s#.,:;]{1,80}$">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableQuarterColumns" colspan="3">
                    <asp:TextBox ID="TextBoxStreet2" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    City<asp:RegularExpressionValidator ID="RegularExpressionValidatorCity" runat="server"
                        CssClass="failureNotification" ErrorMessage="City must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxCity" ToolTip="City must use valid characters"
                        ValidationExpression="^[a-zA-Z-'.\s\,#ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀ]{1,80}$">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxCity" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels">
                    State<asp:RegularExpressionValidator ID="RegularExpressionValidatorState" runat="server"
                        CssClass="failureNotification" ErrorMessage="State must use valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxState"
                        ToolTip="State must use valid characters" ValidationExpression="^[a-zA-Z-'.\s\,#ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀ]{1,20}$">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxState" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableQuarterLabels">
                    Postal Code<asp:RegularExpressionValidator ID="RegularExpressionValidatorPostalCode"
                        runat="server" ControlToValidate="TextBoxPostalCode" ErrorMessage="Postal code is not in a valid US format"
                        ValidationGroup="ValidationGroupUserUpdate" CssClass="failureNotification" ValidationExpression="\d{5}(-\d{4})?">*</asp:RegularExpressionValidator>
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxPostalCode" runat="server" Width="100%"></asp:TextBox>
                </td>
                <td class="tableQuarterLabels">
                    Post Office Box<asp:RegularExpressionValidator ID="RegularExpressionValidatorPoBox"
                        runat="server" CssClass="failureNotification" ErrorMessage="PO Box must be valid characters"
                        ValidationGroup="ValidationGroupUserUpdate" ControlToValidate="TextBoxPoBox"
                        ToolTip="PO Box must be valid characters" ValidationExpression="^[0-9a-zA-Z-'.\s\,#]{1,20}$">*</asp:RegularExpressionValidator>
                       
                </td>
                <td class="tableQuarterColumns">
                    <asp:TextBox ID="TextBoxPoBox" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="ButtonUpdate" runat="server" Text="Update Active Directory" OnClick="ButtonUpdate_Click"
            ValidationGroup="ValidationGroupUserUpdate" />
    </asp:Panel>
    <telerik:RadXmlHttpPanel ID="radXmlHttpPanelControls" runat="server" LoadingPanelID="radAjaxLoadingPanelControls"
        OnServiceRequest="XmlHttpPanel_ServiceRequest">
  
    </telerik:RadXmlHttpPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ButtonLookupUser">
                <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="radXmlHttpPanelControls" LoadingPanelID="radAjaxLoadingPanelControls" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ButtonUpdate">
                <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="radXmlHttpPanelControls" LoadingPanelID="radAjaxLoadingPanelControls" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
Pero
Telerik team
 answered on 03 Aug 2010
1 answer
109 views
I am using the OnReordered event of a listbox to obtain the item index and the item value of an item being dragged and dropped.  The item index does correctly represent the place in the list that I dropped an item. If I drag and drop within the same list, everything works as expected. My issue is that when I drag and drop from another listbox, the item value reflected is not the value of the item being dropped, but the value of the last item in the listbox. Is this a bug or is this designed this way? Any ideas for a workaround? Thanks!
Protected Sub listAssigned_Reordered(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListBoxEventArgs) Handles listAssigned.Reordered
      For Each item In e.Items
          OrderNode(item.Value, item.Index)
       Next
   End Sub
Veronica
Telerik team
 answered on 03 Aug 2010
1 answer
103 views
Hi,

I am using RadComboBox with LoadOnDemand, is it possible to force the user to select a value from the drop down and prevent them from entering free text?

For example,

I have a RadComboBox for the country, I want to prevent user from entering asdf.

Regards,
Mark Liu
Simon
Telerik team
 answered on 03 Aug 2010
2 answers
168 views
I just sent this to the support department at Telerik before realizing that it would perhaps be more appropriate to post it here instead. Please forgive the fact that the text is phrased in a way that it was only ment to be read by Telerik personel.

I've been reading about about especially the RadGrid (I am a customer of yours) and have notices you mentioning the awesome performance of the RadGrid which is great. Now I am thinking, how should I as a developer make use of this in the best way, ie, how is it intended to be used. This is of course a question with many answers, but as far as I can see it, the whole idea, unless you have absurd amount of data, or maybe handle very large "blobs", must be that instead of writing stored procedures etc. that does the searching/filtering for you, you should load all the data into the RadGrid, and then let it do it's magic. What I mean is this, if you do a lot of filtering etc. before the data reach the RadGrid, much of the whole advantage with the great performance would be lost, wouldn’t it?

What I am thinking is kind of like this, making stored procedures (or similar) that takes a lot of parameters and does filtering/searching for you isn’t really that difficult, but it takes a lot of time to do, and then you have to make search forms for all these in your web pages on top of that. It would be much quicker if I could just say "Hey, the RadGrid says that it has great performance, and it also offers great filtering capabilities, let's use that instead and save a lot of time!". Is this the intended usage you had in mind when putting in a lot of effort in optimizing the RadGrid performance? Do you have some recommendations, best practices or similar on how to use it, when not to use it etc? Have you done any benchmarking or similar that I as a web developer can use when my DBA comes knocking on the door screaming about that I load all the data from the database?

I hope you understand my questions here, and I know there isn’t an exact answer to this, and that isn’t really what I am looking for, but rather more guidelines on how to use this in a good way!

Pavlina
Telerik team
 answered on 03 Aug 2010
1 answer
76 views
Hi,

I want to implement a module in which user can assign jobs to the Workers.I have all active workers list in RadGrid.
Want to assign unique job mean no other job can be assign to the same worker at the same time.
I want to drag worker from Left Side RadGridView and drop them on RadScheduler for their respective job.
I know this is possible but how to achieve it ???
No idea how to implement this scenario.
Please help me out if any one has already developed.

Pushkar
Sebastian
Telerik team
 answered on 03 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?