Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
I have a login Page,.
I need simulate 2 enters.

The first one : when user press Enter in userName --> set focus in Pass textbox
When user press in Pass -> simulate Enter (login)

I try, I it does nto work..


This is my code

Aspx

<%

 

@ Page Title="" Language="C#" MasterPageFile="~/UI/Home.Master" AutoEventWireup="true"

 

 

 

CodeBehind="Login.aspx.cs" Inherits="WebSearch.UI.Registration.Login" %>

 

<

 

 

asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

 

</

 

 

asp:Content>

 

<

 

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="loginPanel_DIV" LoadingPanelID="RadAjaxLoadingPanel1"/>

 

 

 

<telerik:AjaxUpdatedControl ControlID="pnlResetPass_DIV" LoadingPanelID="RadAjaxLoadingPanel" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="btnSave">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="loginPanel_DIV" LoadingPanelID="RadAjaxLoadingPanel1"/>

 

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="hlForgotPassword">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="pnlResetPass_DIV" LoadingPanelID="RadAjaxLoadingPanel1"/>

 

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

 

 

 

<div runat="server" ID="loginPanel_DIV">

 

 

 

<asp:Panel ID="loginPanel" runat="server">

 

 

 

 

<div class="containerRegistration" runat="server" >

 

 

 

 

<div class="titleRegistration">

 

 

 

<div class="lblTitle">

 

 

 

<asp:Label runat="server" ID="lblTitle" /> <asp:Label ID="lblLogOfftext" runat="server" CssClass="logOff"></asp:Label> </div>

 

 

 

</div>

 

 

 

<div class="loginContainer">

 

 

 

<div class="labelLogin">

 

 

 

<asp:Label runat="server" ID="lblLoginId" /></div>

 

 

 

<div class="textBoxLogin">

 

 

 

<asp:TextBox runat="server" ID="txtloginId" MaxLength="50" Width="200px" />

 

 

 

<asp:RequiredFieldValidator CssClass="validator" ControlToValidate="txtloginId" runat="server"

 

 

 

ErrorMessage="*" ValidationGroup="Login"></asp:RequiredFieldValidator>

 

 

 

 

</div>

 

 

 

<div class="clear">

 

 

 

</div>

 

 

 

<div class="labelLogin">

 

 

 

<asp:Label runat="server" ID="lblPass" /></div>

 

 

 

<div class="textBoxLogin">

 

 

 

<asp:TextBox runat="server" AutoPostBack="true" AutoCompleteType="None" ID="txtPass" MaxLength="50" TextMode="Password" Width="200px" />

 

 

 

<asp:RequiredFieldValidator CssClass="validator" ControlToValidate="txtPass" runat="server"

 

 

 

ErrorMessage="*" ValidationGroup="Login"></asp:RequiredFieldValidator>

 

 

 

<div class="clear">

 

 

 

</div>

 

 

 

<asp:CustomValidator ID="cvLoginId" runat="server" Display="Dynamic" ControlToValidate="txtPass"

 

 

 

CssClass="validator" OnServerValidate="cvLoginId_ServerValidate" ValidationGroup="Login"></asp:CustomValidator></div>

 

 

 

<div class="remember">

 

 

 

<asp:CheckBox runat="server" ID="chkRemember"></asp:CheckBox>

 

 

 

 

&nbsp;&nbsp;&nbsp;&nbsp;

 

 

 

 

<asp:LinkButton ID="hlForgotPassword" runat="server" OnClick="hlForgotPassword_Click" CausesValidation="true" ValidationGroup="Forgot"></asp:LinkButton>

 

 

 

 

</div>

 

 

 

<div class="buttonLogin" style="position: static">

 

 

 

<telerik:RadButton Width="40px" runat="server" ID="btnLogin" Skin="Vista" OnClick="btnLogin_Click" ValidationGroup="Login">

 

 

 

</telerik:RadButton>

 

 

 

<telerik:RadButton runat="server" Width="40px" ID="btnCancel" Skin="Vista">

 

 

 

</telerik:RadButton>

 

 

 

</div>

 

 

 

 

