<label for="resume">Upload Resume</label><BR> <div class="clear" style="height: 8px"></div><BR> <a href="#" id="upload">Select a PDF</a><span id="filename"></span><BR> <asp:FileUpload ID="FileRadUpload" runat="server" accept="application/pdf" style="visibility:hidden;height:0;" /><BR> <asp:CustomValidator ID="Customvalidator1" runat="server" Display="Dynamic" ValidationGroup="Validate"<BR> ControlToValidate="FileRadUpload" ClientValidationFunction="validateRadUpload"<BR> CssClass="errormessage" SetFocusOnError="true"><BR> <span class="errormessage">Only PDF extension are allowed</span><BR> </asp:CustomValidator> <BR> <div class="clear"></div><BR> </div><!--/field--> <BR> <div class="field"><BR> <label for="position">Desired Position:</label><BR> <telerik:RadTextBox ID="PositionRadTextBox" runat="server" EmptyMessage="" TextMode="SingleLine" CssClass="gray-02"></telerik:RadTextBox><BR> <asp:RequiredFieldValidator ID="PositionRequiredfieldvalidator" runat="server" Display="Dynamic" CssClass="errormessage" ValidationGroup="ContactGroup" ControlToValidate="PositionRadTextBox" ErrorMessage="Enter position"></asp:RequiredFieldValidator> <BR> </div><BR> <div class="field"><BR> <asp:Button ID="submit" runat="server" CssClass="submit" Text="Submit" OnClick="SubmitButton_Click" ValidationGroup="ContactGroup" /><BR> </div><BR>
function extendedFileExplorer_onGridContextItemClicked(oGridMenu, args) {
var menuItemText = args.get_item().get_text();
switch (menuItemText) {
case "Download":
extendedFileExplorer_sendItemsPathsToServer();
break;
case "Share":
var fExplorer = $find("<%= RadFileExplorer1.ClientID %>");
var item = fExplorer.get_selectedItem();
var owindow = window.radopen("ShareResource.aspx?path=" + item.get_path(), "ShareResourceWindow");
return false;
break;
}
}
function extendedFileExplorer_sendItemsPathsToServer() {
var oExplorer = $find("<%= RadFileExplorer1.ClientID %>"); // Find the RadFileExplorer ;
var selectedItems = oExplorer.get_selectedItems(); // Retrieve the selected items ;
var selectedItemsPaths = extendedFileExplorer_combinePathsInAString(selectedItems); // Get the paths as a string in specific format ;
var hiddenField = $get("<%= ctlHiddenField.ClientID %>"); // Find the hiddenField
hiddenField.value = selectedItemsPaths;
__doPostBack(
"<%= btnDownload.UniqueID %>", ""); // Call the 'btnDownload_Click' function on the server ;
}
function extendedFileExplorer_combinePathsInAString(arrayOfSelectedItems) {
var itemPaths = new Array();
for (var i = 0; i < arrayOfSelectedItems.length; i++) {
// Pass all the selected paths ;
itemPaths.push(arrayOfSelectedItems[i].get_path());
}
// Return a string that contains the paths ;
return itemPaths.join("|");
}