Joshua Wise
Top achievements
Rank 1
Joshua Wise
asked on 10 Dec 2009, 05:15 PM
Hi all,
I am having the problem with the radCombobox where the ItemsRequested server side function is not firing after I type in more than a few letters. I am trying to apply the fix by adding the fix from this post.
However, when I place the code in and run, I am getting the error "Microsoft JScript runtime error: 'Telerik' is undefined"
The declarations at the top of my page look like this:
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
Telerik.Web.UI.RadComboBox.prototype.get_endOfItems = function() { return false; };
</script>
Any suggestions on where I should enter this? I tried placing it as well in my master page after the declaration of the script manager, but I go tthe same result.
Thanks,
Joshua Wise
5 Answers, 1 is accepted
0
Hello Joshua,
All the best,
Kamen Bundev
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.
There is an important information in this sticky thread that you probably missed:
"Alternatively, you can add the following javascript code just after the ScriptManager / RadScriptManager declaration:"
If you move the javascript code immediately after the ScriptManager on your page, the problem should go away.
All the best,
Kamen Bundev
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
Joshua Wise
Top achievements
Rank 1
answered on 11 Dec 2009, 02:27 PM
Hi,
Is there any way you can post a sample? Here's the code I have, but I'm still getting an error:
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> |
<!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></title> |
<asp:ContentPlaceHolder ID="head" runat="server"> |
<link href="StyleSheet.css" rel="stylesheet" type="text/css" /> |
<style type="text/css"> |
</style> |
</asp:ContentPlaceHolder> |
</head> |
<body> |
<form id="form1" runat="server"> |
<div> |
<h1 class="header1"> |
|
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/araLogo.jpg" /> |
<br /> |
<asp:Label ID="Label1" runat="server">Chart of Accounts Utility</asp:Label> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<script type="text/javascript"> |
Telerik.Web.UI.RadComboBox.prototype.get_endOfItems = function() { return false; }; |
</script> |
</h1> |
The Error I'm getting is this:
Microsoft JScript runtime error: 'Telerik.Web.UI.RadComboBox.prototype' is null or not an object
Thanks
0
Hi Joshua Wise,
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.
You need to also add a RadComboBox on the page so that its scripts are loaded. If you are showing the ComboBox later, please add a check for Telerik before the line of code fixing the issue:
if
(Telerik)
Telerik.Web.UI.RadComboBox.prototype.get_endOfItems =
function
() {
return
false
; };
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
Aviii
Top achievements
Rank 1
answered on 30 Apr 2010, 12:16 PM
HI,
Thanks for this fix and 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
Thanks for this fix and 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
0
Hello Aviii,
You can try resolving this (without updating the dll) by replacing the fix suggested in the forum sticky with this one:
Please let me know how it goes on your side after applying this fix.
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.
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.
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.