Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By chanatsamon
#822960
Hi,

I tried to disable the grid with JavaScript.
Code: Select all
$("#contractorList").find("input,button,textarea,select").attr("disabled", true);
But it doesn't work with multipleFile.
Could you advise me?
User avatar
By ziadeh
#822963
Multiple files upload in grid I think its something different while disabling it, you can use this:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").removeClass("pm-multiplefile-upload");
and if you want to enable it
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").addClass("pm-multiplefile-upload");
By MayerMonsalve
#825506
ziadeh wrote: Mon Feb 18, 2019 4:29 am Multiple files upload in grid I think its something different while disabling it, you can use this:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").removeClass("pm-multiplefile-upload");
and if you want to enable it
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").addClass("pm-multiplefile-upload");

I used the sent JS, but it completely disables the multiplefile and it does not let me see the loaded document. I need you to let me download the loaded document
User avatar
By ziadeh
#825507
You need to disable the upload button in a Modal window, try to use this code:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").click(function() {
setTimeout(function() {
	$("#modalUpload .btn-uploadfile").attr('disabled', 'disabled');
},0);
});
By MayerMonsalve
#825508
ziadeh wrote: Sun Jul 21, 2019 1:46 am You need to disable the upload button in a Modal window, try to use this code:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").click(function() {
setTimeout(function() {
	$("#modalUpload .btn-uploadfile").attr('disabled', 'disabled');
},0);
});

thank you! I tried it and it worked perfectly.for to disable the delete button, i use
$("div.multiplefile-button-delete").remove();
and this worked perfectly! Thank you very much!!!
Last edited by MayerMonsalve on Sun Jul 21, 2019 11:46 am, edited 1 time in total.

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]