inline serverside with indicator
inline serverside with indicator
Hi,
I combined two examples, inline editing with submit button AND inline editing serverside.
My goal is to add loading indicator to the button after click
the best thing I came up with is using preSubmit
However, it's weird some times works some times not. Any advice please?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Without seeing what you've done, it's hard to say. Can you link to your page, or better still, modify this test case here to demonstrate the issue,
Colin
Hi Colin,
I modified the example here please note that it should use serverside script so there's some delay on update.
Also I notice it matters where you click on the button element. one click will show the loading icon, another click may make cell edit disappears. I ma not sure what's going on here
Hi Colin,
I think having the button label
label: '<i class="fa fa-check"></i>',
as html is the reason.the output of the inline submit button looks like this:
so when the click on the icon I guess it's treated as cell click thus the loading icon will not be shown ...
OK, it has been solved now.
key solution is using
event.stopPropagation();
to prevent click on the icon to act as click on the cell.Also, I used
delegateTarget
to accept click from the button itself or it's label html iconthis is my final buttons code:
also a simplified working demo here
Thank you Colin for your time.
Excellent, glad all working, thanks for reporting back,
Colin