<div style="width: 100%; margin-left: 60%; margin-top:5%;">

 

 

 

<asp:Label ID="lblValidationText" Style="margin-top: 15px" CssClass="validator" runat="server"

 

 

 

Font-Italic="true"></asp:Label></div>

 

 

 

</div>

 

 

 

</div>

 

 

 

</asp:Panel>

 

 

 

</div>

 

 

 

 

<div id="pnlResetPass_DIV" runat="server">

 

 

 

<asp:Panel ID="pnlResetPass" runat="server">

 

 

 

<div class="containerRegistrationReset" runat="server" >

 

 

 

<div class="titleRegistration">

 

 

 

<div class="lblTitle">

 

 

 

<asp:Label runat="server" ID="lblReset" /></div>

 

 

 

</div>

 

 

 

<div style="width: 100%; margin-left: 10%">

 

 

 

<asp:Label ID="lblInformation" Style="margin-top: 15px" CssClass="validator" runat="server" Visible="false"

 

 

 

Font-Italic="true"></asp:Label></div>

 

 

 

<div class="loginContainer">

 

 

 

<div class="labelLogin">

 

 

 

<asp:Label runat="server" ID="lblUserId" /></div>

 

 

 

<div class="textBoxLogin">

 

 

 

<asp:TextBox runat="server" ID="txtUserId" MaxLength="50" Width="200px" />

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" CssClass="validator" ControlToValidate="txtUserId"

 

 

 

runat="server" ErrorMessage="*" ></asp:RequiredFieldValidator>

 

 

 

<br />

 

 

 

<asp:CustomValidator ID="cvExistLogin" runat="server" CssClass="validator" ControlToValidate="txtUserId"

 

 

 

OnServerValidate="cvExistLogin_ServerValidate" Display="Dynamic"></asp:CustomValidator>

 

 

 

 

</div>

 

 

 

<div class="clear"></div>

 

 

 

<div class="buttonLogin" style="position: static">

 

 

 

<telerik:RadButton Width="40px" runat="server" ID="btnReset" Skin="Vista" OnClick="btnReset_Click" >

 

 

 

</telerik:RadButton>

 

 

 

<telerik:RadButton runat="server" Width="40px" ID="btnCancelReset" Skin="Vista" OnClick="CancelReset_Click">

 

 

 

</telerik:RadButton>

 

 

 

</div>

 

 

 

 

</div><br />

 

 

 

<div style="width: 100%; margin-left: 60%">

 

 

 

<asp:Label ID="lblValidation" Style="margin-top: 15px" CssClass="validator" runat="server"

 

 

 

Font-Italic="true"></asp:Label></div>

 

 

 

<br />

 

 

 

 

</div>

 

 

 

</asp:Panel>

 

 

 

</div>

 

 

</

 

 

asp:Content>

 



ASPX.Cs

using

 

 

System;

 

using

 

 

System.Globalization;

 

using

 

 

System.Resources;

 

using

 

 

System.Web;

 

using

 

 

WebSearch.Components;

 

using

 

 

WebSearch.SecurityModel;

 

 

namespace

 

 

WebSearch.UI.Registration

 

{

 

 

public partial class Login : System.Web.UI.Page

 

{

#region

 

 

Properties&Variables

 

 

 

 

private string _culture;

 

 

 

private readonly smOrganization _organization = new smOrganization();

 

 

 

private ResourceManager _resources;

 

#endregion

#region

 

 

Events

 

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

 

if (Page.IsPostBack) return;

 

 

LoadSettings();

LoadLogin();

}

 

 

protected void Page_Init(object sender, EventArgs e)

 

{

GetInfo();

}

 

 

protected void btnReset_Click (object sender, EventArgs e)

 

{

 

 

if (!Page.IsValid) return;

 

_organization.User = _organization.GetUser(_organization.GetUser(txtUserId.Text));

_organization.SendPasswordChangeEmail();

lblInformation.Visible =

 

true;

 

}

 

 

protected void btnLogin_Click(object sender, EventArgs e)

 

{

LoginUser();

}

 

 

protected void cvLoginId_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)

 

