Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

javascript - jQuery drag and drop -


i'm using jquery draggable. if table in div can move div table. when there input-button in div doesnt move. why?

$(".multidraggable").draggable(); 

doesnt work:

<div class="multidraggable" style="display: inline-block;">     <input type="button" value="Отчет за &#10; контрактные сутки &#10; без ТГК &rdquo;УрГРЭС&rdquo;" id="button1" style="font-family:arial; width: 200px; height: 80px;max-height:80px;max-width:200px; font-size:15" /> </div> 

works:

<div class="multidraggable" style="display: inline-block;">         <table id="maintable" frame="box" border="1" style="height: 565px" cellspacing="0" cellpadding="1">             <thead>                 <tr style="background-color:#ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png);">                     <th> ... </div> 

this used make draggable, maybe you...

// make items draggable...        $("#cmsdynamictoolbaritems").find("ul li")            .draggable({ containment: "#canvasareacoverpage",                 snap: true,                 scroll: false,                 helper: "clone",                 revert: "invalid",                 opacity: 1.0,                 cursor: "move"             });     

there various reasons, things cloning item, containing element can help, not needed. select id of html element first, add draggable it, start use classes draggable.


Comments