This is a migrated thread and some comments may be shown as answers.

[Solved] Radcombox is slower

3 Answers 140 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 30 Apr 2009, 02:43 PM


Hello,


I just migrated from the classic combobox to the new RadAjax, two problems:

1) it is much slower bringing up the drop down list and secondly I have not been able to use my old skin. Any suggestion?

AZ.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Apr 2009, 04:48 PM
Hi Ahmed,

How many items do you have in your combobox? RadComboBox for ASP.NET Ajax is supposed to be faster than the old one. You can also disable the expand animation like this:

<telerik:RadComboBox runat="server">
    <ExpandAnimation Type="None" Duration="0" />
    <CollapseAnimation Type="None" Duration="0" />
</telerik:RadComboBox>

As for the skin - RadComboBox for asp.net ajax is using different skinning implementation (different HTML and CSS). I suggest you send us your custom combobox skin in a support ticket (all required css and image files). We will assist with the upgrade of the your skin.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ahmed
Top achievements
Rank 1
answered on 30 Apr 2009, 05:54 PM

They are in the hundreds, but I am comparing it to the old control, the delays happens only on the first click,

 

Here is my old control


<%@ Register TagPrefix="radcb" Namespace="Telerik.WebControls" Assembly="RadComboBox" %>

 

 


<radcb:radcombobox Width="80" id="dgrcmb" Runat="server" maxLength="100" CssClass="clsTableCellLeft"
                Skin="Savi" AllowCustomText="false" MarkFirstMatch="True" AutoPostBack="false" nowrap="true" height="120"></radcb:radcombobox>

 

 

 

 

the new code looks like this:

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<

 

telerik:radcombobox Width="80"

 

 

id="dgrcmb" Runat="server" maxLength="100" CssClass="clsTableCellLeft"

 

 

Skin="Default2006" AllowCustomText="false" MarkFirstMatch="True" AutoPostBack="false" nowrap="true" height="120">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</telerik:radcombobox></td>

 

 

 

 

changing the duration as you described did not effect the response time....

I will write a ticket for the new skin, but its basicaly to match asp:DropDownList in the page.

 

 

 

Ahmed.

 



 

0
Simon
Telerik team
answered on 01 May 2009, 08:02 AM
Hello Ahmed,

RadComboBox AJAX supports the so-called lazy initialization mechanism. Item objects are initialized in the latest possible moment in the control life cycle. This is the first time Items are accessed with the get_items() method, which happens automatically right before the drop down opens.

You could avoid this delay, or more specifically 'move' it to the initial page load, by calling get_items early in the page life cycle. So, in your case you could handle the OnClientLoad event of your ComboBox as shown below:

<script type="text/javascript"
    function onLoad(sender, eventArgs) { 
        sender.get_items(); //force Item initialization 
    } 
</script> 

Please try the approach and let us know of the results.

Regards,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ahmed
Top achievements
Rank 1
Simon
Telerik team
Share this question
or