﻿    var i = 0;
    function addAsterix(radUpload, args) {
   
        //If the checkboxes are hidden you should change the cell index to 0!
        var fileInputCell = args.Row.cells[0];
        //Create a span with the * sign and hide it
        var asterixSpan = document.createElement('span');
        asterixSpan.style.color = 'Red';
        asterixSpan.style.display = 'none';
        asterixSpan.innerHTML = '*';
        asterixSpan.id = radUpload.Id + 'Asterix' + i;

        //Append the span with * right after the file input 
        fileInputCell.firstChild.appendChild(asterixSpan);
        i++;
        //Increase the FileInputWidth container size (51 is default)
        // Used in combination with modify RadControls\Skins\[your skin]\RadUpload.css = .RadUploadInputField (change width and _width sizes)
        var cell = args.Row.cells[0];
        var inputs = cell.getElementsByTagName('INPUT');
         
        for (var x = 0; x < inputs.length; x++) {
            if (inputs[x].type == "file") {
                inputs[x].size = 30;
                $(inputs[x]).css('opacity',0);
            }
        }
    }