{

_organization.User =

 

new smUser {Loginid = txtloginId.Text, Password = Encript.EncryptText(txtPass.Text)};

 

 

 

 

if (_organization.ExistLogin(txtloginId.Text, 0) == false || _organization.LoginUser() == false)

 

{

args.IsValid =

 

false;

 

}

 

 

else

 

{

args.IsValid =

 

true;

 

 

 

App.SetCurrentUserId(_organization.GetUser(txtloginId.Text));

 

}

 

}

 

 

 

protected void CancelReset_Click(object sender, EventArgs e)

 

{

cvExistLogin.Enabled =

 

false;

 

loginPanel.Visible =

 

true;

 

pnlResetPass.Visible =

 

false;

 

Response.Redirect(

 

"~/UI/Registration/Login.aspx");

 

}

 

 

protected void cvExistLogin_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)

 

{

args.IsValid = _organization.ExistLogin(txtUserId.Text, 0);

}

 

 

protected void hlForgotPassword_Click(object sender, EventArgs e)

 

{

cvExistLogin.Enabled =

 

true;

 

loginPanel.Visible =

 

false;

 

pnlResetPass.Visible =

 

true;

 

LoadSettingForgot();

}

 

 

protected void txtPass_OnTextChanged(object sender, EventArgs e)

 

{

LoginUser();

}

#endregion

 

#region

 

 

Method

 

 

 

private void LoginUser()

 

{

Page.Validate(

 

"Login");

 

 

 

if (!ValidateFailedUser(txtloginId.Text))

 

{

lblLogOfftext.Text = _resources.GetString(

 

"errorUser" , new CultureInfo(_culture));

 

RadAjaxManager1.Alert(_resources.GetString(

 

"errorUser" , new CultureInfo(_culture)));

 

 

 

return;

 

}

 

 

 

if (!Page.IsValid) return;

 

 

 

 

if (chkRemember.Checked)

 

{

 

 

HttpCookie authUser = Request.Cookies.Get("authUser");

 

 

 

if (authUser== null)

 

{

authUser =

 

new HttpCookie("authUser");

 

Response.Cookies[

 

"authUser"].Expires = DateTime.Now.AddDays(App.GetExpireDays());

 

authUser.Values.Add(

 

"authUserName", txtloginId.Text);

 

Response.Cookies.Add(authUser);

}

}

 

 

else

 

{

 

 

HttpCookie authUser = new HttpCookie("authUser") {Expires = DateTime.Now.AddDays(-1d)};

 

Response.Cookies.Add(authUser);

}

 

 

App.GetControls();

 

 

 

App.GetPersistenceTable();

 

Response.Redirect(

 

"~/UI/DocumentsList.aspx");

 

}

 

 

 

private bool ValidateFailedUser(string loginId)

 

{

 

 

return _organization.ValidateFailedUser(loginId);

 

}

 

 

 

private void LoadSettingForgot()

 

{

lblReset.Text = _resources.GetString(lblReset.ID,

 

new CultureInfo(_culture));

 

lblUserId.Text = _resources.GetString(lblLoginId.ID,

 

new CultureInfo(_culture));

 

 

}

 

 

private void LoadLogin()

 

{

 

 

HttpCookie authUser = Request.Cookies.Get("authUser");

 

 

 

if (authUser != null)

 

{

txtloginId.Text = authUser.Values[

 

"authUserName"];

 

}

}

 

 

private void LoadSettings()

 

