Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
156 views
Hi,
We are using the teleric RAD upload control and progress bar for uploading files in our web site. We are an application using ADFS for authentication and are using the 

<add name="Identity Federation Services Application Authentication Module" type="System.Web.Security.SingleSignOn.WebSsoAuthenticationModule, System.Web.Security.SingleSignOn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null" />

When we use the same application with Windows Authentication the progress bar displays fine , but when we switch to ADFS , the progress bar stops appering.

We are using Windows Server 2008 and IIS 7 .

Let us know if something can be done about this.
Thanks,
Manish

Genady Sergeev
Telerik team
 answered on 04 May 2010
3 answers
123 views
hi my dear friends...
my RadAjaxManager Code Is Like This :
        <%--RAD AJAX MANAGER--%> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="RequestStartedOfRadAjaxManager1" 
            UpdatePanelsRenderMode="Inline"
            <ClientEvents OnRequestStart="RequestStartedOfRadAjaxManager1" /> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadComboBox1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID=" RadComboBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="ChechBox1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

i have some codes in SelectedIndexChange  of RadComboBox1...i am changing ChechBox1.Checked In It ...(AutoPostBack = True)
i have some codes in CheckChanged of ChechBox1...(AutoPostBack = True)
but i do not know why ChechBox1 Not Work...
when i click on it (for Making it to true or false), it disappears or Not Work...
==================================================================
there is this scenario about buttons ...
when they are in RadAjaxManager (Update) they do not work...
i know this is not about RadAjaxManager / but can u lead me to solve this?
thanks a lot


Maria Ilieva
Telerik team
 answered on 04 May 2010
7 answers
270 views



Hi,


My requirement is to call the RadWindow - specifically RadAlert from server-side. I can achieve the same using the following code:

 Dim radalertscript As String = "<script language='javascript'>function f(){radalert('Duplicate Contract Found - Contract Selection Failed', 350, 150);};</script>"
   Me.Page.ClientScript.RegisterStartupScript(Page.GetType(), "radalert", radalertscript)

But my problem is when I invoke the above code after doing a __doPostBack() from client-side it is not working, the radAlert is not at all shown, where am i doing wrong, could you provide me with an idea?

-Liji Gilesh 
Liji Jose
Top achievements
Rank 1
 answered on 04 May 2010
1 answer
80 views
Hi,
I have a .aspx page, inside that I am using a data list for listing all the products based on some categories listed inside a guided navigation. while changing the category in the guided navigation, the datalist will update. This datalist and guided navigation is using 

RadAjaxManagerProxy for updating. This is working fine, but my issue is inside this page I am using a custom paging, and that pager links are not inside RadAjaxManagerProxy, means while changing the pager, entire page will refresh, because of this pager links are not inside the RadAjaxManagerProxy, datalist is not updating.
Can anybody please help me out to solve this issue?

Thanks & Regards,
Dony Jose Augustine

Iana Tsolova
Telerik team
 answered on 04 May 2010
1 answer
77 views



using System;  
using System.Collections;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Data;  
using System.Data.Sql;  
using System.Data.SqlClient;  
using System.Diagnostics;  
using System.Transactions;  
using Infragistics.WebUI.UltraWebGrid;  
using Infragistics.WebUI.UltraWebNavigator;  
using Infragistics.WebUI.WebDataInput;  
using Telerik.Web.UI;  
 
namespace CharityCheck  
{  
    public partial class Registrations : CharityCheck.MyPage//X.Web.UI.PersistentStatePage  
    {  
        int m_nType = -1;  
        String m_strMemberStatus = "";  
 
