Hi, I want to show Suggention List with MaskedTextBox at Client Side. I have achieved this using JQuery UI Plugin by storing items in cookie and escaping underscore(_) and hyphen (-) in searching. Below is the code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadMaskedTextBox ID="TextBox1" CssClass="txtNIN" runat="server" Mask="######-####"></telerik:RadMaskedTextBox>
</td>
</tr>
<tr>
<td>
<asp:Button runat="server" ID="asd" Text="submit" OnClientClick="add()" />
</td>
</tr>
</table>
</div>
<%-- <div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags"/>
</div>--%>
</form>
</body>
</html>
<script type="text/javascript">
var arr = [];
$(function () {
var myCookie = getCookie("SSNKey");
if (myCookie == null || myCookie == "") {
arr = [];
var json_str = JSON.stringify(arr);
createCookie('SSNKey', json_str);
}
else {
var json_str = getCookie('SSNKey');
arr = JSON.parse(json_str);
}
$("#TextBox1").autocomplete({
minLength: 0,
source: function (request, response) {
var matcher = new RegExp($.ui.autocomplete.escapeRegex(request.term.replace(/_/g, "").replace("-", "")), "i");
var matching = $.grep(arr, function (value) {
return matcher.test(value);
});
response(matching);
},
select: function (event, ui) {
event.preventDefault();
var selectedObj = ui.item;
var y = ["_", "_", "_", "_", "_", "_", "-", "_", "_", "", "_"];
for (var i = 0; i < selectedObj.value.length; i++) {
y[i] = selectedObj.value.charAt(i);
}
$find("<%= TextBox1.ClientID %>").set_value(y.toString().replace(/,/g, ""));
}
})
.focus(function () {
$(this).autocomplete("search", "");
});
});
function createCookie(name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
}
else var expires = "";
document.cookie = name + "=" + value + expires + "; path=/";
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') c = c.substring(1);
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return "";
}
function add() {
var x = document.getElementById('TextBox1').value.replace(/_/g, "").replace("-","");
if (arr.indexOf(x) == -1) {
arr.unshift(x)
if (arr.length > 5) {
arr.pop();
}
var json_str = JSON.stringify(arr);
createCookie('SSNKey', json_str);
}
}
</script>
I've seen a few different posts about this, but they are mostly outdated and didn't resolve my issue. I put together some simple steps we took to make it work.
We had a project that originally used the AjaxControlToolkit on some pages. All new development used Telerik controls. There were issues performing Ajax operations despite the AjaxControlToolkit not even being registered on a page. This was the only fix I could find.
- Remove the existing
AjaxControlToolkit reference from the project and delete the
AjaxControlToolkit.DLL from the bin directory on the remote server (if it
exists)
- Remove any
AjaxControlToolkit assembly registrations at the top of the page markup
(if they exist)
- Install the
AjaxControlToolkit via the NuGet package manager in Visual Studio (update
the tag prefix as needed)
- In the MasterPage markup, disable combining scripts in
the RadScriptManager
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableScriptCombine="false"></telerik:RadScriptManager>
I hope this helps someone else down the road. A better solution is to replace the AjaxControlToolkit controls with Telerik controls, but this gets us by until we make time to do that.

The JavaScript error thrown as given below
b.toUpperCase is not a function.
ie,
function(b,c){Sys.__upperCaseTypes[b.toUpperCase()]=this;
SelectedValue it is not working. Any idea why it is behaving like this?
Xaxis Label offset if Yaxis set to negative Version 2017.3.913.45
Scenario
Yaxis datasource range [0-30]
HtmlChart.PlotArea.YAxis.MinValue = -1;

Hello!
I use Grid with window editing mode,
and find a demo of window editing issue,
I opened the edit window many times,the height of the window will -1 every time.
you can click the edit link 6 times, the window content will show the scrollbar, window editing demo
how can I open the window without change the height every time?
thanks!