{

lblTitle.Text = _resources.GetString(lblTitle.ID,

 

new CultureInfo(_culture));

 

lblLoginId.Text = _resources.GetString(lblLoginId.ID,

 

new CultureInfo(_culture));

 

lblPass.Text = _resources.GetString(lblPass.ID,

 

new CultureInfo(_culture));

 

btnLogin.Text = _resources.GetString(btnLogin.ID,

 

new CultureInfo(_culture));

 

btnCancel.Text = _resources.GetString(btnCancel.ID,

 

new CultureInfo(_culture));

 

chkRemember.Text = _resources.GetString(chkRemember.ID,

 

new CultureInfo(_culture));

 

cvLoginId.ErrorMessage = _resources.GetString(cvLoginId.ID,

 

new CultureInfo(_culture));

 

hlForgotPassword.Text = _resources.GetString(hlForgotPassword.ID,

 

new CultureInfo(_culture));

 

lblInformation.Text = _resources.GetString(lblInformation.ID,

 

new CultureInfo(_culture));

 

lblValidationText.Text = _resources.GetString(lblValidationText.ID,

 

new CultureInfo(_culture));

 

lblValidation.Text = _resources.GetString(lblValidationText.ID,

 

new CultureInfo(_culture));

 

cvExistLogin.ErrorMessage = _resources.GetString(cvExistLogin.ID,

 

new CultureInfo(_culture));

 

btnReset.Text = _resources.GetString(btnReset.ID,

 

new CultureInfo(_culture));

 

btnCancelReset.Text = _resources.GetString(btnCancelReset.ID,

 

new CultureInfo(_culture));

 

cvExistLogin.Enabled =

 

false;

 

pnlResetPass.Visible =

 

false;

 

 

 

if ( (Request.Cookies["authUser"] != null)) chkRemember.Checked = true;

 

 

 

if (Request.QueryString["L"] == "Off")

 

{

lblLogOfftext.Text = _resources.GetString(lblLogOfftext.ID,

 

new CultureInfo(_culture));

 

}

 

 

}

 

 

private void GetInfo()

 

{

_culture =

 

App.CurrentCulture();

 

_resources =

 

App.GetRegistrationResources("Login");

 

}

 

#endregion

 

}

}





Princy
Top achievements
Rank 2
 answered on 12 Dec 2011
3 answers
152 views
Hello,

I want to know how to access nested radgrid and controls from vb code.

my code is look like this:

<telerik:RadGrid ID="RadGrid1" >
    <MasterTableView >
        <NestedViewTemplate>
                <telerik:RadMultiPage >
                    <telerik:RadPageView >
                        <telerik:RadGrid ID="RadGrid2">
                            <MasterTableView >
                                <ItemTemplate>
                                        <asp:Label ID="Label1" />
                                </ItemTemplate>
                                <Columns>
                                    some code here..
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
        </NestedViewTemplate>
        <Columns>
          some code here..
      </Columns>
    </MasterTableView>
</telerik:RadGrid>

I need to access radgrid2 and label1.

Any Idea please?
Shinu
Top achievements
Rank 2
 answered on 12 Dec 2011
1 answer
242 views
hi

i am using window in one of my projects , and this is my following page with it's html ,i don't know why radopen  function is not working.
at the end i have sent you my web.config file.

Best Regards

-----------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
     <table style="width: 100%;">
                <tr>
                    <td id="DecoratedControlsContainer">

                        <script type="text/javascript">
                        //<![CDATA[
                            function openRadWin() {
                        
//                            var oWnd = $find("RadWindow1");
//                            var myApt = eventArgs.get_Appointment();
//                            oWnd.setUrl('http://www.telerik.com');
//                            oWnd.show();
radopen("http://www.telerik.com","RadWindow1");
                         // alert('test')
                        }
                        
                        function openPopUp()
                        {
                         window.open("http://www.telerik.com","WindowPopup","width=400px, height=400px, resizable");
                        }
                        
                        //]]>                                                                        
                        </script>
                        <button style="width: 150px; margin-bottom: 3px;" onclick="openRadWin(); return false;">open RadWindow</button><br style="clear:both" /><br style="clear:both" />
                    </td>
                    <td style="width: 50px;">
                        &nbsp;</td>
                    <td style="vertical-align: top; border-left: 1px solid #cccccc; padding-left: 40px;">
                        <button style="width: 170px; margin-bottom: 3px;" onclick="openPopUp(); return false;">open browser's popup</button><br style="clear:both" /><br style="clear:both" />
                    </td>
                </tr>
            </table>  </div>
    <telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default"
        InitialBehavior="None" NavigateUrl="http://www.telerik.com"
        VisibleOnPageLoad="True">
    </telerik:RadWindow>
    </form>