        protected void Page_Load(object sender, EventArgs e)  
        {  
            Master.Menu.MenuItemClicked += new MenuItemClickedEventHandler(Menu_MenuItemClicked);  
 
            m_strMemberStatus = Session["Registrations:MemberStatus"].ToString();  
            m_nType = Convert.ToInt32(Session["Registrations:Type"]);  
            Master.Heading = String.Format("{0} ({1})",   
                                        Session["Registrations:Heading"].ToString(),  
                                        m_strMemberStatus);  
 
            if (!IsPostBack || Session["MenuSelected"] != null)  
            {  
                if (Session["Registrations:SearchBy"] != null)  
                {  
                    WebTextEdit1.Text = Session["Registrations:SearchBy"].ToString();  
                    checkBoxExact.Checked = Convert.ToBoolean(Session["Registrations:Exact"]);  
                    RadComboBoxSearchBy.SelectedValue = Session["Registrations:Search"].ToString();  
                    RadGrid1.DataSourceID = Session["Registrations:DataSourceID"].ToString();  
                    RadGrid1.DataBind();  
                }  
                Session["MenuSelected"] = null;  
                Session["Registrations:SearchBy"] = null;  
                Session["Registrations:Exact"] = null;  
                Session["Registrations:Search"] = null;  
                Session["Registrations:DataSourceID"] = null;  
            }  
        }  
 
        void Menu_MenuItemClicked(object sender, WebMenuItemEventArgs e)  
        {  
            if (e.Item.Text == "Back")  
            {  
                Session["Programmatic"] = true;  
                Response.Redirect("/Admin/AdminDefault.aspx");  
            }  
        }  
 
        protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)  
        {  
            GridDataItem dataItem = e.Item as GridDataItem;  
            dataItem.Selected = true;  
            int nID = Convert.ToInt32(dataItem["ID"].Text);  
            CellClick(e.CommandName, nID, e);  
        }  
 
        protected void CellClick(string strName, int nID, Telerik.Web.UI.GridCommandEventArgs e)  
        {  
            switch (strName)  
            {  
                case "Profile":  
                    Session["Registrations:SearchBy"] = WebTextEdit1.Text.Trim();  
                    Session["Registrations:Exact"] = checkBoxExact.Checked;  
                    Session["Registrations:DataSourceID"] = RadGrid1.DataSourceID;  
                    Session["Registrations:Search"] = RadComboBoxSearchBy.SelectedValue;  
                    switch (m_nType)  
                    {  
                        case 0:     // Charities  
                        case 1:     // Professional Fundraisers  
                            Session["Programmatic"] = true;  
                            Session["ProfessionalFundraiserGeneralInfo:CompanyID"] = nID;  
                            Session["ProfessionalFundraiserGeneralInfo:Type"] = Utility.GetType(m_nType);  
                            Response.Redirect("~/Admin/ProfessionalFundraiserGeneralInfo.aspx");  
                            //RedirectSavingPageState("~/Admin/ProfessionalFundraiserGeneralInfo.aspx");  
                            break;  
                        case 2:     // Casino Operators  
                            Session["Programmatic"] = true;  
                            Session["CasinoGeneralInfo:CompanyID"] = nID;  
                            Response.Redirect("~/Admin/CasinoGeneralInfo.aspx");  
                            //RedirectSavingPageState("~/Admin/CasinoGeneralInfo.aspx");  
                            break;  
                        case 3:     // Lottery Operators  
                            Session["Programmatic"] = true;  
                            Session["LotteryGeneralInfo:CompanyID"] = nID;  
                            Response.Redirect("~/Admin/LotteryGeneralInfo.aspx");  
                            //RedirectSavingPageState("~/Admin/LotteryGeneralInfo.aspx");  
                            break;  
                        case 4:     // Awareness Publishers  
                            Session["Programmatic"] = true;  
                            Session["PublishersGeneralInfo:CompanyID"] = nID;  
                            Response.Redirect("~/Admin/PublishersGeneralInfo.aspx");  
                            //RedirectSavingPageState("~/Admin/PublishersGeneralInfo.aspx");  
                            break;  
                        case 5:     // Telemarketers  
                            Session["Programmatic"] = true;  
                            Session["TelemarketingGeneralInfo:CompanyID"] = nID;  
                            Response.Redirect("~/Admin/TelemarketingGeneralInfo.aspx");  
                            //RedirectSavingPageState("~/Admin/TelemarketingGeneralInfo.aspx");  
                            break;  
                        case 6:     // Business  
                            Session["Programmatic"] = true;  
                            Session["BusinessGeneralInfo:CompanyID"] = nID;  
                            Response.Redirect("~/Admin/BusinessGeneralInfo.aspx");  
                            //RedirectSavingPageState("~/Admin/BusinessGeneralInfo.aspx");  
                            break;  
                        case 7:     // Residential  
                            Session["Programmatic"] = true;  
                            Session["ResidentialGeneralInfo:CompanyID"] = nID;  
                            Response.Redirect("~/Admin/ResidentialGeneralInfo.aspx");  
                            //RedirectSavingPageState("~/Admin/ResidentialGeneralInfo.aspx");  
                            break;  
                    }  
                    break;  
                case "Report":  
                    break;  
            }  
        }  
 
