Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
132 views
Hi,

I want to chance CurrentPageText text property by using c# code. i am using

    <telerik:RadDataPager ID="RadDataPager3" runat="server" PagedControlID="RadListView1"
                                                PageSize="9" Skin="">
                                                <Fields>
                                                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page:"
                                                        TotalPageText="of" SubmitButtonText="Go" TextBoxWidth="15" />
                                                </Fields>
                                            </telerik:RadDataPager>

code and now i want to change text of CurrentPageText, TotalPageText and SubmitButtonText by using C# code.

It can be feasible or not?

Thanks...
Tsvetina
Telerik team
 answered on 16 Sep 2011
1 answer
66 views
Hi Team Telerik,

Recently, I used a progress area for my page. I have a asp.net file upload control and have tied it up with a rad progress area.

There is a server side validation on my same page.

On submit, the server side validation needs to occur first and then the rad progress area needs to appear if the validation is Valid.

But instead, the progress area popup,it loads the file in the buffer and then it executes the server validation.

How can I resovle this?

Requesting you to reply ASAP, as we are due to go to production in a day or two.

Regards,
Siddesh Kapadi
Peter Filipov
Telerik team
 answered on 16 Sep 2011
2 answers
94 views
Hi

We have a RadTreeView registered as below:

<radT:RadTreeView ID="cRadTreeView" EnableViewState="true" style="Z-INDEX:999" Runat="server" BeforeClientClick="BeforeClickHandler"
	Checkboxes="true" DragAndDrop="true"></radT:RadTreeView>


I've been trying to put a fix in place to stop the tree refreshing back to the top after a Node has expanded. I am registering the NodeExpand event in the OnInit of the page and that event carries out the following code, is there a way for the tree to switch focus to the node that was previously expanded?


Guid expandedNodeID = new Guid(e.NodeClicked.Value);
			this.DataSource.ExpandNode(expandedNodeID);
			RadTreeNode node = this.GetTree(this.DataSource[expandedNodeID]);
			if(node.Nodes.Count > 0)
			{
				foreach(RadTreeNode child in node.Nodes)
				{
					e.NodeClicked.AddNode(child);
				}
			}
			e.NodeClicked.ExpandMode = ExpandMode.ClientSide;
Plamen
Telerik team
 answered on 16 Sep 2011
2 answers
65 views
Hi, in one of our site, the GIF image inside a RadAjaxLoadingPanel is stucked/stop animating when doing a long request.
It happens only in IE. What could be the reason?


Maria Ilieva
Telerik team
 answered on 16 Sep 2011
1 answer
67 views

Hi,

I´m trying to set the width of the filtertextboxes.

I have tried both in code behind and in the design properties.

But when i chacke the width of the textboxes the grid i not painted correctly. Everything thats visible on load disapears. The data is gone, but the grid is still there. If i drag the scrollbar the grid i repainted and the data is visible again.

I´m also using a theme i created with the RadGrid-Designer online.

Is there any solution to this?

Thanks...
Pavlina
Telerik team
 answered on 16 Sep 2011
1 answer
154 views
Dear sir,
This page radgrid with functionality working fine. but when i use loading panel in radgrid ,we can;t access radgrid pls help me.
Regards
padmanaban.

<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="manageuser.aspx.cs" Inherits="UserManagement_manageuser" %>
<%@ Register src="UserControls/manageuser.ascx" tagname="manageuser" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contentmenu" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlace" Runat="Server">    
 
<asp:UpdatePanel ID="updatePanel1" runat="server">
    <ContentTemplate>
    <uc1:manageuser ID="manageuser1" runat="server" />   
    </ContentTemplate>
</asp:UpdatePanel>


