I have a form that is currently in Infopath, which we are trying to change to a web application. This form has an upload control in it where people can save related documents to this form for users to edit and manipulate, which persist to other users.
Currently I am not seeing how to change this to a web application, but I have some ideas. I really just need help determining if my idea would #1 work, and #2 be the best way to handle this.
I was thinking of re-creating the form exactly as it is in Infopath. I thought about using the async uploader to upload the files to a UNC share, and then on the "edit" form template have a repeater that shows a hyperlink to the forms location. Therefore people could manipulate the form, re-save it from their client application (word, excel, etc...), and then other users would see the updates. However I am not sure if this is the best approach. We utilize SQL as our backend, and wouldn't care to upload the document to SQL, but I don't even know if that is possible.
What do you all think, would this way work with shared directories? Would you rather have the user save the "attachments" to the network share, and then have the uploader just record the path so that the repeater can display the links? <- Is that even possible? Any other ideas? I am completely open as my primary job is not programming, but due to the company dynamics I am writing applications to help re-work antiquated systems.
I'm wondering if there is some way to change behavior of the excel like filtering. When the user clicks 'select all' after typing in a search string the filter selects all instead of selecting all of the search matches.
This is confusing to users (and me) as this is different from excel filter behavior.
Can this behavior be changed somehow?
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!