</body>
</html>
---------------------------------------------------------------------
Web.Config File
------
<?xml version="1.0"?>
<configuration>
    <configSections>
        <sectionGroup name="Miron.web">
            <section name="CompressorSettings" type="Miron.Web.MbCompression.SettingsConfigSection"/>
        </sectionGroup>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <appSettings>
        <!--<add key="DBNAME" value="Data Source=62.193.12.207;Initial Catalog=shahrdari;User ID=sa;Password=qwe1234"/>-->
        <!--<add key="DBNAMEShahryarnews" value="Data Source=62.193.12.207;Initial Catalog=shahryar;User ID=sa;Password=qwe1234"/>-->
        <add key="DBNAME" value="Data Source=pserver;Initial Catalog=Fanni_Herfei;User ID=sa;Password=Qwe123"/>
        <!--<add key="DBNAME" value="Data Source=server;Initial Catalog=pezeshki;User ID=sa;Password=Qwe1234"/>-->
        <add key="ExternalDBNAME" value="Data Source=192.168.1.1;Initial Catalog=Externalelib;User ID=sa;Password=1234"/>
        <add key="SiteUrl" value="http://itshams.ir"/>
        <add key="email" value="info@itshams.ir"/>
        <add key="Hejri" value="-1"/>
        <add key="SSlEmail" value="false"/>
    </appSettings>
    <system.net>
        <mailSettings>
            <smtp>
                <network host="mail.itshams.ir" port="25" userName="vosei@itshams.ir" password="09141091985"/>
            </smtp>
        </mailSettings>
        <!--<mailSettings>
            <smtp>
                <network host="smtp.gmail.com" port="587" userName="sazmane.amar@gmail.com" password="sazman5564" defaultCredentials="false"/>
            </smtp>
        </mailSettings>-->
    </system.net>
    <system.web>
        <httpRuntime maxRequestLength="409600" executionTimeout="300"/>
        <customErrors mode="On" defaultRedirect="Error.aspx?ErrorType=customErrors"/>
        <compilation debug="true" urlLinePragmas="true">
            <assemblies>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
        </compilation>
        <httpHandlers>
            <add verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler" validate="true"/>
            <add verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler" validate="false"/>
            <add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha"/>
            <add verb="*" type="ComponentArt.Web.UI.UploadProgressHandler,ComponentArt.Web.UI" path="ComponentArtUploadProgress.axd"/>
            <add verb="*" path="*js.axd" type="JavaScriptHandler"/>
            <add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpHandlers>
        <httpModules>
            <add type="ComponentArt.Web.UI.UploadModule,ComponentArt.Web.UI" name="ComponentArtUploadModule"/>
            <add type="CompressWebResource" name="CompressWebResource"/>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpModules>
        <authentication mode="Windows"/>
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls></pages></system.web>
    <Miron.web>
        <CompressorSettings reflectionAlloweded="false" optimizeHtml="true" daysInCahe="30" compressCSS="true" compressJavaScript="true" compressPage="false" compressWebResource="false" compressThirdParityScripts="false">
            <excludeTypes>
                <add key="image/gif"/>
                <add key="image/jpeg"/>
            </excludeTypes>
            <excludePaths>
                <!--<add key="~/DontCompressMe.aspx" />-->
            </excludePaths>
        </CompressorSettings>
    </Miron.web>
    <system.webServer>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/><add name="JsHandler" verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler, MbCompression" preCondition="integratedMode"/>
            <add name="CssHandler" verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler, MbCompression" preCondition="integratedMode"/>
            <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
            <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></handlers>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
            <remove name="ScriptModule"/>
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules></system.webServer>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
    <system.codedom>
            <compilers>
                <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                    <providerOption name="CompilerVersion" value="v3.5"/>
                    <providerOption name="WarnAsError" value="false"/></compiler>
                <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                    <providerOption name="CompilerVersion" value="v3.5"/>
                    <providerOption name="OptionInfer" value="true"/>
                    <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom></configuration>
Princy
Top achievements
Rank 2
 answered on 12 Dec 2011
5 answers
1.3K+ views
can the radwindow icon in upper left be removed? easily?

