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

Fixes for Load on demand are not working correctly when enabling ShowMoreResultsBox property.

3 Answers 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Aviii
Top achievements
Rank 1
Aviii asked on 04 May 2010, 12:20 PM
HI,
Thanks for this load on demand fixes from the following link. 
http://www.telerik.com/community/forums/aspnet-ajax/combobox/fix-load-on-demand-does-not-work-correctly-in-q2-2009-sp1.aspx

I added following code of block below scrpt manager.

<script type="text/javascript">    
    Telerik.Web.UI.RadComboBox.prototype.get_endOfItems = function() { return false; };    
</script>    
 

I was able to get results after pressing more than one character. But this solution raised me another issue.

I Used Property ShowMoreResultsBox="true" in combo box because I have about 16000 reocords in Combo Box, and I display 500 records on a page. The Button to get next 500 records works fine till i dont type any character and when I press two or more characters the my webservice return 2000 records, and I display 500 but I am not able to get Next 500 records, becuase the button does not clickable ot just return false; (I guess becuase of this fix).
The issue is on production and We dont want to update with new Telerik dlls.
Please help me to fix this issue.

Thanks
Aviii

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 10 May 2010, 02:00 PM
Hello Aviii,

You can try resolving this (without updating the dll) by replacing the fix suggested in the forum sticky with this one:
var requestItems = Telerik.Web.UI.RadComboBox.prototype.requestItems;
Telerik.Web.UI.RadComboBox.prototype.requestItems = function (text, appendItems) {
    if (appendItems && this.get_endOfItems())
        return;
    this.set_endOfItems(false);
    requestItems.apply(this, arguments);
};

Please let me know how it goes on your side after applying this fix.

Kind regards,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Tyler
Top achievements
Rank 1
answered on 05 Jan 2011, 04:46 PM
Hi Simon,

Thanks for posting this fix. For now I am stuck with version Q2 2009 SP1 and your workaround works for me (at least after a few tests). Hopefully it will hold up in production too.

Thanks,
Oran

0
Simon
Telerik team
answered on 05 Jan 2011, 04:51 PM
Hello Tyler,

It should cover 99% of the cases, so using in production should be OK. However, just to confirm, it is a good idea to test your use-cases just to be sure before putting it in production.

Greetings,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ComboBox
Asked by
Aviii
Top achievements
Rank 1
Answers by
Simon
Telerik team
Tyler
Top achievements
Rank 1
Share this question
or