        protected void RadGrid1_DeleteCommand(object source, GridCommandEventArgs e)  
        {  
            GridDataItem dataItem = e.Item as GridDataItem;  
            dataItem.Selected = true;  
            int nID = Convert.ToInt32(dataItem.GetDataKeyValue("ID"));  
 
            using (TransactionScope scope = new TransactionScope())  
            {  
                using (CharityCheckEntities context = new CharityCheckEntities())  
                {  
                    FundraisingActivity.DeleteByCompanyID(nID, context);  
                    PublisherFundraiserActivity.DeleteByCompanyID(nID, context);  
                    TelemarketingBusinessActivity.DeleteByCompanyID(nID, context);  
                    CasinoFundraisingActivity.DeleteByCompanyID(nID, context);  
                    LotteryFundraisingActivity.DeleteByCompanyID(nID, context);  
                    IncomeStatement.DeleteByCompanyID(nID, context);  
                    BalanceSheet.DeleteByCompanyID(nID, context);  
                    StatementOfCashFlow.DeleteByCompanyID(nID, context);  
                    SolicitantNotes.DeleteByCompanyID(nID, context);  
                    BusinessRecommendations.DeleteByCompanyID(nID, context);  
                    JobPostings.DeleteByCompanyID(nID, context);  
                    Files.DeleteByCompanyID(nID, context);  
                    RequestedReports.DeleteByCompanyID(nID, context);  
                    SponsoredCharitableReports.DeleteByCompanyID(nID, context);  
                    Company.DeleteByID(nID, context);  
                    context.SaveChanges();  
 
                    scope.Complete();  
                }  
            }  
        }  
 
        protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)  
        {  
            String strSearch = WebTextEdit1.Text.Trim();  
            String strType = Utility.GetType(m_nType);  
 
            CharityCheckEntities entities = new CharityCheckEntities();  
            var data = from company in entities.CompanySet  
                       from user in entities.UserSet  
                       where company.ID == user.CompanyID &&  
                             company.MemberStatus == m_strMemberStatus &&  
                             company.Type == strType &&  
                            ((RadComboBoxSearchBy.SelectedValue == null || RadComboBoxSearchBy.SelectedValue == "Name")  
                               ? ((strSearch.Length != 0)  
                                    ? checkBoxExact.Checked  
                                        ? company.CompanyName == strSearch  
                                        : company.CompanyName.StartsWith(strSearch)  
                                    : true)  
                               : ((strSearch.Length != 0)  
                                    ? checkBoxExact.Checked  
                                        ? user.MemberID == strSearch  
                                        : user.MemberID.StartsWith(strSearch)  
                                    : true))  
                       select new 
                       {  
                           company.ID,  
                           company.CompanyName,  
                           RegistrationDate=company.RegistrationDate,  
                           user.Phone,  
                           user.FullName,  
                           company.Type,  
                       };  
            e.Result = data;  
            e.Arguments.TotalRowCount = data.Count();  
        }  
 
        protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)  
        {  
 
        }  
    }  
}  
 
