My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 300: Possible to add "values" using "Initializing the tree structure from a <ul> element"
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2013


 
Reported by choboJ...@gmail.com, Mar 20, 2012
Hi

I am not sure if this is possible or not but can you set a value for the checkboxes by using the "Initializing the tree structure from a <ul> element" way?

If not can this be added as I am not sure what the purpose of having the tree view and rendering it this way if you can't post the choices back to the server

   <div id="tree">
        <ul>
            <li id="key1" title="Look, a tool tip!">item1 with key and tooltip
            <li id="key2" class="selected">item2: selected on init
            <li id="key3" class="folder">Folder with some children
                <ul>
                    <li id="key3.1">Sub-item 3.1
                    <li id="key3.2">Sub-item 3.2
                </ul>

            <li id="key4" class="expanded">Document with some children (expanded on init)
                <ul>
                    <li id="key4.1">Sub-item 4.1
                    <li id="key4.2">Sub-item 4.2
                </ul>

            <li id="key5" class="lazy folder">Lazy folder
        </ul>
    </div>

For each "li" I would like to add the value to it so when I post(by serializing the form) I have the values.

Jul 13, 2012
Project Member #1 moo...@wwwendt.de
not sure if I understood the question, but this line sets the checkbox for a given node:

   <li id="key2" class="selected">item2: selected on init

Dynatree does not render real checkboxes (i.e. <input> controls) because this would not allow tri-state for 'partly selected'.
However if you want to post data to the server, see here for an example:

  http://wwwendt.de/tech/dynatree/doc/sample-form.html

Does this answer your question?
Status: Waiting
Labels: Milestone-Release1.2.2
Oct 6, 2012
Project Member #2 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: -Milestone-Release1.2.2 Milestone-Release1.2.x
Jan 26, 2013
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: -Milestone-Release1.2.x Milestone-Release2.0
Oct 6, 2013
Project Member #4 moo...@wwwendt.de
Closing 'Waiting' issues without timely answer
Status: Done

Powered by Google Project Hosting