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

[Solved] load-on-demand is not working when an item is selected

7 Answers 137 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Adam Plattner
Top achievements
Rank 1
Adam Plattner asked on 16 Sep 2009, 01:40 PM
Our users reported a problem with radComboxI, and I tested it at
 
When an item is selected from combo box, the load-on-demand is disabled, meaning user can't select any other items, the current items are fixed. The count label shows "items 1-1 out of 1". It is not easy way to get back and select the other 91 items. The browser was IE 7.
 
Thanks

7 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 16 Sep 2009, 02:25 PM
Hi Adam Plattner,

Thank you for reporting this issue.

I logged it in our bug-tracking system and updated your Telerik points for the report.

We will address the issue during the next week.

Greetings,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Simon
Telerik team
answered on 12 Oct 2009, 08:28 AM
Hello Adam Plattner,

We resolved this issue, so please download tomorrow's Internal Build to obtain the fixed version.

Kind regards,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sharon Kalupske
Top achievements
Rank 1
answered on 13 Nov 2009, 02:19 PM
Hello,

We downloaded the 2009Q3 controls yesterday and are seeing the problem described above when using the new controls.  I was able to recreate the issue on the demo site referenced in the initial post (I used IE8).  Can you provide some insight?

Thanks for your help,
Sharon
0
Sharon Kalupske
Top achievements
Rank 1
answered on 16 Nov 2009, 04:30 PM
The 2009Q3 combo box control's load on demand feature does not seem to be working.  The problem can be recreated on the following demo site link:  http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx.  Use the following steps to recreate the error:  1)  Select a value from the "Server Side" combo box.  2)  Press the "Select" button.  3)  Press the down arrow on the combo box.  4) Press the "Items" area in an attempt to view the other items.

This problem is stopping us from using the 2009Q3 controls.  We had hoped to use them to access some of the new features.  Can you provide a time line on when the problem will be corrected?

Thanks for your help,
Sharon
0
Simon
Telerik team
answered on 17 Nov 2009, 03:05 PM
Hi Sharon Kalupske,

This happens because after clicking the Select button a postback occurs and in this case the ComboBox looses its Items loaded on demand. This looks strange in the demo because of the fact that the postback is ajaxified, which means that after the update the ComboBox will reflect its sever state, which is empty.

You could avoid this on your page by wrapping only the Button and the updated Label controls in one AjaxPanel. In this way, the ComboBox will retain its Items after the postback.

Regards,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Adam Plattner
Top achievements
Rank 1
answered on 18 Nov 2009, 05:37 PM

May I ask what the change was? I reported the bug earlier and it was fixed. Now with the latest build it breaks again?

Why we have to change our codes and go around it? Please provide a working demo for your solution.

0
Simon
Telerik team
answered on 19 Nov 2009, 05:16 PM
Hi Adam Plattner,

Actually now the demo is a bit misleading.

You can fix this by moving the RadComboBox outside the RadAjaxPanel, so that it is not updated. So, in the context of the live demo you can modify the layout as shown below:

<div class="module-row">
    <span class="text">Server-Side:</span>
    <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" Height="150px"
        EmptyMessage="Select a Company" EnableLoadOnDemand="True" ShowMoreResultsBox="true"
        EnableVirtualScrolling="true" OnItemsRequested="RadComboBox1_ItemsRequested">
    </telerik:RadComboBox>
</div>
<div class="module-row">
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
        <asp:Button runat="server" Text="Select" ID="Button1" CssClass="qsfButtonBig" OnClick="Button1_Click">
        </asp:Button>
        <asp:Label CssClass="status-text" ID="Label1" runat="server"></asp:Label>
    </telerik:RadAjaxPanel>
</div>

Just to better understand why this happens, please remove the RAP and test again to see the actual behavior.

Greetings,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Adam Plattner
Top achievements
Rank 1
Answers by
Simon
Telerik team
Sharon Kalupske
Top achievements
Rank 1
Adam Plattner
Top achievements
Rank 1
Share this question
or