Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
255 views

Hi. i like that AsyncUpload is able to automically create a new file upload control to allow multiple uploads. but i wants to know is it possible to add additional field to each row? i want to add a dropdown list for users to select the document type of the file he uploaded

 

My Code:

01.<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" OnClientFileUploaded="onClientFileUploaded" MultipleFileSelection="Automatic"></telerik:RadAsyncUpload>
02.
03.<script>
04.
05.    (function () {
06.
07.        window.onClientFileUploaded = function (radAsyncUpload, args) {
08.            var row = args.get_row(),
09.                inputName = radAsyncUpload.getAdditionalFieldID("documentType"),
10.                inputType = "text",
11.                inputID = inputName,
12.                input = createInput(),
13.                label = createLabel(inputID),
14.                br = document.createElement("br");
15.
16.            row.appendChild(br);
17.            row.appendChild(label);
18.            row.appendChild(input);
19.        }
20.
21.        function createInput() {
22.            var input = document.createElement("select");
23.              var option = new Option();
24.              option.value = "HR";
25.              option.text = "HR";
26.              input.options.add(option);
27.
28.           var option1 = new Option();
29.           option1.value = "Finance";
30.           option1.text = "Finance";
31.            input.options.add(option1);
32.
33.              var option2 = new Option();
34.              option2.value = "IT";
35.              option2.text = "IT";
36.              input.options.add(option2);
37.            return input;
38.        }
39.
40.        function createLabel(forArrt) {
41.            var label = document.createElement("label");
42.
43.            label.setAttribute("for", forArrt);
44.            label.innerHTML = "Document Type: ";
45.
46.            return label;
47.        }
48.    })();
49.</script>

 

i receive the error shown in attached image

Benjamin
Top achievements
Rank 1
 answered on 18 Nov 2016
5 answers
468 views

Hi,

All my radbutton found my application pages can be click even when it's disabled. Is it anything to do with the RadSkin that I'm using? Also my javascript popup for confirmation will still execute even when i click on the cancel button. Can anyone help me? Thanks in advance.

Regards,
Dylan
Rumen
Telerik team
 answered on 17 Nov 2016
8 answers
218 views
Hi,

I want to add a usercontrol into a node from treeview dynamically, and I think that this node will be inserted in a nodetemplate. I searched through forum, but I didn't find about it.

If someone knows please tell me.

Thanks
Aya
Top achievements
Rank 1
 answered on 17 Nov 2016
3 answers
551 views

Has anyone experienced a problem where the standard Previous button created by the RadWizard control always causes validation to occur when clicked?

The Telerik documentation states that the previous button does not cause validation, however when I click previous, any field validators that fail will stop the wizard from moving to the previous step.

I've looked through the object properties and methods but cannot find any way to modify the previous button properties.

The version I'm using is 2015.2.623.40 according to the DLL file information.

Ivan Danchev
Telerik team
 answered on 17 Nov 2016
1 answer
127 views
We need more space to see the file names as many filenames vary by only the last few characters. We are using version 2011.2.712.40. What do I need to do to increase the space for the filenames?
Rumen
Telerik team
 answered on 17 Nov 2016
1 answer
97 views

hi all,

I am new to telerik . I had a doubt regarding how to use radcombobox and editable textbox inside a radgrid.

I have attached the image for better understanding.

Each row in radgrid i need radcomboxbox and editable textbox and commands against them . Commands are edit,save,delete.

 

 

Eyup
Telerik team
 answered on 17 Nov 2016
4 answers
258 views

I have an ASP.Net page with Telerik controls like the RadMenu, RadButtons, RadTextBox, RadLabels, and RadioButtonList at the top of the page.

After the Telerik controls there is a Crystal Report Viewer control.

I need a way to keep all the Telerik controls at a fixed position at the top of the page so that no matter how the user scrolls the rest of the page including the Crystal Report Viewer, that all the Telerik controls will stay in view.  This needs to be able to work on mobile devices (Android, iOS, Windows) as well.

I have tried using CSS position: fixed with a div but that does not work well and gets even worse on Android devices.

Any ideas?

Please help.

Sincerely,

Keith Jackson

Keith
Top achievements
Rank 1
 answered on 16 Nov 2016
1 answer
125 views

Hi,

 

KeepInScreenBounds is not working on Lightweight rendering 2016.3.1027 skin Default

What could this be?

BR
Marc

Marin Bratanov
Telerik team
 answered on 16 Nov 2016
8 answers
305 views

Dear Team mates,

I've a problem with the RadScheduler TimeSlot. and I want to remove the Default Week-end Column Color and Adding colour to some other column using the following code.


void
RadScheduler1_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e)

{


    if (e.TimeSlot.Start.Date.DayOfWeek == DayOfWeek.Friday)

        e.TimeSlot.CssClass = "rsSunCol";

    else if (e.TimeSlot.Start.Date.DayOfWeek == DayOfWeek.Thursday)

        e.TimeSlot.CssClass = "rsSatCol";

    else

 

        e.TimeSlot.CssClass.Replace("rsSunCol", string.Empty);  // e.TimeSlot.CssClass =  string.Empty;
}

as it's given in the existing code, Friday and Thursday has it's differentiation with the different week-end color. but I cannot remove the Saturday and Sunday Color.

please let me know hot to replace the CssClass of the default week-end (Sat & Sun) as a normal column.



Thanks in Advance.





Veselin Tsvetanov
Telerik team
 answered on 16 Nov 2016
1 answer
183 views

How do I go about setting a ToolBarButton image sprite on the client side? I want to change the sprite css class depending on user action.

On the server side, I successfully set the sprite for the buttons "Option1" and "Option2" in my toolbar "rtbarLs" like this:

RadToolBarButton rtbb1 = (RadToolBarButton)rtbarLs.FindItemByValue("Option1");
rtbb1.SpriteCssClass = "spriteCheck";
rtbb1.EnableImageSprite = true;
RadToolBarButton rtbb2 = (RadToolBarButton)rtbarLs.FindItemByValue("Option2");
rtbb2.SpriteCssClass = "spriteBlank";
rtbb2.EnableImageSprite = true;

 

On the client side, I tried this:

var rtbarSumm = window.$find("<%= rtbarLs.ClientID %>");
rtbarSumm.findItemByValue('Option2').set_spriteCssClass("spriteCheck");

 

but the spriteCssClass for ToolBarButton "Option2" is still "spriteBlank". Note that there is no JavaScript error reported in the debugger console.

Thoughts?

Ivan Danchev
Telerik team
 answered on 16 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?