Show Posts
|
Pages: [1]
|
2
|
General Category / General Discussion / how to fire onStopDrag event when stop drag the div
|
on: December 11, 2013, 10:37:28 PM
|
how to fire onStopDrag event when stop drog the div . my code <div id="a" ></div> $('#a').draggable({ revert: false, // proxy: 'clone', onStartDrag: function (e) { $(this).draggable('options').cursor = 'not-allowed';
}, onStopDrag: function (e) { drag(); } }); the function drag don't be triggered when I stop drag the div.it is just too weired.anyone can help? thanks a lot! blari
|
|
|
3
|
General Category / General Discussion / how to make the slider center
|
on: September 04, 2013, 08:29:10 PM
|
Hi,
My code: <div style="position: absolute; left: 50px; top: 60px; width: 80px; height: 200px; z-index: 1;cursor:pointer;text-align: center;"> <div style="margin-left: auto;margin-right: auto;" ><img title="ZOOM IN" onclick="bigit();" src="../../EMapImg/zoom_in.gif" /></div> <div> <input id="ss" class="easyui-slider" value="12" style="height: 140px;width:26px;" /> </div> <div style="margin-left: auto;margin-right: auto;"><img title="ZOOM OUT" onclick="smallit();" src="../../EMapImg/zoom_out.gif" /></div> </div>
<script type="text/javascript"> $('#ss').slider({ mode: 'v', tipFormatter: function (value) { return value + '%'; } }); </script>
I tried many ways ,but failure.The slider still stay on the left side of the div layer
Anyone can achieve! Thanks! Blari
|
|
|
4
|
General Category / General Discussion / Re: fit property of datagrid doesn't work
|
on: August 07, 2013, 01:17:57 AM
|
Hi, thank you very much!The solution is to remove the table div layer about the question. It's really effective,but there is still a problem! The footer of datagrid isn't display! I debugging by FireBug,find that the footer's style ="display:none",so the pagination property doesn't work! Thank you again for your answers!
|
|
|
6
|
General Category / General Discussion / Re: fit property of datagrid doesn't work
|
on: August 05, 2013, 01:11:52 AM
|
Hello,
I'm sorry for I I didn't completely copy the code。 <div data-options="region:'center'" style="overflow:hidden;"> <div id="toolbar" class="toolbar"> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick=" "> </a> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick=" "> </a> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick=" "> </a> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick=" "> </a> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-setpos',plain:true" onclick=" "> </a> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-setpos',plain:true" onclick=" "> </a> </div> <div id="w_list_print" > <table id="dg" width="80%" class="easyui-datagrid" data-options="url:'@Url.Content("~/ /List")', pagination:true, singleSelect:true, rownumbers:true, pageList:[15,20,30], columns:[[ {field:'XM',title:'@resBaseinfo.name',width:150}, {field:'RYBH',title:'@resBaseinfo.card_rybh',width:120}, {field:'KXLH',title:'@resBaseinfo.card_kh',width:100}, {field:'SSBMJG',title:'部门',width:100}, {field:'KMBH',title:'@resBaseinfo.card_kmbh',width:100}, {field:'KZT',formatter:formatKZT,title:'@resBaseinfo.card_kzt',width:100} ]]"> </table> </div> </div>
then add the fit property ,the data still can't load and the pagination don't show!I don't know what's wrong
|
|
|
7
|
General Category / General Discussion / Re: fit property of datagrid doesn't work
|
on: August 04, 2013, 10:39:24 PM
|
hello,
I know how to use the fit ,but it doesn't work. Below is my code. <div data-options="region:'west',title:'权限组信息',split:true" style="width:150px;"> <div> <ul id="treeqm" width="98%" class="easyui-tree" data-options=" url: '@Url.Content("~/Permission/ListPermTree")', onClick: function (node) { $('#dg').datagrid({ url:'@Url.Content("/Permission/List")?qxzid='+node.id, pagination:true, singleSelect:true, rownumbers:true, pageList:[15,20,30], columns:[[ {field:'XM',title:'@resBaseinfo.name',width:150}, {field:'RYBH',title:'@resBaseinfo.card_rybh',width:120}, {field:'KXLH',title:'@resBaseinfo.card_kh',width:100}, {field:'BMMC',title:'部门',width:100}, {field:'KMBH',title:'@resBaseinfo.card_kmbh',width:100}, {field:'KZT',formatter:formatKZT,title:'@resBaseinfo.card_kzt',width:100} ]] }); } "></ul> </div> </div>
<div id="w_list_print" > <table id="dg" width="80%" class="easyui-datagrid" data-options="url:'@Url.Content("~/Permission/List")', pagination:true, singleSelect:true, rownumbers:true, pageList:[15,20,30], fit:true, columns:[[ {field:'XM',title:'@resBaseinfo.name',width:150}, {field:'RYBH',title:'@resBaseinfo.card_rybh',width:120}, {field:'KXLH',title:'@resBaseinfo.card_kh',width:100}, {field:'SSBMJG',title:'部门',width:100}, {field:'KMBH',title:'@resBaseinfo.card_kmbh',width:100}, {field:'KZT',formatter:formatKZT,title:'@resBaseinfo.card_kzt',width:100} ]]"> </table> </div>
I click on the left side of the tree,data loading to the right,but I add the fit property,the data cann't loaded and the pagination don't show !
|
|
|
8
|
General Category / General Discussion / a question about data of datagrid
|
on: August 01, 2013, 08:02:31 PM
|
Hi , I get the data from datagrid ,the data types is Json.I want to transform Json string ,but the IE can't with the JSON.JSON.stringify ! I don't want to write a method. sombody in this kind of problem? Please show ! thanks! ;
|
|
|
|