Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
97 views

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.  

 

Rumen
Telerik team
 answered on 22 Nov 2017
0 answers
92 views

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?

 

Rune
Top achievements
Rank 1
 asked on 22 Nov 2017
8 answers
510 views

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>

but Requirement is I can't use JQuery Plugin, I have to use Telerik, so Please suggest how can i achieve this by customizing any other control or any other way.
Abdul
Top achievements
Rank 1
 answered on 22 Nov 2017
5 answers
1.7K+ views
Hi,

We are using version 2014.3.1024.40 of you ASP.NET for AJAX controls.  I am creating an HTMLChart with a couple of ColumnSeries.

Some of the values for the data, are actually NULL.  Yet the Labels for those are displaying as zero (0).

In the world of data, we all know that an empty value (NULL) is totally different than 0...  Empty or NULL just means I haven't entered it yet, where zero would indicate to the user that a value of zero has actually been entered.  Displaying zero instead of nothing, is totally different and misleading.

So is there a property or setting that will NOT display a value of zero for data points that are NULL?

If not, is there an area where I can vote for this feature?

Thanks,
Michael
Mukesh
Top achievements
Rank 1
 answered on 22 Nov 2017
1 answer
386 views

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.

 

Rumen
Telerik team
 answered on 22 Nov 2017
17 answers
962 views

I am upgrading Telerik RadControls for ASP.Net Ajax to v2013.2.611.45.  Runtime version is v4.0.30319  
For the most part things seem to be working well except for a JavaScript error.

 

The JavaScript error thrown as given below

 

b.toUpperCase is not a function.
ie,

function(b,c){Sys.__upperCaseTypes[b.toUpperCase()]=this;


Unhandled exception at line 6, column 18774 in http://Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2013.2.611.45,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:9711a23a-6cf5-4e6c-87f5-29e6585b3026:16e4e7cd:f7645509:24ee1bba:874f8ea2:19620875:f46195d3:92fe8ea0:fa31b949:490a9d4e:bd8f85e4:ed16cbdc:7165f74:e330518b:2003d0b8:1e771326:c8618e41:b7778d6c:82923ac3:ddbfcb67

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'toUpperCase'  

Any help would be greatly appreciated.
Thanks.

Todd
Top achievements
Rank 1
 answered on 21 Nov 2017
8 answers
668 views
Hi Guys,

How can I use regularexpressionvalidator in RadGrid control with <InsertTemplate> and <EditTemplate>. Is there any other alternative for this.

In case of regEx fail, I am able to display the '*' next to the control but not the message in ValidationSummary [rendering as display:none].

Thanks in advance.

-regards
Indra
Marin Bratanov
Telerik team
 answered on 21 Nov 2017
23 answers
1.8K+ views
The SelectedValue is working in the WebPage but if you create a usercontrol and put the RadComboBox and try to set the

SelectedValue it is not working. Any idea why it is behaving like this?

Rob
Top achievements
Rank 1
Veteran
Iron
 answered on 21 Nov 2017
1 answer
158 views

Xaxis Label offset if Yaxis set to negative Version 2017.3.913.45

 

Scenario

Yaxis datasource range [0-30]

HtmlChart.PlotArea.YAxis.MinValue = -1;

Rumen
Telerik team
 answered on 21 Nov 2017
1 answer
54 views

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!

Wang
Top achievements
Rank 1
 answered on 21 Nov 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?