BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
$("#taskorderlist").ejTab({ headerPosition: "left", heightAdjustMode : ej.Tab.HeightAdjustMode.Fill, heigth: "800px", showCloseButton: canDelete, beforeItemRemove: function(args) { var tabObj = $("#taskorderlist").data("ejTab"); if (tabObj.getItemsCount() == 1) { args.cancel = true; return; } if (!confirm("Do you want to delete the Task Order?")) args.cancel = true; }, itemRemove: function(args) { var model = args.model; var itemToRemove = $(args.removedTab.find("a")[0]).attr("rel='nofollow' href").replace("#taskorder",""); var objData = { idStudy: @(Model.Study.Id), idTaskOrder: itemToRemove } var jqxhr = $.post("@Url.Action("DeleteTaskOrder")", objData) .done(function (data) { var tabObj = $("#taskorderlist").data("ejTab"); if (tabObj.getItemsCount() == 1) { tabObj.showCloseButton = false; } }) .fail(function (data) { alert("error"); }) .always(function () { //alert("finished"); }); } });
Please check with the provided samples and let us know if it helps. If still you are facing the problem, please provide more details about the css that are using in your project or else reproduce the issue in given sample and revert us. This will be easy for us to provide the exact solution
Regards,
Sasikala Nagarajan
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Sasikala Nagarajan