manageuser.ascx.cs:
-------------------------

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="manageuser.ascx.cs" Inherits="User_Management_UserControls_manage_user" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<table align="center" class="MainTable" width="95%" style="height: 100%">
    <tr>
        <td class="pad">
            <br />
            <asp:Label ID="LBErr" runat="server" Visible="false" SkinID="LabelErr"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="pad">
        </td>
    </tr>
    <tr>
        <td class="pad" valign="top">

            <table class="MainTable2" style="margin-top: -20px; margin-right: 0px;" align="center"
                id="add">
                <tr align="center">
                    <td align="center">
                                       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
       <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1" >
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />            
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel Skin="WebBlue" EnableSkinTransparency="true"  BackgroundPosition="Center"
    ID="RadAjaxLoadingPanel1" runat="server" />

                                <telerik:RadGrid Skin="Vista" AllowFilteringByColumn="true" OnNeedDataSource="Radgrid1_NeedDataSource"
                                    AutoGenerateColumns="false" EnableTheming="false" AllowPaging="true" PageSize="20"
                                    AllowSorting="true" ID="RadGrid1" runat="server" OnDeleteCommand="DeleteItem"
                                    Width="100%">
                                    <GroupingSettings CaseSensitive="false" />
                                    <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="Id">
                                        <CommandItemSettings AddNewRecordText="Add New User" ShowRefreshButton="false" />
                                        <Columns>
                                            <telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="EditCommandColumn" ButtonType="ImageButton">
                                                <ItemStyle CssClass="MyImageButton" />
                                            </telerik:GridEditCommandColumn>
                                            <telerik:GridBoundColumn DataField="id" ReadOnly="True" Visible="false" UniqueName="id">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="UserId" ReadOnly="True" Visible="false" UniqueName="UserId">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridTemplateColumn AutoPostBackOnFilter="true" FilterControlWidth="130px"
                                                CurrentFilterFunction="StartsWith" ShowFilterIcon="false" DataField="UserName"
                                                HeaderText="User Name" SortExpression="UserName" UniqueName="UserName">
                                                <ItemTemplate>
                                                    <%# Eval("UserName")%>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn AutoPostBackOnFilter="true" FilterControlWidth="130px"
                                                CurrentFilterFunction="StartsWith" ShowFilterIcon="false" DataField="First_Name"
                                                HeaderText="First Name" SortExpression="First_Name">
                                                <ItemTemplate>
                                                    <%# Eval("First_Name")%>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn AutoPostBackOnFilter="true" FilterControlWidth="130px"
                                                CurrentFilterFunction="StartsWith" ShowFilterIcon="false" DataField="Last_Name"
                                                HeaderText="Last Name" SortExpression="Last_Name">
                                                <ItemTemplate>
                                                    <%# Eval("Last_Name")%>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn FilterControlWidth="130px" AutoPostBackOnFilter="true"
                                                CurrentFilterFunction="StartsWith" ShowFilterIcon="false" DataField="Department"
                                                HeaderText="Department" SortExpression="Department">
                                                <ItemTemplate>
                                                    <%# Eval("Department")%>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Delete" ConfirmText="Are you sure you want to delete this User?"
                                                Text="Delete" CommandName="Delete">
                                                <ItemStyle CssClass="MyImageButton" />
                                            </telerik:GridButtonColumn>
                                        </Columns>
                                        <EditFormSettings EditFormType="WebUserControl" UserControlName="UserControls/CreateUser.ascx">
                                            <EditColumn UniqueName="EditCommandColumn1">
                                            </EditColumn>
                                        </EditFormSettings>
                                    </MasterTableView>
                                </telerik:RadGrid>
                   
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td class="pad">
            <div style="padding-top: 5px; padding-bottom: 10px;">
                <%--   <asp:Button ID="btnsubmit" runat="server" Text="Submit" OnClick="btnsubmit_Click" />--%>
                <asp:Label ID="Displaymsg" runat="server"></asp:Label>
            </div>
        </td>
    </tr>
</table>



