Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
405 views
How do I use my own save button vs the save in the toolbar? The save button in the toolbar works perfectly but does not fit the theme of our application as we have save button on all other areas and want to make this one the same. The toolbar save button can remain there too.
Vessy
Telerik team
 answered on 07 Jul 2016
3 answers
319 views

I think I'm doing something wrong here. I have a RadAsyncUpload control and a submit button on the page to cause the postback. All I want to do is prevent the postback if no file has been selected, or have the submit button disabled until a file is selected. If it makes any difference this is all inside of a RadWindow.

Here's the markup for the RadAsyncUpload

<div class="formRow" id="divAttachFile" runat="server" style="height: 60px;">
     <div class="floatLeft">
         <label for="asyncFlUpldAttachment"><span id="spnUploadFileMark" runat="server" class="validator">*</span> Upload File: </label>
         <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MaxFileSize='<%$ AppSettings:MAXATTCHFILESIZE %>'
             MultipleFileSelection="Disabled" MaxFileInputsCount="1" AllowedFileExtensions='<%$ AppSettings:ATTCHFILEEXTNS %>'
             EnableInlineProgress="true" TemporaryFileExpiration="36000"
             OnClientValidationFailed="validationFailed"
             OnClientFileUploading="fileUploading"
             OnClientFileUploadFailed="fileUploadFailed"
             PostbackTriggers="lnkBtnAttachmentCancel"
             TabIndex="100">
         </telerik:RadAsyncUpload>
         <span id="ErrorHolder" style="display: none" class="validator"></span>
     </div>
 </div>

Here's the current JavaSrcipts, pretty much straight from your samples

<script type="text/javascript">
    var pageIsValid = true;
    function validationFailed(sender, args) {
        $("#ErrorHolder").show();
        var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length);
        if (args.get_fileName().lastIndexOf('.') != -1) {//this checks if the extension is correct
            if (sender.get_allowedFileExtensions().indexOf(fileExtention) == -1) {
                $("#ErrorHolder").html("Wrong Extension! Verify file.");
            }
            else {
                $("#ErrorHolder").html("The file size exceeds the limit");
            }
        }
        else {
            $("#ErrorHolder").html("Wrong Extension! Verify file");
        }
        sender.deleteFileInputAt(0);
    }
 
    function fileUploading(sender, args) {
        $("#ErrorHolder").hide();
    }
 
    function fileUploadFailed(sender, args) {
        $("#ErrorHolder").show();
        $("#ErrorHolder").html("File upload failed for:" + args.get_fileName());
        sender.deleteFileInputAt(0);
    }
</script>

 

Thanks

Rodney

Ivan Danchev
Telerik team
 answered on 07 Jul 2016
18 answers
549 views

What is the proper way to make a window 'responsive'. We are revamping our application to use the RadPageLayout on all our pages and that has been going well thus far. The only issue is the RadWindows we use for our 'popups'. When I use the same technique as for our main pages the boxes in the rad window are all about 2 pixels wide. What is the proper way to accomplish things so the popup will be size appropriate as well?

 

Thanks!!

DogBizPro
Top achievements
Rank 1
 answered on 07 Jul 2016
1 answer
84 views

Hello,

I have a Rad grid with combination of Bound & Template columns in it.
On page load I used Need Data Source handler to bind the rad grid.

Now in my case for page actions I am trying to bind the Rad grid from client side by calling Web Method via $.Ajax() function.

Here, bound columns gets populated correctly however, the text of label control in grid template column not showing.

I have tried many alternate ways to bind the template column at client side with no success. 
Could someone please advise how should I display the text of label control in grid template column on client side binding?

Viktor Tachev
Telerik team
 answered on 07 Jul 2016
9 answers
138 views
Hi,

I  have used the below code to play the FLV video on the rad editor its working fine in IE.but its not working in firefox.Any help would be appreciated.

<OBJECT codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width=512>
 <param name='flashvars' value='file=http://122.165.16.58:91/CourseBuilder/Video/sample.flv' /><param name='movie' value='http://122.165.16.58:91/CourseBuilder/Video/player.swf' /><embed src='http://122.165.16.58:91/CourseBuilder/Video/player.swf'  originalAttribute="src" originalPath='http://122.165.16.58:91/CourseBuilder/Video/player.swf' width='512' height='300' bgcolor='#FFFFFF' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='file=http://122.165.16.58:91/CourseBuilder/Video/sample.flv' ></OBJECT>

Thanks,

Anand
Ianko
Telerik team
 answered on 07 Jul 2016
3 answers
107 views
Hello,

For the RadProgressArea that appears whenever a file is being uploaded to the server, is it possible to have the RadProgressArea not show the second progress bar?  Only the first progress bar is important to me, and I don't need the second one.

Thanks.
Ivan Danchev
Telerik team
 answered on 07 Jul 2016
22 answers
5.4K+ views
Is there a way to cause an already bound RadGrid to rebind to the same datasource?  I have a page with a RadGrid that uses RadAjax.  If the user selects a row or clicks a button on the page, a RadWindow is opened to edit that item or create a new entry.  Once the RadWindow closes, I need to refresh the data in the RadGrid.  A partial postback is fine, but I don't want to have to do a full postback.  I have tried to set the datasource again and run dataBind from the client side, but it just gives me a blank grid with extra rows.  I also tried to get the RadAjax manager and run ajaxRequestWithTarget on the RadGrid, which reloaded the grid, but with the same old values.  Is there a way to rebind the RadGrid with client side code?
Satish
Top achievements
Rank 1
 answered on 07 Jul 2016
4 answers
114 views
My form has two dropdownlist with initial value '-Select-', some text boxes and fileupload with restrictions in extension and size. I need validation summary in Radwindow and also need individual validation in radwindow itself. Please provide solution. Stuck for many days.

Thank you.
Marin Bratanov
Telerik team
 answered on 07 Jul 2016
1 answer
191 views

Hi,

We are facing problem for column sorting in RadGrid. We are adding columns dynamically to grid. and values are set in Itemdata bound event.

can anyone help and provide suggestion on this? so that grid column sorting works on these dynamic generated columns once the data is loaded or bound in Itemdatabound.

 

Thanks

 

 

 

umesh
Top achievements
Rank 2
 answered on 07 Jul 2016
5 answers
463 views

Hello Telerik!

I need your help urgently. I am stuck in this problem since 2 days. I have a Rad Window which is opened in javascript. This window is opened as maximized using oWnd.maximize();

This window's content .aspx page is having a RadTabStrip with RadMultiPageView. The width of RadMultiPage is set in Pixels.

 When I restore the window and resize it , It should be showing the scroll bars as now the content of the window is beyond the size of the window. And this is what happens in FF and IE.. which is correct but I don't see any scrolls in the Chrome. 

 

I have spent a lot of time in this issue and still not able to figure it out... Kindly help me with this problem... or is this a known Chrome issue as it works fine in FF and IE.

 

Regards,

Nick.

 

Nick
Top achievements
Rank 1
 answered on 06 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?