jquery-ui-sortable

CodeIgniter create n-level deep navigation

荒凉一梦 提交于 2019-12-19 07:51:17
问题 I'd like some help please. I have created dynamic a menu navbar that displays the menu items accoridning to the order that I've set them. I'm using this nestedsortable plugin, to order my menu items, but currently my menu has only 2 levels, so basicly it goes like this: Item1 Item2 > Subitem2.1 > Subitem2.2 Item3 etc etc. What I'd like to do is make it with n-levels, so basicly something like this: Item1 Item2 > Subitem2.1 >> Subitem2.1.1 > Subitem2.2 Item3 etc etc. and each item can go n

CodeIgniter create n-level deep navigation

。_饼干妹妹 提交于 2019-12-19 07:50:06
问题 I'd like some help please. I have created dynamic a menu navbar that displays the menu items accoridning to the order that I've set them. I'm using this nestedsortable plugin, to order my menu items, but currently my menu has only 2 levels, so basicly it goes like this: Item1 Item2 > Subitem2.1 > Subitem2.2 Item3 etc etc. What I'd like to do is make it with n-levels, so basicly something like this: Item1 Item2 > Subitem2.1 >> Subitem2.1.1 > Subitem2.2 Item3 etc etc. and each item can go n

jQuery UI: Only allow sortable within its own parent level, and not above or below

一世执手 提交于 2019-12-19 00:40:44
问题 Basically using a list structure, I'm trying to make each li sortable within it's own level, but not within other levels. So if I'm dragging down Number 1 it won't mix with any of the sub ul's or li's but will only go below Number 2 . This is what I have so far, and while it does prevent li's from going ABOVE it's level, it doesn't prevent li's from mixing BELOW it's level. For example right now I can move Number 1 between Number 2.1 and Number 2.2 $(".sortable2, .sortable2 ul").sortable({

Making a DataGrid Column Header sortable in WPF using C#

你。 提交于 2019-12-18 13:54:21
问题 I am using C# in Visual Studio 2008 and I have install the WPF Toolkit. I created a DataGrid in testtest.xaml. The ID and Parts $ columns have the ability to sort the DataGrid by clicking on their respecteive column headers. However, the column header Complete Date does not have that ability. I used the tag "DataGridTemplateColumn" to format the dates for this column. How do you program the column header Complete Date so you can click on the Complete Date column header and sort that column.

jQuery Sortable - Limit number of items in list

大憨熊 提交于 2019-12-18 13:13:48
问题 I have a schedule table I'm using jQuery Sortable for editing. Each day is a UL, and each event is an LI. My jQuery is: $("#colSun, #colMon, #colTue, #colWed, #colThu").sortable({ connectWith: '.timePieces', items: 'li:not(.lith)' }).disableSelection(); To make all LI's sortable except those with class "lith" (day names). User can drag an event from day to day, or add new events by clicking a button, which appends a new draggable event (LI) to the fist UL (Sunday). I want to make each day

jQuery + Sortable + live

泪湿孤枕 提交于 2019-12-18 13:13:24
问题 I'm adding list items to a page dynamically with $.get, then appending them to the OL element. Pretty usual to this point. But jQuery isn't aware of these new items when they get loaded into the page, and I'm not being able to make them sortable. I made some trials with jQuery Live, but didn't get anywhere whit that... 回答1: The refresh method of .sortable() does not seem to recognize li 's which are NOT added via the .sortable() functions. Try adding your .sortable() initialisation code into

Forcing an item to remain in place in a jQuery UI Sortable list

ⅰ亾dé卋堺 提交于 2019-12-18 12:57:17
问题 I've set up a jQuery sortable list but I need to be able to keep some items in the sortable 'fixed' in place and for the other items to sort around them. I thought that there would be built in methods to achieve this, alas this is not the case. I'm able to set up the list and not include the items in question: <ul id="fruit"> <li class="fixed">apples</li> <li>oranges</li> <li>bananas</li> <li>pineapples</li> <li>grapes</li> <li class="fixed">pears</li> <li>mango</li> </ul> <script type="text

jQuery Connected Sortable Lists, Save Order to MySQL

房东的猫 提交于 2019-12-18 11:35:35
问题 Hoping that using something like this demo it is possible to drag items within and between two columns, and update their order either live or with a "save" button to MySQL. Point being that you can make changes and return to the page later to view or update your ordering. http://pilotmade.com/examples/draggable/ Doing it for just one column is fine, but when I try to pass the order of both columns, the issue seems to be passing multiple serialized arrays with jQuery to a PHP/MySQL update

Prevent drop of list item in JqueryUI sortable

自闭症网瘾萝莉.ら 提交于 2019-12-18 10:37:10
问题 I have two lists #sortable1 and #sortable 2 which are connected sortables, as shown in this example. You can drag and drop list items from sortable1 to sortable 2 . However, if an item in sortable 1 contains the class "number", I want to prevent the drop on Sortable2 and thus make the dragged item drop back into sortable 1 . I have used the following on sortable2: receive: function (event, ui) { if ($(ui.item).hasClass("number")) { $(ui.item).remove(); } but it deletes the list item from both

jQuery UI Sortable and two connected lists

霸气de小男生 提交于 2019-12-18 10:36:34
问题 I am trying to put together the following with jQuery and Sortable: There are two cases that I need to grab: A: move an item within the same list B: move an item from one list to another Case B is solved when only using the receive event. But if I bind both receive and stop they also get fired both when moving an item from one list to another. This makes it impossible for me to capture case A because I have no way of finding out if the item was moved from another list or within the same. Hope