Enable Disable Button Using CSS
<style type="text/css">
.action-bar.action-bar-false { position:relative; }
.action-bar.action-bar-false .action { opacity:0.8; }
.action-disable { display:none;}
.action-bar.action-bar-false .action-disable { display:block; position:absolute; top:0; left:0; width:100%; height:100%; z-index:99;}
</style>
<style type="text/css">
.action-bar.action-bar-false { position:relative; }
.action-bar.action-bar-false .action { opacity:0.8; }
.action-disable { display:none;}
.action-bar.action-bar-false .action-disable { display:block; position:absolute; top:0; left:0; width:100%; height:100%; z-index:99;}
</style>
@{
string
partialstr = default(Guid)
!= ViewBag.parentid ? "action-bar"
: "action-bar action-bar-false";
<div class="@partialstr">
<div class="action-disable"></div>
<a href="#" class="action add"
title="Add Account
Type" onclick="return
ShowModal('ModalpopupAddAddress','popupcontainerAddAddress','@Url.Action("AddEditView",
"Address", new { parentID=ViewBag.ParentID})')"><i></i><span>Add</span></a>
</div>
}
No comments:
Post a Comment