I've tried setting the iconurl to different values and "", icon still displays, would like it gone.
Princy
Top achievements
Rank 2
 answered on 12 Dec 2011
3 answers
135 views
Hi,

I want to show the Loading Panel when user click on the "print" button. For the printing function, i use the third party component "EO.PDF" to render the current page to PDF file. The pdf cannot show up when i click "Print" and when i click on the button again it showed error as follow.

Only items of type Telerik.Web.UI.IRadToolBarButton can initiate postbacks


The function works fine when i remove the loadingpanel. Please advise.

Cheers, 
Nelson

    <eo:ASPXToPDF ID="ASPXToPDF1" runat="server">
    </eo:ASPXToPDF>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rtbMain">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlContent" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelRenderMode="inline"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadToolBar ID="rtbMain" runat="server" Width="100%">
        <Items>
            <telerik:RadToolBarButton Text="Print" Value="Print" Width="80px">
            </telerik:RadToolBarButton>
         </Items>
    </telerik:RadToolBar>
    <asp:Panel ID="pnlContent" runat="server">
    </asp:Panel>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Top" Skin="Vista"  >
    </telerik:RadAjaxLoadingPanel>

Codebehind
    Protected Sub rtbMain_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles rtbMain.ButtonClick
         If e.Item.Value = "Print" Then
             EO.Pdf.Runtime.AddLicense( "XXXXXX")
            ASPXToPDF1.RenderAsPDF("Report.pdf")
        End If
End Sub

Cheers, 
Nelson
Nelson
Top achievements
Rank 1
 answered on 12 Dec 2011
12 answers
187 views
First of all I've gotta say that this control is awesome, thank you guys for delivering such useful stuff.

I'm wondering if there might be some way to replicate either javascript alert or radwindow radconfirm() functionality with this control, I mean, I want to block all background form until user click button inside the notification.

Any suggestions??

Kind regards.


Alex
SteveV
Top achievements
Rank 1
 answered on 12 Dec 2011
3 answers
132 views
Hello,

I am having a problem where webresources seems to override CSS classes that I set in code. What's strange is that the styling is working for an alternating item, but not a regular one. When I'm debugging I can see that the class is being set through code, and on the web page itself the item's CSS class reflects this change, but for a non-alternating item it doesn't work. What I am setting in CSS is the borders to none and a background color determined in code.

There is no explanation that I can find as to why this is happening; it seems rather random. I was developing and everything was working fine, and all of a sudden this started to happen without any changes to my controls library.

This also occurred a few weeks ago with a nested table header. CSS was set for the header, but webresources brute forced a background image into the CSS. I was able to fix this problem through code and style, but am unable to for the problem I'm posting about.

On a final note, the !Important style declaration doesn't have any impact.

Thanks for any help!
Ryan

Controls v2011.2.712.35

C# code:
if (item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem)
 {
    if (item.BackColor == Color.FromArgb(Int32.Parse("C7EAC7", System.Globalization.NumberStyles.HexNumber)))//GREEN
   {
    item.ChildItem.NestedTableViews[0].CssClass = "altDrawInfo build";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "C7EAC7";
    }
    else if (item.BackColor == Color.FromArgb(Int32.Parse("FCB9B8", System.Globalization.NumberStyles.HexNumber)))//RED
    {
    item.ChildItem.NestedTableViews[0].CssClass = "altDrawInfo asBuilt";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "FCB9B8";
    }
    else if (item.BackColor == Color.FromArgb(Int32.Parse("FFFFCC", System.Globalization.NumberStyles.HexNumber)))//ORANGE
    {
    item.ChildItem.NestedTableViews[0].CssClass = "altDrawInfo approval";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "FFFFCC";
    }
    else//DEFAULT
    {
    item.ChildItem.NestedTableViews[0].CssClass = "altDrawInfo";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "EEEEEE";
    }
}
else
{
    if (item.BackColor == Color.FromArgb(Int32.Parse("C7EAC7", System.Globalization.NumberStyles.HexNumber)))//GREEN
    {
    item.ChildItem.NestedTableViews[0].CssClass = "DrawInfo build";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "C7EAC7";
    }
    else if (item.BackColor == Color.FromArgb(Int32.Parse("FCB9B8", System.Globalization.NumberStyles.HexNumber)))//RED
    {
    item.ChildItem.NestedTableViews[0].CssClass = "DrawInfo asBuilt";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "FCB9B8";
    }
    else if (item.BackColor == Color.FromArgb(Int32.Parse("FFFFCC", System.Globalization.NumberStyles.HexNumber)))//ORANGE
     {
    item.ChildItem.NestedTableViews[0].CssClass = "DrawInfo approval";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "FFFFCC";
    }
    else//DEFAULT
    {
    item.ChildItem.NestedTableViews[0].CssClass = "DrawInfo";
    item.ChildItem.NestedTableViews[0].Style["background-color"] = "D8D8D8";
    }
}

