Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
177 views
Hi to all,

I'd like to ask a question about RadUpload control.
I'm using RadUpload control for perform file upload, in my ASP.NET page I've include following code:

<telerik:RadProgressManager id="Radprogressmanager1" runat="server" />
<telerik:RadUpload ID="RadUpload1" Runat="server" Visible="true" InitialFileInputsCount="1" MaxFileInputsCount="1" controlobjectsvisibility="ClearButtons" />
<asp:Button ID="cmdUpload" runat="server" Text="Upload" Visible="true" />
<telerik:RadProgressArea id="progressArea1" runat="server" progressindicators="TotalProgressBar, TotalProgressPercent, TotalProgress, RequestSize, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed" DisplayCancelButton="true" />


When I load the page, RadUpload is visible and RadProgressArea is hidden, when I select the file and I press cmdUpload button, RadProgressArea is display and present to me uploading process.

During this upload process I'd like to hide RadUpload control, showing only progress bar.

Thank you very much for your support!

Have nice day!
Maurizio
Peter Filipov
Telerik team
 answered on 24 Oct 2011
1 answer
116 views
Is it possible to customize the Delete Confirmation window?  For example, I want to show a radio button list of options that could be applied when the user confirms the delete.
Ivana
Telerik team
 answered on 24 Oct 2011
3 answers
102 views

 

 

Hi,

My code for RadEditor is as below

<telerik:RadEditor ID="TelerikEditor" runat="server" EnableResize="False" SkinID="BasicSetOfTools" BackColor="White" EditModes="Design" OnClientCommandExecuting="OnClientCommandExecuting1" RegisterWithScriptManager="true">
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorDropDown Name="FormatBlock">
</telerik:EditorDropDown>
<telerik:EditorDropDown Name="FontName">
</telerik:EditorDropDown>
<telerik:EditorDropDown Name="RealFontSize">
</telerik:EditorDropDown>
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="AbsolutePosition" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Bold" />
<telerik:EditorTool Name="Underline" />
<telerik:EditorTool Name="Italic" />
<telerik:EditorTool Name="StrikeThrough" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="JustifyLeft" />
<telerik:EditorTool Name="JustifyCenter" />
<telerik:EditorTool Name="JustifyRight" />
<telerik:EditorTool Name="JustifyFull" />
<telerik:EditorTool Name="JustifyNone" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Indent" />
<telerik:EditorTool Name="Outdent" />
<telerik:EditorTool Name="InsertOrderedList" />
<telerik:EditorTool Name="InsertUnorderedList" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorSplitButton Name="ForeColor">
</telerik:EditorSplitButton>
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="ImageManager" />
<telerik:EditorTool Name="LinkManager" />
<telerik:EditorTool Name="Unlink" />
</telerik:EditorToolGroup>
</Tools>
<Content>
</Content>
</telerik:RadEditor>

Is there any extra efforts required for "JustifyNone" make working in Firefox ?

 

Rumen
Telerik team
 answered on 24 Oct 2011
4 answers
175 views
Hi There,

I have a requirement where I need the Drag and Drop Functionality from a DataList to DataGrid.
Now when we do a drag drop from Grid to Grid there is a little Dashed line which shows up on the Target Grid which gives the user an idea about where the control is going to be placed.

But when we do the same thing, I mean dragging a control from DataList and Droping it on DataGrid, I am not able to see that Dashed Line.
I tried to figure out and I think this is possible if we tweak the javascript functions that handle this drag drop, to show a dashed line. But this approach needs some extra programming efforts.

Is there any simple solution to achive this?  I went through all the demos and I could not find one which actually shows how this is done.

Thanks
Galin
Telerik team
 answered on 24 Oct 2011
1 answer
82 views
I am using the image manager to upload images to be stored in a database. When images larger than 25kb are uploaded  only small portion of the images is displayed and uploaded.
Rumen
Telerik team
 answered on 24 Oct 2011
2 answers
134 views
Hi,

is it possible in TreeListe to show a Refresh-Button like in RadGrid?

<CommandItemSettings ShowRefreshButton="true" ...

Best Regards

Tom

Thomas
Top achievements
Rank 1
 answered on 24 Oct 2011
1 answer
177 views
Like I said, it seems to work fine in IE and FF, but crashes in Chrome (weird). I have two image buttons inside of a GridTemplateColumn and when they are clicked, in chrome, I get the following error (detailed screenshot attached): 


Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

 
Veli
Telerik team
 answered on 24 Oct 2011
5 answers
300 views
Hi
How doI set the backcolor of selectedItem in radmenu to a different color in Server side or client side.
Thanks
Kate
Telerik team
 answered on 24 Oct 2011
3 answers
215 views
I am trying to add a RadCaptcha validation control to a page that allows file uploads. What is happening is that the file progress area is shown prior to Captcha validation, so if the Captcha is invalid, the user has to wait for the progress of the file upload before the message displays that they have type invalid Captcha text.

Is there any way around this to have the Captcha validate before the file upload progress happens?

