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

I am using RadUpload control. I am not able to type-in the File path or do a copy/paste the file path in the input area of the control.

Please help.

Regards,
Sudhanva
Bozhidar
Telerik team
 answered on 12 Dec 2011
0 answers
86 views
Hi,

I am using telerik rad combo box of version 2.7.2.0 in visual studio 2003.I am getting  error like:
"RadcomboBox: Server error in the ItemRequested event handler.press ok to view the result "
Please find attached error screen shot.
I analysed that it uses Load on demand property with ItemsRequested event.
Is this error occurs because of this reason?
I checked in other application, that application is built using .net 2.0 and it uses 2.8.1.0 telerik version.
This application not uses Load on demand property.
but in this application above error is not coming.
Hence i tried to using 2.8.1.0 version in visual studio 2003 application but it is not allowing me to add the RadCombobox.Net2 version in the visual studio 2003 application.

Does RadCombobox.Net2 version  2.8.1.0 supports visual studio 2003 application?

Please help me to come out of the above error marked in red.

Please do reply me  ASAP.

Thanks In Advance,
Namrata
Namrata
Top achievements
Rank 1
 asked on 12 Dec 2011
2 answers
97 views
In Edit form , I have two comboboxes : combobox1 & combobox2. On change of combobox1 value, I want to set combobox2 value. The problem is, I am not able to handle combobox1 selectedIndexChnaged event.

Can anyone give a code sample or pointer on how to achieve it? Thank you very much in advance.


Here is the ASPX code :

 <telerik:TreeListTemplateColumn DataField="PricingTypeName" UniqueName="PricingTypeName" HeaderText="PricingType" >
                 <ItemTemplate>
                 <%# Eval("PricingTypeName")%>
                 </ItemTemplate>
                 <EditItemTemplate>
                        <asp:DropDownList ID="combobox1" runat="server">
                        </asp:DropDownList>
                  </EditItemTemplate>
               
                 </telerik:TreeListTemplateColumn>

  <telerik:TreeListTemplateColumn DataField="PurchaseUnitofMeasureName" UniqueName="PurchaseUnitofMeasureName" HeaderText="PurchaseUnitofMeasure" >
                 <ItemTemplate>
                 <%# Eval("PurchaseUnitofMeasureName")%>
                 </ItemTemplate>
                 <EditItemTemplate>
                        <asp:DropDownList ID="combobox2" runat="server">
                        </asp:DropDownList>
                  </EditItemTemplate>
                
                 </telerik:TreeListTemplateColumn>


Kushal
Top achievements
Rank 1
 answered on 12 Dec 2011
3 answers
409 views
Hi,

I have followed your examples posted in other threads(http://www.telerik.com/community/forums/aspnet-ajax/grid/about-exporttopdf-of-radgrid.aspx) regarding this.  My code works locally, but on the server the pdf is still showing #### for Chinese characters.  Originally I thought the problem was because the font Arial Unicode MS was not installed on the server.  I had it installed and it's still not displaying correctly.  Thanks in advance.

Ryan
Daniel
Telerik team
 answered on 12 Dec 2011
1 answer
112 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
155 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
248 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.4K+ 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
143 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
193 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?