sortable

数据库的值获取过来转换成Json数组的方法

纵然是瞬间 提交于 2020-02-23 15:38:09
.cs文件的主要代码: public class User_List //这个类是对应是Extjs的Grid的field里面的,field有几项就写几项 { public int VoteID = 0; public string VoteName = ""; public DateTime SystemDateTime = DateTime.Parse(DateTime.Today.AddDays(1).ToString("yyyy-MM-dd")); public DateTime EndTime = DateTime.Parse(DateTime.Today.AddDays(1).ToString("yyyy-MM-dd")); public string IsStatus = "禁用"; public int SubmitTimes = 0; }protected List<User_List> lst = new List<User_List>();//创建数组protected User_List userlst = new User_List();//定义的类设置对象for (int i = 0; i < limit; i++)//遍历获取值 { userlst = new User_List();//每次循环就新定义对象,不然复制的都是同一组值,每次覆盖原来复制的

BootstrapTable(附源码)

风流意气都作罢 提交于 2020-02-14 04:36:27
Bootstrap结合BootstrapTable的使用,分为两种模试显示列表。 引用的css: <link href="@Url.Content("~/Css/bootstrap.min.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Css/bootstrap-table.css")" rel="stylesheet" type="text/css" /> 引用的JS: <script src="../../Scripts/jquery.js" type="text/javascript"></script> <script src="../../Scripts/bootstrap.min.js" type="text/javascript"></script> <script src="../../Scripts/bootstrap-table.js" type="text/javascript"></script> <script src="../../Scripts/bootstrap-table-zh-CN.js" type="text/javascript"></script> 常用方法: 刷新表格:$table.bootstrapTable('refresh');

Web UI开发神器—Kendo UI for jQuery数据管理之网格排序

蓝咒 提交于 2020-01-20 11:21:09
Kendo UI for jQuery R3 2019 SP1试用版下载 Kendo UI 目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四个控件。Kendo UI for jQuery是创建现代Web应用程序的最完整UI库。 本文主要介绍如何使用Kendo UI for jQuery数据管理中的网格排序功能,默认情况下,禁用网格排序。 <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="styles/kendo.common.min.css" /> <link rel="stylesheet" href="styles/kendo.default.min.css" /> <link rel="stylesheet" href="styles/kendo.default.mobile.min.css" /> <script src="js/jquery.min.js"></script> <script src="js/kendo.all.min.js"></script> </head> <body> <script src="..

旅游项目管理开发之树结构

℡╲_俬逩灬. 提交于 2019-12-05 03:50:17
1.type_list.js var columns = [ { field : 'selectItem', radio : true }, { title : '分类id', field : 'id', visible : false, align : 'center', valign : 'middle', width : '80px' }, { title : '分类名称', field : 'name', align : 'center', valign : 'middle', sortable : true, width : '180px' }, { title : '上级分类', field : 'parentName', align : 'center', valign : 'middle', sortable : true, width : '180px' }, { title : '排序号', field : 'sort',//与数据库查询的属性一一对应 align : 'center', valign : 'middle', sortable : true, width : '100px' }]; $(document).ready(function () { //给删除按钮绑定删除事件 $("#formHead").on("click",".btn

jQuery: Sortable nested list?

匿名 (未验证) 提交于 2019-12-03 09:18:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i'm building a website which has a parent-child Paging structure. I'm looking for a convenient way to administrate the website structure. I want the pages to be sortable Releasing the jQuery sortable code on my generated sitemap (nested UL), doesn't work properly... $('ul.SiteMap ul').sortable(); What's really important is that it should not be possible to sort outside of the current UL. Any suggestions? Thanks in advance. 回答1: It works fine for me. I just assigned each ul to be sorted to a class and then did the following: $('.sortableList'

jQueryUI draggable + sortable bug (Cannot read property &#039;options&#039; of undefined)

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My question seems to resemble this question: dragging from a sortable list to a drag and drop plugin But since there is no answer given to that one i was wondering if anybody could / would be able to figure it out with me. The issue i am having is that i create a draggable div and append this into a div that is made sortable. When i specify any arguments like so: $(el).sortable({ ... arguments ... }); It causes an error when element is dropped see below, when left empty it strangely works fine and has no issues. The error also prevents any

jQuery iframeFix on a Sortable

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: On my CMS I have a list of thumbnails (Sortable). The thumbnails work great and now I'm writing a plug-in to drag-them to a tinyMCE window. As the tinyMCE window has an iFrame it doesn't work that well. jQuery has an option for Draggables called iframeFix that works exactly as I need. However that list must be a Sortables. I've looked quite extensively on Google and found no-one with my requirements. Has anyone here on StackOverflow done it? Apply the iframeFix to a Sortables? If not... I'm on my way to a jQuery plug-in. Thank you in advance

jQuery: draggable connect to sortable. draggable item has a different DOM from sortable list

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am now able to drag an item to a sortable. But the sortable list has a different DOM. <!-- The draggable items. Has the "original" DOM in the LI tags. --> <ul class="draggable_text"> <li><span>DRAG THIS A</span></li> <li><span>DRAG THIS B</span></li> </ul> <!-- This list has a different DOM in the LI tags --> <ul id="stagerows"> <li><p>This is a new DOM dragged from "DRAG THIS A"</p></li> <li><p>This is a new DOM dragged from "DRAG THIS B"</p></li> </ul> $(document).ready(function() { $('.draggable_text > li').draggable({ //helper:'clone',

Saving JQuery Sortable (new order) to ASP.Net MVC controller?

匿名 (未验证) 提交于 2019-12-03 02:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've implemented JQuery sortable, and it works fine. The problem is I can't pass the list in its new order to a controller so i can save it. <script type = "text/javascript" > $ ( document ). ready ( function () { $ ( "#sortable" ). sortable ({ axis : "y" }); }); $ ( function () { $ ( "#submit-list" ). button (); $ ( "#submit-list" ). click ( function () { debugger ; $ . ajax ({ url : '/Admin/SortedLists/' , data : { items : $ ( "#sortable" ). sortable ( 'toArray' ) }, type : 'post' , traditional : true }); }); }); </script> <h2>

While editing any field of expand column of treegrid in jqgrid.. getting html contents of that cell, not the actual value. Any Solution?

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In jqgrid for treegrid, when i click on the value displayed in a cell of expandColumn:'name' column to edit it, i am getting the html for the contents within the cell. The html content i get is :- <div class="tree-wrap tree-wrap-ltr" style="width: 54px;"><div style="left: 36px;" class="ui-icon ui-icon-radio-off tree-leaf treeclick"></div></div><span class="cell-wrapperleaf">Sub-subtask1</span> Though my actual value is only :- Sub-subtask1 My grid set up is as below :- jQuery("#tree").jqGrid({ url:'json/jsonSamplePots.json', datatype: "json"