Additonal Fields needs to be in one line.

Thread is closed for posting
1 posts, 0 answers
  1. Purvish
    Purvish avatar
    1 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    Hi telerik Team,

    I have created  HTML dropdown and HTML input box as Additional fields for RADUpload, everything is working fine but I want all of them in one row , please advise how can I achieve it.

    I have attached screentshot also. I tried jquery approach which u mentioned in another thred but seems like it's not working for me.



    function addTitle(radUpload, args) {              

                    var curLiEl = args.get_row();

                    var firstInput = curLiEl.getElementsByTagName("input")[0];

                    //Create a simple HTML template.

                    var table = document.createElement("table");

                    table.className = 'AdditionalInputs';

                    //A new row for a Title field

                    row = table.insertRow(-1);

                    cell = row.insertCell(-1);


                    select = document.createElement("select");


           = "SubmissionType";

                    select.className = "DropDownList";

           = = radUpload.getID(;

                    var labelDocType = CreateLabel("Document Types: ",;



                    addOption(select, "------- Select Document Type -------", "0");


                    input = CreateInput("SubmissionForm", "hidden");

           = "SubmissionForm";

           = = radUpload.getID(;               


                    select.onchange = function () { assignHiddenInput(); }; // Call function on Dropdown change event.


                    //A new row for a Title field

                    row = table.insertRow(-1);

                    cell = row.insertCell(-1);

                    var inputTitle = CreateInput("Title", "text");

                    inputTitle.className = "TextField";

           = = radUpload.getID(;

                    var label = CreateLabel("Notes about Documents if any: ",;


                    //cell = row.insertCell(-1);



                    var fileInputSpan = curLiEl.getElementsByTagName("span")[0];

                    var firstNode = curLiEl.childNodes[0];

                    label = CreateLabel("Upload File : ",radUpload.getID());

                    curLiEl.insertBefore(label, firstNode);

                    curLiEl.insertBefore(table, label);              



    Purvish Shah.



Back to Top