CreateUser.ascx:
--------------------
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CreateUser.ascx.cs" Inherits="UserManagement_UserControls_CreateUser" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div id="ccc">
    <asp:UpdatePanel ID="UpdatePanel22" runat="server">
        <ContentTemplate>
            <table width="100%">
                <tr>
                    <td class="style1">
                        <telerik:RadTabStrip ID="RadTfabStrip1" runat="server" Skin="Vista" MultiPageID="RadMultiPage1"
                            OnTabClick="RadTfabStrip1_TabClick" Width="100%" BorderStyle="None" BackColor="#E3E3E3"
                            SelectedIndex="0" ReorderTabsOnSelect="True" ValidationGroup="Val1">
                            <Tabs>
                                <telerik:RadTab Text="User Info" Width="120px" Font-Names="Times New Roman" Font-Size="13px"
                                    EnableTheming="false" PageViewID="RadPageUerInfo" TabIndex="0">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Personal Info" Width="120px" Font-Names="Times New Roman" Font-Size="13px"
                                    EnableTheming="false" TabIndex="1" PageViewID="RadPagePersonalInfo" Selected="True">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" BackColor="White"
                            Width="100%" EnableTheming="false">
                            <telerik:RadPageView ID="RadPageUserInfo" Width="99%" runat="server" EnableTheming="false">
                                <table width="100%" cellpadding="7" cellspacing="7">
                                    <tr style="margin-left: 50px">
                                        <td class="td_createuser">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label6" runat="server" Font-Bold="true"
                                                Text="Access Details"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 40%">
                                            <table cellpadding="3" cellspacing="3" border="0px" style="margin-left: 20px; width: 91%;">
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblempid" runat="server" Text="Employee ID"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:Label ID="txtempid" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.id") %>'></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblacountstatus" runat="server" Text="Account Status"></asp:Label>
                                                    </td>
                                                    <td class="style10">
                                                        <asp:DropDownList ID="DRac" runat="server" Width="167px">
                                                            <asp:ListItem Selected="True" Text="Active" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="InActive" Value="0"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label2" runat="server" Text="User Name"></asp:Label>
                                                    </td>
                                                    <td class="style10">
                                                        <asp:TextBox ID="txtuname" runat="server" Width="164px" ValidationGroup="Val1" Text='<%# DataBinder.Eval( Container, "DataItem.UserName") %>'></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtuname"
                                                            ForeColor="Red" ErrorMessage="Required User Name!" Display="None" Text="*" ValidationGroup="Val1"></asp:RequiredFieldValidator>
                                                        <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" TargetControlID="RequiredFieldValidator2"
                                                            runat="server" PopupPosition="BottomLeft">
                                                        </cc1:ValidatorCalloutExtender>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblpwd" runat="server" Text="Password"></asp:Label>
                                                    </td>
                                                    <td class="style10">
                                                        <asp:TextBox ID="txtpwd" runat="server" TextMode="Password" Width="164px" ValidationGroup="Val1"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtpwd"
                                                            ForeColor="Red" ErrorMessage="Required Password!" Display="None" Text="*" ValidationGroup="Val1">
                                                        </asp:RequiredFieldValidator>
                                                        <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender211" TargetControlID="RequiredFieldValidator3"
                                                            runat="server" PopupPosition="BottomLeft">
                                                        </cc1:ValidatorCalloutExtender>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                    </td>
                                                    <td class="style10">
                                                        <cc1:PasswordStrength runat="server" ID="PasswordStrength1" TargetControlID="txtpwd"
                                                            MinimumSymbolCharacters="1" MinimumUpperCaseCharacters="1" PreferredPasswordLength="10"
                                                            CalculationWeightings="25;25;15;35" RequiresUpperAndLowerCaseCharacters="true"
                                                            TextStrengthDescriptions="Poor; Weak; Good; Strong; Excellent" HelpStatusLabelID="Label1"
                                                            StrengthIndicatorType="Text" HelpHandlePosition="AboveLeft" TextStrengthDescriptionStyles="textIndicator_poor; textIndicator_weak; textIndicator_good; textIndicator_strong; textIndicator_excellent">
                                                        </cc1:PasswordStrength>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width: 60%; vertical-align: top">
                                            <table cellpadding="3" cellspacing="3" border="0px" style="width: 105%">
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblapproved" runat="server" Text="Approved"></asp:Label>
                                                    </td>
                                                    <td class="style10" align="left">
                                                        <asp:RadioButtonList ID="RBapproved1" EnableTheming="false" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblenabled" runat="server" EnableTheming="false" Text="Enable"></asp:Label>
                                                    </td>
                                                    <td align="left" class="style10">
                                                        <asp:RadioButtonList ID="RBenabled1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label7" runat="server" Text="Hide users's post"></asp:Label>
                                                    </td>
                                                    <td class="style10">
                                                        <asp:RadioButtonList ID="RBhidepost1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td class="style9">
                                                        <div>
                                                            <asp:Label ID="Lblpath" runat="server" Visible="false" Text="Label"></asp:Label>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                        </td>
                                    </tr>
                                    <tr style="margin-left: 50px">
                                        <td class="td_createuser">
                                            &nbsp; &nbsp;&nbsp;
                                            <asp:Label ID="lblsitesitting" Font-Bold="true" runat="server" Text="Site Setting"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr style="border: 8px; border-width: 5px;">
                                        <td style="width: 50%;">
                                            <table cellpadding="6" cellspacing="6" border="0px" style="margin-left: 19px; width: 93%;">
                                                <tr>
                                                    <td class="style7">
                                                        <asp:Label ID="Enabledisply" runat="server" Text="Display Name"></asp:Label>
                                                    </td>
                                                    <td align="left" class="td_sites">
                                                        <asp:RadioButtonList ID="RBenabledisplay1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style7">
                                                        <asp:Label ID="collapsing" runat="server" Text="Collapsing Name"></asp:Label>
                                                    </td>
                                                    <td class="td_sites" align="left">
                                                        <asp:RadioButtonList ID="RBenablecollapsing1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style7">
                                                        <asp:Label ID="EnableEmoticons" runat="server" Text="Emoticons"></asp:Label>
                                                    </td>
                                                    <td class="td_sites" align="left">
                                                        <asp:RadioButtonList ID="RBenableemoticons1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style7" align="left">
                                                        <asp:Label ID="enabledisplay" runat="server" Text="DisplaySignatures"></asp:Label>
                                                    </td>
                                                    <td class="td_sites" align="left">
                                                        <asp:RadioButtonList ID="RBsinatures1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="50%">
                                            <table style="width: 102%">
                                                <tr>
                                                    <td class="td_createuser">
                                                        <asp:Label ID="DisplayiMemberslist" runat="server" Text="Display Memberslist"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:RadioButtonList ID="RBmemberlist1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="td_createuser">
                                                        <asp:Label ID="Notification" runat="server" Text="Conversation Notification"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:RadioButtonList ID="RBnotification1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="td_createuser">
                                                        <asp:Label ID="UserAvatars" runat="server" Text="User Avatars"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:RadioButtonList ID="RBuseravatars1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="td_createuser">
                                                        <asp:Label ID="CommentNotifications" runat="server" Text="Comment Notifications"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:RadioButtonList ID="RBcommentnotifications1" runat="server" RepeatDirection="Horizontal"
                                                            Width="150px">
                                                            <asp:ListItem Text=" Yes" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" No" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 25px">
                                            <asp:UpdatePanel ID="panelvalue" runat="server">
                                                <ContentTemplate>
                                                    <table style="margin-left: 20px;">
                                                        <tr>
                                                            <td class="style6">
                                                                <div>
                                                                    <asp:Label ID="Label5" runat="server" Font-Bold="true" Text="Persona List"></asp:Label>
                                                                </div>
                                                                <div style="height: 6px">
                                                                </div>
                                                                <div>
                                                                    <table>
                                                                        <tr>
                                                                            <td>
                                                                                <asp:TextBox ID="txtpersona" runat="server" TextMode="MultiLine" Width="294px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                                <div style="height: 6px">
                                                                </div>
                                                                <div>
                                                                    <asp:ImageButton ID="btTagselect" runat="server" OnClick="btTagselect_Click" ImageUrl="~/Images/Addrole8.png" />
                                                                </div>
                                                                <div style="height: 6px">
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="btTagselect" EventName="Click" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td>
                                            <table>
                                                <tr valign="top">
                                                    <td class="td_createuser1">
                                                        <div style="margin-top: -20px;">
                                                            <asp:Label ID="lbluploadavatar" runat="server" Text="Upload Avatar"></asp:Label>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div style="margin-left: 50px; margin-top: -20px;">
                                                            <asp:UpdatePanel ID="upade" runat="server">
                                                                <ContentTemplate>
                                                                    <%--    <asp:FileUpload ID="FileUpload1" runat="server" />--%>
                                                                    <asp:ImageButton ID="BtnPopUp" runat="server" OnClick="BtnPopUp_Click" ImageUrl="~/Images/upload.png" />
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="BtnPopUp" EventName="Click" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="td_createuser1">
                                                        <asp:Label ID="lblfilename1" Visible="false" runat="server" Text="Uploaded Photo"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <div style="margin-left: 50px;">
                                                            <asp:Label ID="Label134" Visible="false" runat="server" Width="100%"></asp:Label>
                                                            <asp:Label ID="lblfilename" Visible="false" runat="server" Width="100%"></asp:Label>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr style="margin-left: 50px">
                                        <td style="margin-left: 50px">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Label ID="Sigeditor" runat="server" Font-Bold="true" Text="SignatureEditor"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 15px">
                                        </td>
                                    </tr>
                                    <tr style="margin-left: 60px" align="center">
                                        <td colspan="2" align="center" style="margin-left: 60px">
                                            <telerik:RadEditor ID="RadDescription" runat="server" EnableTheming="false" Style="font-family: Arial;
                                                font-size: 11px; color: #000;" Width="95%" Height="200px" EnableResize="false">
                                                <Tools>
                                                    <telerik:EditorToolGroup>
                                                        <telerik:EditorTool Name="FindAndReplace" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="Undo" />
                                                        <telerik:EditorTool Name="Redo" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="Cut" />
                                                        <telerik:EditorTool Name="Copy" />
                                                        <telerik:EditorTool Name="Paste" ShortCut="CTRL+!" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="Bold" />
                                                        <telerik:EditorTool Name="Italic" />
                                                        <telerik:EditorTool Name="Underline" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="JustifyLeft" />
                                                        <telerik:EditorTool Name="JustifyCenter" />
                                                        <telerik:EditorTool Name="JustifyFull" />
                                                        <telerik:EditorTool Name="JustifyRight" />
                                                        <telerik:EditorTool Name="JustifyNone" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="ForeColor" />
                                                        <telerik:EditorTool Name="BackColor" />
                                                        <telerik:EditorTool Name="FontName" />
                                                        <telerik:EditorTool Name="RealFontSize" />
                                                    </telerik:EditorToolGroup>
                                                </Tools>
                                            </telerik:RadEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 25px">
                                        </td>
                                    </tr>
                                </table>
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPagePersonalInfo" runat="server" EnableTheming="false">
                                <table cellspacing="4" cellpadding="4" width="100%">
                                    <tr>
                                        <td colspan="2">
                                            <table style="margin-left: 10px; margin-top: 20px;">
                                                <tr>
                                                    <td>
                                                        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<asp:Label ID="Label8" runat="server" Font-Bold="true"
                                                            Text="Personal Details"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="margin-left: 0px">
                                            <table width="100%" style="margin-left: 27px; margin-top: 20px;">
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblfname" runat="server" Text="First Name"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtfname" ValidationGroup="Val2" runat="server" CssClass="txtbox_width"
                                                            EnableTheming="false" Text='<%# DataBinder.Eval( Container, "DataItem.First_Name") %>'></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtfname"
                                                            ForeColor="Red" ErrorMessage="Required First Name!" Text="*" Display="None" ValidationGroup="Val2"></asp:RequiredFieldValidator>
                                                        <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender222" TargetControlID="RequiredFieldValidator16"
                                                            runat="server" PopupPosition="BottomLeft">
                                                        </cc1:ValidatorCalloutExtender>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblmember" runat="server" Text="Member Since"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:Label ID="lblsince" runat="server" Text="Label" CssClass="txtbox_width"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblregion" runat="server" Text="Regional Code"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtregioncode" CssClass="txtbox_width" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.RegionalCode") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lbldistrict" runat="server" Text="District"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtdistrict" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.District") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblunit" runat="server" Text="Unicode"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtunicode" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.UnitCode") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label21" runat="server" Text="PrimaryJobTitle"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtprimaryjobtitle" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.PrimaryJobTitle") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label22" runat="server" Text="SecondaryJobTitle"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtsecjobtitle" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.SecondaryJobTiltle") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label27" runat="server" Text="User Data1"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtuserdata1" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.UserData1") %>'
                                                            CssClass="txtbox_width"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label25" runat="server" Text="Gender"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:RadioButtonList ID="Rbgender" runat="server" RepeatDirection="Horizontal" CssClass="txtbox_width"
                                                            CellPadding="1" CellSpacing="1" Width="150px">
                                                            <asp:ListItem Text=" Male" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text=" Female" Value="0"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr valign="top">
                                                    <td valign="top" class="style6">
                                                        <asp:Label ID="Label16" runat="server" Text="Alias"></asp:Label>
                                                    </td>
                                                    <td valign="top" class="td_createuser">
                                                        <asp:TextBox ID="txtalias" runat="server" CssClass="txtbox_width"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label18" runat="server" Text="District Code"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtdistrictcode" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.DistrictCode") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label20" runat="server" Text="Hire Date"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <telerik:RadDatePicker ID="Radhiredate" runat="server" Width="138px" MinDate="1/1/1930 12:00:00 AM">
                                                            <Calendar ID="Calendar2" runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
                                                                ViewSelectorText="x">
                                                            </Calendar>
                                                            <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                                            <DateInput ID="DateInput2" runat="server" DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy">
                                                            </DateInput></telerik:RadDatePicker>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label28" runat="server" Text="User Data3"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtuserdata3" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.UserData3") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td>
                                            <table style="margin-left: 20px; margin-top: -15px;">
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lbllname" Font-Size="Small" runat="server" Text="Last Name"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtlname" ValidationGroup="Val2" runat="server" CssClass="txtbox_width"
                                                            Text='<%# DataBinder.Eval( Container, "DataItem.Last_Name") %>'></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="txtlname"
                                                            ForeColor="Red" ErrorMessage="Required Last Name!" EnableClientScript="true"
                                                            Text="*" SetFocusOnError="true" ValidationGroup="Val2" Display="None"></asp:RequiredFieldValidator>
                                                        <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender23" PopupPosition="BottomLeft"
                                                            TargetControlID="RequiredFieldValidator20" runat="server">
                                                        </cc1:ValidatorCalloutExtender>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lbllastlogin" runat="server" Text="Last Login"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:Label ID="txtlastlogin" runat="server" CssClass="txtbox_width"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="lblregin" runat="server" Text="Region"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtregion" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.Region") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label14" runat="server" Text="Store Code"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtstorecode" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.StoreCode") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label15" runat="server" Text="Unit"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtunit" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.Unit") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label23" runat="server" Text="PrimaryJobCode"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtprimaryjobcode1" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.Pcode") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label24" runat="server" Text="SecondaryJobCode"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtsecjobcode2" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.Pcode") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Lbldepartment" runat="server" Text="Department"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtDepartment" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.Department") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label29" runat="server" Text="User Data2"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtuserdata2" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.UserData2") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label17" runat="server" Text="Birth Day"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <telerik:RadDatePicker ID="RadBirthday" CssClass="txtbox_width" runat="server" Width="138px"
                                                            MinDate="1/1/1930 12:00:00 AM">
                                                            <Calendar ID="Calendar1" runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
                                                                ViewSelectorText="x">
                                                            </Calendar>
                                                            <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                                            <DateInput ID="DateInput1" runat="server" DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy">
                                                            </DateInput></telerik:RadDatePicker>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style6">
                                                        <asp:Label ID="Label19" runat="server" Text="Store"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtstore" runat="server" CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.Store") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" height="20px" class="style6">
                                                        <asp:Label ID="Label26" runat="server" Text="Email"></asp:Label>
                                                    </td>
                                                    <td class="td_createuser">
                                                        <asp:TextBox ID="txtEmail" ValidationGroup="Val2" EnableTheming="false" runat="server"
                                                            CssClass="txtbox_width" Text='<%# DataBinder.Eval( Container, "DataItem.Email") %>'></asp:TextBox><br />
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator32" runat="server" ControlToValidate="txtEmail"
                                                            ForeColor="Red" ErrorMessage="Required EmailId!" Display="None" EnableClientScript="true"
                                                            SetFocusOnError="true" Text="*" ValidationGroup="Val2"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" Font-Bold="true"
                                                            ValidationGroup="Val2" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                            ControlToValidate="txtEmail" runat="server" Text="*" ErrorMessage="Enter vaild Email ID"
                                                            Display="None" ForeColor="Red"></asp:RegularExpressionValidator>
                                                        <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" TargetControlID="RequiredFieldValidator32"
                                                            runat="server" PopupPosition="BottomLeft">
                                                        </cc1:ValidatorCalloutExtender>
                                                        <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender33" TargetControlID="RegularExpressionValidator1"
                                                            runat="server" PopupPosition="BottomLeft">
                                                        </cc1:ValidatorCalloutExtender>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 10px;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="margin-left: 18px;">
                                            <table style="margin-left: 10px; margin-top: 20px;">
                                                <tr>
                                                    <td>
                                                        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<asp:Label ID="Label4" runat="server" Font-Bold="true"
                                                            Text="BioEditor"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 10px;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center" style="width: 100%">
                                            <telerik:RadEditor ID="bioeditor" runat="server" Style="font-family: Arial; font-size: 11px;
                                                color: #000;" EnableResize="false" Width="93%">
                                                <Tools>
                                                    <telerik:EditorToolGroup>
                                                        <telerik:EditorTool Name="FindAndReplace" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="Undo" />
                                                        <telerik:EditorTool Name="Redo" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="Cut" />
                                                        <telerik:EditorTool Name="Copy" />
                                                        <telerik:EditorTool Name="Paste" ShortCut="CTRL+!" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="Bold" />
                                                        <telerik:EditorTool Name="Italic" />
                                                        <telerik:EditorTool Name="Underline" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="JustifyLeft" />
                                                        <telerik:EditorTool Name="JustifyCenter" />
                                                        <telerik:EditorTool Name="JustifyFull" />
                                                        <telerik:EditorTool Name="JustifyRight" />
                                                        <telerik:EditorTool Name="JustifyNone" />
                                                        <telerik:EditorSeparator />
                                                        <telerik:EditorTool Name="ForeColor" />
                                                        <telerik:EditorTool Name="BackColor" />
                                                        <telerik:EditorTool Name="FontName" />
                                                        <telerik:EditorTool Name="RealFontSize" />
                                                    </telerik:EditorToolGroup>
                                                </Tools>
                                            </telerik:RadEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 10px;">
                                        </td>
                                    </tr>
                                </table>
                            </telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </td>
                </tr>
                <tr>
                    <td style="height: 10px;">
                    </td>
                </tr>
                <tr style="margin-left: 70px;">
                    <td class="style1">
                        <div style="margin-left: 21px">
                            <asp:ImageButton ID="btnUpdate" runat="server" ImageUrl="~/Images/Update1.png" OnClick="btnUpdate_Click"
                                ValidationGroup="Val1" CausesValidation="true" />
                            <asp:ImageButton ID="btnInsert" ValidationGroup="Val1" runat="server" ImageUrl="~/Images/Save.png"
                                OnClick="btnInsert_Click" CausesValidation="true" />
                            <asp:ImageButton ID="btnCancel" runat="server" CausesValidation="false" CommandName="Cancel"
                                ImageUrl="~/Images/Cancel.png" OnClick="btnCancel_Click" />
                        </div>
                        <asp:Label ID="lblavatar_name" runat="server" Text="Label" Visible="false"></asp:Label>
                        <asp:Label ID="lblpath1" runat="server" Text="Label" Visible="false"></asp:Label>
                        <asp:Label ID="path11" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="file11" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="Displaymsg" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <hr size="0.25" style="color: #ff9933; width: 100%;" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