<%@ Page Title="" Language="C#" MasterPageFile="~/NestedMasterPage2.master" AutoEventWireup="true" CodeBehind="Registrations.aspx.cs" Inherits="CharityCheck.Registrations" %> 
<%@ MasterType virtualpath="~/NestedMasterPage2.master" %> 
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> 
<%@ Register tagprefix="igtxt" namespace="Infragistics.WebUI.WebDataInput" Assembly="Infragistics35.WebUI.WebDataInput.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %> 
<%@ Register tagprefix="igcmbo" namespace="Infragistics.WebUI.WebCombo" Assembly="Infragistics35.WebUI.WebCombo.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %> 
<%@ Register tagprefix="ig" namespace="Infragistics.Web.UI.ListControls" Assembly="Infragistics35.Web.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %> 
<%@ Register tagprefix="iglist" namespace="Infragistics.Web.UI.ListControls" Assembly="Infragistics35.Web.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
        <script type="text/javascript" id="igClientScript1">  
            var RadGrid1;  
 
            function GetGridObject(sender, eventArgs) {  
                RadGrid1 = sender;  
            }  
            function webImageButtonSearch_Click(oButton, oEvent) {  
                RadGrid1.get_masterTableView().rebind();  
            }  
        </script> 
    </telerik:RadCodeBlock> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"   
        onajaxrequest="RadAjaxManager1_AjaxRequest">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="webImageButtonSearch">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="webImageButtonSearch" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
    <asp:Panel ID="Panel1" runat="server">  
        <table> 
            <tr> 
                <td valign="middle">  
                    <asp:Label ID="Label1" runat="server" Text="Search By:" CssClass="aLabel"></asp:Label> 
                </td> 
                <td valign="middle">  
                    <telerik:RadComboBox ID="RadComboBoxSearchBy" runat="server" width="90px" 
                        MarkFirstMatch="True"   
                        Skin="Vista" TabIndex="1" CausesValidation="False"   
                        ToolTip="Choose how to search, either by Name or by Member ID." > 
                        <Items> 
                            <telerik:RadComboBoxItem runat="server" Text="Name" Value="Name" /> 
                            <telerik:RadComboBoxItem runat="server" Text="Member ID" Value="Member ID" /> 
                        </Items> 
                    </telerik:RadComboBox> 
                </td> 
                <td valign="middle">  
                    <igtxt:WebTextEdit ID="WebTextEdit1" runat="server" Width="360px" TabIndex="2" ToolTip="Enter the criteria to search by.">  
                    </igtxt:WebTextEdit> 
                </td> 
                <td> 
                    <igtxt:WebImageButton ID="webImageButtonSearch" runat="server"   
                        ImageDirectory="~/Images"    
                        Text="Search" CausesValidation="False" TabIndex="3"   
                        ToolTip="Click this button to start the search." AutoSubmit="False" > 
                        <ClientSideEvents Click="webImageButtonSearch_Click" /> 
                        <Appearance> 
                            <Image Url="../Images/Search-16x16.png" /> 
                        </Appearance> 
                    </igtxt:WebImageButton> 
                </td> 
                <td> 
                    <asp:CheckBox ID="checkBoxExact" runat="server" Text="Exact"   
                        TextAlign="Left" CssClass="aCheckBox" TabIndex="4" ToolTip="Checking this will cause the search to find the information exactly the way it was typed. Otherwise, the search will find anything that contains the criteria." /> 
                </td> 
            </tr> 
        </table> 
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"   
            Skin="Office2007" GridLines="None"   
            onitemcommand="RadGrid1_ItemCommand" AutoGenerateColumns="False"   
            AllowAutomaticDeletes="True" 
            ondeletecommand="RadGrid1_DeleteCommand"   
            DataSourceID="LinqDataSource1" > 
            <MasterTableView DataKeyNames="ID" DataSourceID="LinqDataSource1" > 
                <Columns> 
                    <telerik:GridBoundColumn DataField="CompanyName" DefaultInsertValue=""   
                        HeaderText="Company Name" SortExpression="CompanyName"   
                        UniqueName="CompanyName" > 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="FullName" DefaultInsertValue=""   
                        HeaderText="Contact Name" SortExpression="FullName"   
                        UniqueName="FullName" > 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Phone" DefaultInsertValue="" 
                        HeaderText="Phone" SortExpression="Phone"   
                        UniqueName="Phone" > 
                    </telerik:GridBoundColumn> 
                    <telerik:GridDateTimeColumn DataField="RegistrationDate" DefaultInsertValue="" 
                        HeaderText="Registration Date" ReadOnly="True" SortExpression="RegistrationDate"   
                        DataFormatString="{0:d}" 
                        UniqueName="RegistrationDate" > 
                        <HeaderStyle Width="110px" /> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Profile"   
                        ImageUrl="~/Images/Profile-16x16.png" Text="Go to the General Information Page" UniqueName="Profile">  
                        <HeaderStyle Width="20px" /> 
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
                    </telerik:GridButtonColumn> 
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Reports"   
                        ImageUrl="~/Images/Reports-16x16.png" Text="Reports" UniqueName="Reports">  
                        <HeaderStyle Width="20px" /> 
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
                    </telerik:GridButtonColumn> 
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"   
                        ImageUrl="~/Images/Delete-16x16.png" Text="Delete this company" UniqueName="Delete" 
                        ConfirmText="Delete this company?" ConfirmDialogType="RadWindow"   
                        ConfirmTitle="Delete">  
                        <HeaderStyle Width="20px" /> 
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
                    </telerik:GridButtonColumn> 
                    <telerik:GridBoundColumn DataField="ID" DefaultInsertValue="" Visible="false" 
                        HeaderText="ID" SortExpression="ID" UniqueName="ID"   
                        DataType="System.Int32" ReadOnly="True">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings>    
                <Selecting AllowRowSelect="true" />    
                <selecting allowrowselect="True" /> 
                <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
            </ClientSettings>    
            <PagerStyle Position="TopAndBottom" /> 
        </telerik:RadGrid> 
    </asp:Panel> 
 
    <asp:LinqDataSource ID="LinqDataSource1" runat="server"   
        AutoPage="False" ContextTypeName="CharityCheck.CharityCheckEntities"   
        onselecting="LinqDataSource1_Selecting"   
        TableName="CompanySet">  
    </asp:LinqDataSource> 
