• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxSortableList question: Edit after reorder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxSortableList question: Edit after reorder?


  • Subject: Re: AjaxSortableList question: Edit after reorder?
  • From: James Cicenia <email@hidden>
  • Date: Tue, 17 Jul 2012 16:11:49 -0400

Thanks! 

That worked like a charm. I had originally tried :

AjaxUpdateContainer.updateContainerID("UtilityUpdateContainer");


I would have never figured out that Update function. 


Thanks again,

James


On Tue, Jul 17, 2012 at 4:04 PM, David LeBer <email@hidden> wrote:
If I understand correctly, the AjaxSortableList only communicates the changed indexes of the items, which are used to update the array on the server. However the list isn't refreshed (the move happens in the browser). Any links/buttons/actions etc embedded in the list items will still reference their previous position.

Wrap the list in an update container and update it with a call from the AjaxSortableList onUpdate.

onUpdate: "function(e) { setTimeout(function() {MyListUpdateContainerUpdate();}, 50);}";

// I found I needed a slight delay to get everything to work correctly.

D

--
David LeBer
Codeferous Software

On 2012-07-17, at 3:45 PM, James Cicenia wrote:

> Hello -
>
> I have an AjaxSortableList. After a user moves a row and then tries to edit it, it grabs the wrong item. Am I missing something obvious?
>
> Sortable: AjaxSortableList {
>       list = theList;
>       item = theItem;
>       listItemIDKeyPath = "primaryKey";
>       id = "list-container-id";
>       listClass = "sortableList";
>       listItemClass = "sortableListItem";
>       ghosting = true;
>       action = ""> >       index = index;
>       handle = "sub-col-item drag";
> }
>
> ModalWindowEdit: AjaxModalDialogOpener {
>       dialogId = "ModalEditWindow";
>       title = "Edit Skill Set";
>       elementName = "a";
>       label="Edit";
>       action = ""> > }
>
> public void giveItemToDialog(){
>       itemToEdit = theItem;
> }
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AjaxSortableList question: Edit after reorder? (From: James Cicenia <email@hidden>)
 >Re: AjaxSortableList question: Edit after reorder? (From: David LeBer <email@hidden>)

  • Prev by Date: Re: AjaxSortableList question: Edit after reorder?
  • Next by Date: Re: Installing Tools and Framework is a mess
  • Previous by thread: Re: AjaxSortableList question: Edit after reorder?
  • Next by thread: D2W tabs question
  • Index(es):
    • Date
    • Thread