<div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
            <cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="btnShowPopup"
                DropShadow="false" PopupControlID="pnlPopup" BackgroundCssClass="modalBackground">
            </cc1:ModalPopupExtender>
            <asp:Panel ID="pnlPopup" runat="server" Width="400" Style="height: 350; display: none">
                <div id="PopupDiv" style="text-align: left">
                    <div style="background-color: White; text-align: left">
                        <asp:Label ID="Label9" Font-Bold="true" Font-Size="Large" runat="server" Text="Select Roles"></asp:Label>
                        <asp:ImageButton ID="Image1" runat="server" ImageAlign="Right" ImageUrl="~/Images/close.gif"
                            OnClick="Image1_Click" />
                    </div>
                    <div style="border-width: thin; margin: 15px 15px 5px 5px;">
                        <hr width="100%" style="font-size: 2px; color: Black;" />
                        <asp:UpdatePanel ID="up123" runat="server" Visible="false">
                            <ContentTemplate>
                                <table cellpadding="4" cellspacing="4">
                                    <tr>
                                        <td>
                                            <div style="font-family: Arial; font-size: 12px;">
                                                Below is a list of Roles</div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:CheckBoxList ID="CBTags" runat="server" RepeatDirection="Vertical" RepeatColumns="2"
                                                CellPadding="5" CellSpacing="5">
                                            </asp:CheckBoxList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                        </td>
                                        <td>
                                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Save.png" OnClick="BttSave_Click" />
                                            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/Save.png" OnClick="ImageButton2_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton2" EventName="Click" />
                                <asp:PostBackTrigger ControlID="CBTags" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