Style code:
/* NON-ALTERNATING ROW */
 
.drawInfo /*  */
{
    background-color:#D8D8D8 !important;
    border-style:solid !important;
    border-color:#000000 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.drawInfo td /*  */
{
    background-color:#D8D8D8;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}
 
.drawInfo.build /* GREEN */
{
    background-color:#C7EAC7 !important;
    border-style:solid !important;
    border-color:#000000 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.drawInfo.build td /* GREEN */
{
    background-color:#C7EAC7 !important;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}
 
.drawInfo.asBuilt /* RED */
{
    background-color:#FCB9B8 !important;
    border-style:solid !important;
    border-color:#000000 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.drawInfo.asBuilt td /* RED */
{
    background-color:#FCB9B8 !important;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}
 
.drawInfo.approval /* ORANGE */
{
    background-color:#FFFFCC !important;
    border-style:solid !important;
    border-color:#000000 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.drawInfo.approval td /* ORANGE */
{
    background-color:#FFFFCC !important;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}
 
/* ALTERNATING ROW */
 
.altDrawInfo /*  */
{
    background-color:#EEEEEE !important;
    border-style:solid !important;
    border-color:#F7F7F7 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.altDrawInfo td /*  */
{
    background-color:#EEEEEE !important;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}
 
.altDrawInfo.build /* GREEN */
{
    background-color:#C7EAC7 !important;
    border-style:solid !important;
    border-color:#F7F7F7 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.altDrawInfo.build td /* GREEN */
{
    background-color:#C7EAC7 !important;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}
 
.altDrawInfo.asBuilt /* RED */
{
    background-color:#FCB9B8 !important;
    border-style:solid !important;
    border-color:#F7F7F7 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.altDrawInfo.asBuilt td /* RED */
{
    background-color:#FCB9B8 !important;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}
 
.altDrawInfo.approval /* ORANGE */
{
    background-color:#FFFFCC !important;
    border-style:solid !important;
    border-color:#F7F7F7 !important;
    border-width:0 2px 0 0 !important; /*top right bottom left*/
}
 
.altDrawInfo.approval td /* ORANGE */
{
    background-color:#FFFFCC !important;
    border-style:solid !important;
    border-color:#EDDA74 !important;
    border-width:0 0 0 0 !important; /*top right bottom left*/
}



Ryan
Top achievements
Rank 1
 answered on 11 Dec 2011
0 answers
70 views
One of the primary things I struggle with using Telerik controls is manipulating them via client-side code.  When I find a good solution I like to document it.  Here's an example of this, which I hope will help others: http://mwtech.blogspot.com/2011/12/retrieving-nested-aspnet-object-with.html
Robert
Top achievements
Rank 1
 asked on 10 Dec 2011
6 answers
312 views
Hi:
I was forcing an error (divide by zero).  My timestamp on that error is
Erik
Top achievements
Rank 2
 answered on 10 Dec 2011
2 answers
74 views
Currently, my grid displays Edit values vertically, like this:

Country Code: [Drop Down Control]
USD Denomination: [Text Control]
etc.

We feel it would be easier on the user if we just displayed text boxes horizontally as a single record with each edit value under the current value in the grid.

Additionally, we are going to have the user enter 4 related records all at once, which is another reason why a horizontal display makes more sense.
Elliott
Top achievements
Rank 2
 answered on 09 Dec 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?