Page code follows.
<%@ Page Language="VB" MasterPageFile="~/Master/master.master" AutoEventWireup="false" Inherits="xfers.test" ValidateRequest="false" Codebehind="test.aspx.vb" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="MasterHolder" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <style>
    .RadUpload .ruFakeInput {
     background-color: #dddddd;
     cursor:not-allowed;
     }
      .ruFileInput
      { cursor: pointer;
             } 
    </style>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Windows7" />
  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScriptManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Radprogressmanager1" />
                    <telerik:AjaxUpdatedControl ControlID="RadProgressArea1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Radprogressmanager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadProgressArea1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadCodeBlock1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Radprogressmanager1" />
                    <telerik:AjaxUpdatedControl ControlID="RadProgressArea1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
      
    </telerik:RadAjaxManager>
    <div style="position:absolute;z-index:1000;top:50%;left:30%;bottom:50%;right:50%;margin:auto;">
        <telerik:RadProgressManager id="Radprogressmanager1" runat="server" />
        <telerik:RadProgressArea id="RadProgressArea1" runat="server" onclientprogressbarupdating="onClientProgressBarUpdating" />
    </div>   
  
<br />
  
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  
    <table align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <asp:Label ID="lblErrMsg" runat="server" Visible="false" ForeColor="Red" Font-Bold="true" />
                <table cellspacing="0" cellpadding="4" align="center" class="odehilite">
                    <tr>
                        <td align="right" nowrap="nowrap">Browse for your file: </td>
                        <td>                            
                            <telerik:radupload 
                                id="fUpload"
                                runat="server"
                                maxfileinputscount="1" EnableFileInputSkinning="false"
                                ControlObjectsVisibility="None"
                                    EnableEmbeddedBaseStylesheet="true"
                                    InputSize="50"
                                    Width="475px"
                                    OverwriteExistingFiles="true"
                                    ReadOnlyFileInputs="true"
                                allowedfileextensions=".txt,.doc,.docx,.xls,.xlsx,.pdf,.htm,.html,.asp,.aspx,.ppt,.pptx,.pps,.ppsx,.csv,.gif,.jpg,.zip,.dat,.mdb,.xml,.smf,.dbf,.jpeg"
                                maxfilesize="1073741824" />
  
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">
                            Image Validation
                        </th>
                    </tr>
                    <tr>   
                        <td align="center" colspan="2" style="padding-bottom: 1px;">
                            <telerik:RadCaptcha ID="RadCaptcha1" runat="server" ErrorMessage="Incorrect validation text entered" EnableRefreshImage="true" ValidatedTextBoxID="txtValidateImage" 
                                ValidationGroup="SubmitFile" >
                                <CaptchaImage ImageCssClass="imageClass" EnableCaptchaAudio="true" BackgroundNoise="High" LineNoise="Medium" TextChars="LettersAndNumbers" TextLength="6" RenderImageOnly="true" />
                            </telerik:RadCaptcha>
                        </td>
                    </tr>
                    <tr>    
                        <td align="center" colspan="2" style="padding-bottom: 1px;">
                            Text from image: <asp:TextBox ID="txtValidateImage" runat="server" MaxLength="6" ValidationGroup="SubmitFile" Font-Names="'Segoe UI', Arial, sans-serif" Font-Size="12px" ToolTip="Validate image." />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center" style="padding: 0 0 2px 0;" >
                            <table width="80%" cellpadding="0">
                                <tr>
                                    <td align="center">
                                        <asp:Button ID="btnSubmitFile" runat="server" Text="Send File" CausesValidation="true" UseSubmitBehavior="true" CssClass="RadUploadSubmit" ValidationGroup="SubmitFile" />
                                    </td>
                                    <td align="center">
                                        <asp:Button ID="btnReset" runat="server" Text="Reset" CausesValidation="false" CssClass="RadUploadSubmit" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
  
        <script type="text/javascript">
  
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            var originalClientSubmit;
  
            if (!originalClientSubmit) {
                originalClientSubmit =
                Telerik.Web.UI.RadProgressManager.prototype._clientSubmitHandler;
            }
  
            Telerik.Web.UI.RadProgressManager.prototype._clientSubmitHandler = function (e) {
                if (!prm._postBackSettings.async) {
                    originalClientSubmit.apply(this, [e]);
                }
            }
  
            //<![CDATA[
            function onClientProgressBarUpdating(progressArea, args) {
                progressArea.updateHorizontalProgressBar(args.get_progressBarElement(), args.get_progressValue());
                args.set_cancel(true);
            }
            //]]>
  
            function findValidator(validid) {
                if (typeof (Page_Validators) == "undefined") return;
                for (var i = 0; i < Page_Validators.length; i++) {
                    var vld = Page_Validators[i];
                    var str = vld.id;
                    if (str.search(validid) > -1) return vld;
                }
            }
  
            function ValidatetxtMsg(source, arguments) {
                if (arguments.Value.indexOf("<") == -1 && arguments.Value.indexOf(">") == -1) {
                    arguments.IsValid = true;
                } else {
                    arguments.IsValid = false;
                }
            }
          </script>
  
</telerik:RadCodeBlock>
</asp:Content>
Slav
Telerik team
 answered on 24 Oct 2011
2 answers
110 views
Ok, I would like to say I know that you can only add rows programatically by using a datasource and modifying that.

However, i've been googling and searching for a number of hours, and i still cant find a solution.

I am using (VB.Net)


I am trying to figure out how to add rows 'programatically', i have a list that i am compiling on page load...

I would like:

Check Box, image field, and 3 bound fields.

Can anyone give me a quick and simple code snippet to adding values to these rows?
TIM
Top achievements
Rank 1
 answered on 24 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?