<div>
    <asp:UpdatePanel ID="UP2" runat="server">
        <ContentTemplate>
            <asp:Button ID="BtnUploadPopup" runat="server" Style="display: none" />
            <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="BtnUploadPopup"
                PopupControlID="PanelUpload" CancelControlID="IBClose" BackgroundCssClass="modalBackground" />
            <asp:Panel ID="PanelUpload" runat="server" Width="550" Style="height: 400; display: none">
                <div id="PopupDiv_Createuser">
                    <div class="PopuInner">
                        <table width="95%" align="left">
                            <tr>
                                <td>
                                    <asp:Label ID="Label11" SkinID="LabelHead" runat="server" Style="font-size: Large;
                                        font-weight: bold;" Text="Select Photo"></asp:Label>
                                </td>
                                <td align="right">
                                    <asp:ImageButton runat="server" ID="IBClose" ImageUrl="~/Images/close.gif" OnClick="IBClose_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="height: 15px">
                    </div>
                    <div style="border-width: thin; margin: 15px 15px 5px 5px; width: 100%;">
                        <table width="100%" align="left">
                            <caption>
                                <hr style="font-size: 2px; color: Black;" width="100%" />
                                <tr>
                                    <td>
                                        <div>
                                            <asp:Label ID="Label12" runat="server" Text="Upload File" SkinID="Label1"></asp:Label>
                                        </div>
                                        <div>
                                            <asp:Label ID="Label10" runat="server" Text="Select a file to upload." SkinID="LabelS"></asp:Label>
                                        </div>
                                    </td>
                                    <td>
                                        <asp:FileUpload ID="FileUpload1" runat="server" />
                                    </td>
                                    <td style="margin-right: 40px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" colspan="3">
                                        <div style="padding-top: 3px; padding-bottom: 3px;">
                                            <asp:ImageButton ID="BtSaveUpload" ValidationGroup="URL" ImageUrl="~/Images/Save.png"
                                                runat="server" OnClick="BtSaveUpload_Click" />
                                            <asp:Label ID="LblUploadMag" runat="server" SkinID="LabelErr"></asp:Label>
                                            <asp:ValidationSummary ID="ValidationSummary3" runat="server" ValidationGroup="URL" />
                                        </div>
                                    </td>
                                </tr>
                            </caption>
                        </table>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="BtSaveUpload" />
        </Triggers>
    </asp:UpdatePanel>