</asp:Content> 
 

I am getting this error in the debugger when I click on one of the paging items on the grid.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

I have tried a lot of things and looked the demos for clues but I have no idea where the problem is. A RadScriptManager is in the main master page which NestedMasterPage2 inherits from.

Does anyone have any idea why this happening? I am using VS2010 and the project is set to .NET 3.5.
Veli
Telerik team
 answered on 04 May 2010
1 answer
97 views


Hi,

I am using RadFormdecorator with Skin property set to "Web20". My Browser is IE 6. It shows a strange behaviour; the font color is Black(of the button),  whereas in IE 8, it is White in color.

What could be reason for this strange behaviour? Is this a known issue , is there any solution for this problem???

I am attaching the two files one in IE 6 and another in IE 8. Check the Submit form button in the attached files to find the difference.
Bozhidar
Telerik team
 answered on 04 May 2010
2 answers
92 views
Hi guys,

I had a bit of a look in the forums, but I'm not really sure what to search for. I have a RadGrid connected to a custom DataSourceControl. When using filtering it retrieves EVERY record from the database, which is currently quite expensive as the data is coming across a remoting channel.

Is there anyway to get the radgrid to show the filter items, but to pass the resulting filter expression to my custom DataSourceControl to do the actual processing at the database end?

Any links related to this and/or to manual filtering with RadGrid would be helpful.

Thanks,
Veli
Telerik team
 answered on 04 May 2010
6 answers
240 views
hi

is there any method to remove the annoying resizing thing of the radsplitter when
my page load?
btw it  master page..
here is my code:

<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Main.master.vb" Inherits="GRC30.Main" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head id="Head1" runat="server"
    <title>Xyou</title> 
    <link href="styles/Main.css" type="text/css" rel="stylesheet" /> 
    <style type="text/css"
    html, body, form 
    { 
        height: 100%; 
        margin: 0px; 
        padding: 0px; 
        overflow: hidden; 
    } 
    </style> 
