Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
38 views

I have added a RadMaskedTextBox to a form. My layout uses bootstrap. All of my other controls have the label at the top, but when I add the RadMaskedTextBox , the label goes to the left. This happens whether I use the asp label or the built in label for the control.

 <telerik:RadMaskedTextBox ID="rmtPhone" runat="server" RenderMode="Auto" Mask="+1 (###) ###-####"  Label="Phone"></telerik:RadMaskedTextBox>

 

Does anyone have a solution to move the label to the top?

Vasko
Telerik team
 answered on 03 Nov 2023
0 answers
90 views

Hi

Due to PT testing on our code, we found an issue with Rad labels that executing a JS code.

In order to solve this issue, I was trying to set the HtmlEncode property to true from JS with no success,

Cause I'm trying to avoid changing this property for each web form manually.

The default value for this property is false.

So I need to know if there is a client-side API for this property?

If not, any other suggestions to solve this breach with code and not manually?

 

Thanks

Merav

Merav
Top achievements
Rank 1
 asked on 10 Oct 2023
0 answers
758 views

Need to set friendly URLs for ASP classic web site running on IIS 7 .

There is this rules in my web.config

<rewrite>
        <rules>
            <rule name="chatter">
                <match url="^chatter/default.aspx?article=([0-9]+)" />
                <action type="Rewrite" url="chatter/article{R:1}.aspx" />
                <conditions>
            <add input="{QUERY_STRING}" pattern="^www\.SUB\.DOMAIN\.org$" />
                </conditions>
            </rule>
        </rules>
    </rewrite>

Nothing happens when I apply this rule. Please note there is subdomain included. Any help ?

    It seems like that the condition won't match. It is looking for query string to match the domain. 
    – amit_g
     Sep 7, 2015 at 19:44
  • You simply misunderstood what is URL rewrite so hope you can learn from basic examples. 
    – Lex Li
     Sep 8, 2015 at 1:58
  • and what is the URL rewrite 
Ahad
Top achievements
Rank 1
 updated question on 10 Apr 2023
1 answer
95 views

Is it possible to add a label next to a GridBoundColumn, similar to what I want on the image below that I've modified using inspect element?

The restriction is that I am not using nor going to use FormEditTemplate.

My current code is this, but I cannot find a way to insert label next to it:

<telerik:GridBoundColumn DataField="Email" FilterControlAltText="Filter Email column" HeaderText="Email" SortExpression="Email" UniqueName="Email" ColumnEditorID="Email">           
                    <HeaderStyle Width="250px" />
                </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Name" SortExpression="Name" UniqueName="Name" ColumnEditorID="Name">           
                    <HeaderStyle Width="250px" />
                </telerik:GridBoundColumn>

Attila Antal
Telerik team
 answered on 21 Nov 2022
1 answer
170 views

Hello,
I am new to Telerik and I am currently supporting an ASP.NET application, I got a task in order to locate the files that were being uploaded by the application.
Reviewing the code I am making use of <telerik:RadAsyncUpload> using OnFileUploaded and InputStream.
I know that InputStream allows me to make the insert in database and process its content from the application. The doubt I have is where are the files that are uploaded using InputStream stored internally or where are they located, considering that it allows me to access the content of the uploaded files without saving them in a temporary location?

P.S.: I tried to check the App_Data\RadUploadTemp folder in my project but the files are not found.  

I would greatly appreciate your help, as I need to validate what documents are there and so on.

This is my code:

<telerik:RadAsyncUpload ID="RadAsyncUploadDocuments" runat="server" MaxFileSize="10485760" 
            MultipleFileSelection="Automatic" CssClass="multipleDocUpload" OnFileUploaded="RadAsyncUploadDocuments_FileUploaded" 
            Localization-Cancel="<%$Resources:cancel %>" Localization-Select="<%$Resources:select %>" Localization-Remove="<%$Resources:remove %>" >
        </telerik:RadAsyncUpload>

        <div class="doc_upload_buttons">
            <asp:Button runat="server" CssClass="action_button" ID="confirmUpload" OnClick="confirmUpload_Click" Text="<%$Resources:confirmUpload %>"/>
        </div>

 

protected void RadAsyncUploadDocuments_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e)
        {
            var Documents = Session["Documents"] == null ? new Bll.DocumentsCollection() : (DocumentsCollection)Session["Documents"];

            byte[] bytes = new byte[e.File.ContentLength];
            e.File.InputStream.Read(bytes, 0, (int)e.File.ContentLength);

            var document = new Bll.Documents();
            document._acprocessId = _acProcess.AcprocessId;
            document.AddedbyDate = DateTime.Now;
            document.AddedbyUsername = _user.UserName;
            document.AddedbyUsertype = (int)_user.ActiveReviewProcess.PermissionLevel;
            document.DocumentType = e.File.ContentType;
            document.AddedbyDate = DateTime.Now;
            document.Lastmodifieddate = DateTime.Now;            
            document.Path = e.File.GetName();
            document.Title = e.File.GetNameWithoutExtension();

            var documentId = document.Insert();
            document.DocumentId = documentId;
            var documentData = new Bll.DocumentData();
            documentData._documentId = documentId;
            documentData.BinaryData = bytes;
            documentData.Insert();

            Documents.Add(document);
            
            Session["Documents"] = Documents;
        }

        protected void confirmUpload_Click(object sender, EventArgs e)
        {
            UploadDocumentsSession _uploadDocumentsSession = new UploadDocumentsSession(_acProcess);
            _uploadDocumentsSession.Documents = Session["Documents"] as DocumentsCollection;
            _uploadDocumentsSession.CurrentDocument = _uploadDocumentsSession.Documents[0];
            _uploadDocumentsSession.UpdateSession();
            Response.Redirect(string.Format("~/{0}/DocumentManagerDashboard.aspx", _user.UserLevel >= SiteEnums.UserLevel.CCAReviewer ? "Admin/Processes" : "Public"));
        }
2 answers
351 views
Do you have a sample for which you can convert a label to text box and update it ?
Tess
Top achievements
Rank 1
 answered on 11 Nov 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?