</div>


     
</asp:Content>
Iana Tsolova
Telerik team
 answered on 16 Sep 2011
1 answer
89 views
hi
i use loading panel but not work it.
pls help me?

<telerik:RadAjaxLoadingPanel ID="LoadingPanel_" Runat="server">
        <div class="loading"
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Img_/loading4.gif" AlternateText="loading" />
       </div>
      </telerik:RadAjaxLoadingPanel>
      <telerik:RadAjaxManager ID="RadAjaxManager2" DefaultLoadingPanelID="LoadingPanel_" runat="server">
          <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Grid_">
                 <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid_"
                        LoadingPanelID="LoadingPanel_" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
           
      </telerik:RadAjaxManager>
Iana Tsolova
Telerik team
 answered on 16 Sep 2011
1 answer
126 views

Hi ,

          We are using the Raddock control in the application for the dashboards and facing the following problem:

          Scenario –

We have 2 controls placed in a Raddock object say A and B and some JavaScript code is written in B and a .js file is called. Javscript in control is rendered properly, but the file code is executed only at page load and not on Postback.


          We are with a sample demo but not able to attach it. '.rar' or'.zip' format is not supported in attachment.

           Telerik version used - 2010.3.1221.20

             Looking forward to your response.


Regards,
Grant
Slav
Telerik team
 answered on 16 Sep 2011