</head> 
<body> 
    <form id="form2" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
            <telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" runat="server" EnableRoundedCorners="false" /> 
            <div style="display:none"
                <telerik:RadTextBox runat="server" ID="Num" /> 
            </div>           
        <div id="ParentDivElement" style="height: 100%;"
            <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%" 
                Orientation="Horizontal"
                <telerik:RadPane ID="paneTitle" runat="server" Width="100%" Height="100px" BackColor="#000000" Locked="true" Scrolling="None"
                    <div id="mHeader"
                        <table width="100%" cellspacing="0" cellpadding="0"
                            <tr> 
                                <td> 
                                    <img id="Img1" src="img/LogoGextra.png" alt="logo" runat="server" style="border:none; height:100px" /> 
                                </td> 
                                <td align="center"
                                    <h2 style="color:Red"><asp:Label runat="server" ID="lblNotice"></asp:Label></h2
                                </td> 
                                <td align="right"
                                    <div class="skin-chooser"
                                        <label for="ctl00_RadMenu1_i3_SkinChooser_Input" class="skinLabel">Skin:</label> 
                                            <telerik:RadSkinManager ID="RadSkinManager" runat="server" ShowChooser="true" Skin="Office2007" 
                                                PersistenceKey="Skin" PersistenceMode="Session"
                                            </telerik:RadSkinManager> 
                                    </div> 
                                </td> 
                            </tr> 
                        </table> 
                    </div> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="None" /> 
                <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500"
                    <telerik:RadSplitter ID="NestedSplitter" runat="server" LiveResize="true"
                        <telerik:RadPane ID="LeftPane" runat="server" Width="230" MinWidth="150" MaxWidth="400"
                            <telerik:RadPanelBar ID="panelMenu" runat="server" PersistStateInCookie="true" ExpandMode="SingleExpandedItem" Height="100%" Width="225px"
                                <Items> 
                                    <telerik:RadPanelItem runat="server" Text="Mio Profilo"
                                        <Items> 
                                            <telerik:RadPanelItem runat="server" Text="Anagrafica" NavigateUrl="grcEditAnagrafica.aspx" />                                                                                   
                                            <telerik:RadPanelItem runat="server" Text="Documenti" NavigateUrl=""/> 
                                            <telerik:RadPanelItem runat="server" Text="Cambia password" Navigateurl="grcCambiaPswd.aspx"/> 
                                        </Items> 
                                    </telerik:RadPanelItem>                                                                              
                                    <telerik:RadPanelItem runat="server" Text="I servizi XYOU" NavigateUrl="grcElencoProdotti.aspx"
                                    </telerik:RadPanelItem> 
                                    <telerik:RadPanelItem runat="server" Text="Acquisto servizi XYOU" NavigateUrl="grcElencoOrdini.aspx"
                                    </telerik:RadPanelItem> 
                                    <telerik:RadPanelItem runat="server" Text="Situazione Acquisti"
                                        <Items> 
                                            <telerik:RadPanelItem runat="server" Text="Elenco Acquisti" NavigateUrl="grcVisualizzaOrdini.aspx" /> 
                                            <telerik:RadPanelItem runat="server" Text="Estratto Conto" NavigateUrl="grcElencoEstrattoConto.aspx" /> 
                                            <telerik:RadPanelItem runat="server" Text="Segnalazione Scadenza dei Crediti" NavigateUrl="grcElencoEsaurimentoCrediti.aspx" />                                          
                                        </Items> 
                                    </telerik:RadPanelItem>                                  
                                    <telerik:RadPanelItem runat="server" Text="Caricamento pratica" > 
                                        <Items> 
                                            <telerik:RadPanelItem runat="server" Text="Azienda" NavigateUrl="grcInsertPratica.aspx?D=A" /> 
                                            <telerik:RadPanelItem runat="server" Text="Privato" NavigateUrl="grcInsertPratica.aspx?D=P" />                                           
                                        </Items> 
                                    </telerik:RadPanelItem> 
                                    <telerik:RadPanelItem runat="server" Text="Caricamento pratica Unico Form" > 
                                        <Items> 
                                            <telerik:RadPanelItem runat="server" Text="Azienda" NavigateUrl="grcInsertPraticaUnica.aspx?D=A" /> 
                                            <telerik:RadPanelItem runat="server" Text="Privato" NavigateUrl="grcInsertPraticaUnica.aspx?D=P" />                                          
                                        </Items> 
                                    </telerik:RadPanelItem>                                  
                                    <telerik:RadPanelItem runat="server" Text="Richiesta storno pratica" NavigateUrl="grcRichiestaStorno.aspx"
                                    </telerik:RadPanelItem>  
                                    <telerik:RadPanelItem runat="server" Text="Visualizza la Gestione Pratiche"
                                        <Items> 
                                            <telerik:RadPanelItem runat="server" Text="Dettaglio Affidamenti" NavigateUrl="grcDettaglioAffidamento.aspx" /> 
                                            <telerik:RadPanelItem runat="server" Text="Cerca Pratica" NavigateUrl="grcCercaPratica.aspx" /> 
                                        </Items> 
                                    </telerik:RadPanelItem> 
                                    <telerik:RadPanelItem runat="server" Text="Comunicazioni con Gextra" NavigateUrl="grcMessaggistica.aspx" />                                                                                                                  
                                    <telerik:RadPanelItem runat="server" Text="Log out" NavigateUrl="~/Login.aspx?action=logout"/>                                                   
                                    <telerik:RadPanelItem runat="server" Text="Assistenza" NavigateUrl=""/> 
                                </Items>                         
                        </telerik:RadPanelBar> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" /> 
                        <telerik:RadPane ID="ContentPane" runat="server"
                              <asp:ContentPlaceHolder ID="cphMain" runat="server"></asp:ContentPlaceHolder> 
                        </telerik:RadPane> 
                    </telerik:RadSplitter> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="Radsplitbar1" runat="server" CollapseMode="None" /> 
                <telerik:RadPane ID="FOoter" runat="server" Width="100%" Height="50px" BackColor="#FFFFFF" Locked="true" Scrolling="None"
                    <table align="center" cellpadding="0" width="85%" cellspacing="0"
                        <tr> 
                            <td align="center"><p><b>Contact Number: 051-xxx xxx </b></p></td> 
                            <td align="center"><p><img src="img/skype.gif" alt="skype" /><b>: </b></p></td> 
                            <td align="center"><asp:Button runat="server" ID="Button2" Text="Manuale utilizzo servizi" /></td
                        </tr> 
                    </table> 
                </telerik:RadPane>                 
            </telerik:RadSplitter> 
        </div> 
    </form> 
