Hi,
I would like to render the remove and add buttons as links rather than buttons, is this possible?
I don't think the add button is such a problem as i can just add javascript to an anchor to call the addFileInput method. The problem I am having is with creating a remove link, I will still render a remove link per file input, but how do you track or get the index to call the deleteFileInputAt method? Can you give me an example, I can't seem to figure out how your remove button works?
I currently have:
Am I going in the right direction here?
Thanks,
Jeff
I would like to render the remove and add buttons as links rather than buttons, is this possible?
I don't think the add button is such a problem as i can just add javascript to an anchor to call the addFileInput method. The problem I am having is with creating a remove link, I will still render a remove link per file input, but how do you track or get the index to call the deleteFileInputAt method? Can you give me an example, I can't seem to figure out how your remove button works?
I currently have:
| function OnClientAddedHandler(upload, eventArgs) { |
| if (upload.get_controlObjectsVisibility()) { |
| var row = eventArgs.get_row(); |
| var removeRowLink = document.createElement("a"); |
| removeRowLink.href = WHAT DO I PUT HERE?? |
| removeRowLink.title = "remove file"; |
| removeRowLink.innerHTML = "remove"; |
| row.appendChild(removeRowLink); |
| } |
| } |
Am I going in the right direction here?
Thanks,
Jeff