1 answer
283 views
Hi,
Am able to access the text box in the user control in the parent page.But when i try to change its css am getting "

Object doesn't support this property or method"


Error occurs in:
tb.get_styles().EnabledStyle[1] += " red_bgd";

what i tried:
var tb = document.getElementById(auditId);  or
var tb = $find(auditId);
I tried To get the control using $find() but it returns nulll. so i cant set style.




<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 

    
                <script type="text/javascript" language="javascript">

            function AssignValue() {
            var auditId=GetClientId('AuditUC1_tbAudit');
            var tb = document.getElementById(auditId);
           tb.get_styles().EnabledStyle[1] += " red_bgd";
           tb.updateCssClass();
            return false;
            }    
            
            function GetClientId(strid)
{
     var count=document.forms [ 0 ] . length ;
     var i = 0 ;
     var eleName;
     for (i = 0 ;  i < count ;  i++ )
     {
       eleName = document.forms [ 0 ] . elements [ i ] .id;
       pos=eleName.indexOf ( strid ) ;
       if(pos >= 0)  break;          
     }
    return eleName;
 }     
            
     
 
    }
    </script>
    </telerik:RadScriptBlock>
        <style type="text/css">
    .red_bgd{
    background-color:#F8E5E5;
   color:#A90000;    
}   
    </style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Name:<telerik:radtextbox ID="tbName" Runat="server"  
            EnableEmbeddedSkins="false">
        </telerik:radtextbox></div>
    <p>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </p>
    <p>
        <uc1:AuditUC ID="AuditUC1" runat="server" />
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click"  OnClientClick="AssignValue();"/>
    </p>
    </form>
</body>
</html>


---------------User control----------------------
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AuditUC.ascx.cs" Inherits="BasicTelerik.AuditUC" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

Audit Desc:
 <telerik:RadTextBox ID="tbAudit" Runat="server"  EnableEmbeddedSkins="false">
        </telerik:RadTextBox>
        <br />
        <br />
Tsvetina
Telerik team
 answered on 16 Sep 2011
3 answers
59 views
Hi,

i am using radclander with radschedular to traverse through the radschedular. On dataBound event of radschedular , I change the color of day of the radcalandar. however when i create recurrence appointment, it only colors the startday of the appointment, but i need to show every day on which appointment is recurring. here is my Code:

  protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
           RadCalendarDay radCalendarDay = new RadCalendarDay(RadCalendar1);
            radCalendarDay.Date = e.Appointment.Start;
            radCalendarDay.ItemStyle.CssClass = "DayWithAppointments";
            RadCalendar1.SpecialDays.Add(radCalendarDay);  
       }

on clicking month view i get color on all appointment days, but i need this functionality on day view also. pls reply.


Thanks
Ivana
Telerik team
 answered on 16 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?