</body> 
</html> 

i can add a demo to show u what i mean if u need it..
thanks
regard webster
Dobromir
Telerik team
 answered on 04 May 2010
13 answers
226 views
I would like to add about 10000 recoders to a RadListBox in client side, I used the follows code:

var getCallBack = function(returnValue) { 
                items = returnValue.value; 
                if (items != null && items != "") { 
                    var rows = items.Tables[0].Rows, i = 0, l = rows.length;                     
                    for (; i < l; i++) { 
                        //add new items 
                        var raditem = new Telerik.Web.UI.RadListBoxItem(); 
                        raditem.set_text(items.Tables[0].Rows[i].Description); 
                        raditem.set_value(items.Tables[0].Rows[i].Code); 
                        oRadListItems.add(raditem); 
                    } 
                } 
            } 

it will be very slow when large items (about 10000 records) , and the browser will be halts.

if I use html control (select), I can use array to do this, then it will be very fast , just like
for (; i < l; i++) { 
            k.push("<option value='" + items.Tables[0].Rows[i].Code + "'>" +  items.Tables[0].Rows[i].Description + "</option>"); 
        } 

so I don't know whether can I improve the performance of RadListBox, have any idea to solve this ?

thank you !



Yana
Telerik team
 answered on 04 May 2010
1 answer
75 views
I've been looking around the documentation and I'm trying to find if there exists any methods which return the HTML document size for the contents of the WYSIWYG editor, which also takes into account image sizes etc.

ie: HTML content including images is 317Kb

thanks
Dobromir
Telerik team
 answered on 04 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?