Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
152 views
We have several locked columns in one of our grids which we would like to disable as drag targets. Anybody know how to do that?
Joe
Top achievements
Rank 2
 answered on 07 Jul 2016
2 answers
214 views

Hello,

 

I can't remove token from their autocompletebox,when the token is too long (see the picture attached).

 

Here is my code : 

<telerik:RadAutoCompleteBox runat="server" ID="radAutoCompleteBoxSelectionSite" 
                    DropDownAutoWidth="Enabled" Filter="Contains" Visible="True" CausesValidation="False" AutoPostBack="True"
                    Width="100%" EmptyMessage="<%$ Resources:Language, SelectSite%>" InputType="Token"
                    OnEntryAdded="radAutoCompleteBoxSelectionSite_EntryAdded" TextSettings-SelectionMode="Single" OnClientLoad="onLoadAutoComplete" MinimumPrefixLength="0" >
</telerik:RadAutoCompleteBox>

 

And here is my script :

<script type="text/javascript">
            function onLoadAutoComplete(sender, args) {
                window.$telerik.$(sender.get_inputElement()).on('keypress', function (e) {
                    if (sender.get_entries().get_count() > 0) {
                        e.preventDefault();
                    }
                });
            }

</script>

 

I would like to stay in token mode and not in text mode. They still can delete the element with the keyboard but it's not enought clear. Is there any solution ?

Thanks

Paul
Top achievements
Rank 1
 answered on 07 Jul 2016
6 answers
381 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
302 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
512 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
70 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
116 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
95 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.3K+ 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
106 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?