Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColumnView Extension - Toggle between parent and children not working #900

Closed
AkibS opened this issue Oct 17, 2018 · 3 comments
Closed

ColumnView Extension - Toggle between parent and children not working #900

AkibS opened this issue Oct 17, 2018 · 3 comments

Comments

@AkibS
Copy link

AkibS commented Oct 17, 2018

I am using column view extension as per my requirement but could not able to toggle tree between parent and child nodes.

Very first time when i clicked on parent node it expands properly and showing children.
After that when i clicked second time on parent node it hides children properly.
But when i clicked again on parent node it is not expanding children.

I may missing something here. help needed.

$("#columnview").fancytree(
{
            extensions: ["columnview"],
            checkbox: true,
            source: {
                url: $("#columnview").data("url")
            }
 }); 

Html :

<table id="columnview" data-url="/GetData">
                        <colgroup>
                            <col width="300px"></col>
                            <col width="300px"></col>
                            <col width="300px"></col>
                            <col width="300px"></col>
                        </colgroup>
                        <thead>
                            <tr> <th>A</th><th>B</th> <th>C</th> <th>D</th> </tr>
                        </thead>
                        <tbody>
                            <tr> <td></td><td></td> <td></td> <td></td> </tr>
                        </tbody>
                    </table>
@AkibS AkibS changed the title ColumnView Extension - Toggle between parent and children not working ColumnView Extension - Toggle between parent and children not working 👋 help wanted Oct 18, 2018
@AkibS AkibS changed the title ColumnView Extension - Toggle between parent and children not working 👋 help wanted ColumnView Extension - Toggle between parent and children not working Oct 18, 2018
@mar10
Copy link
Owner

mar10 commented Oct 28, 2018

Thank you for contributing! 👍

In order to process your issue, we need some more information, explanation what already was tried and/or concrete data.

A debuggable example (jsFiddle, Plunkr, CodePen, ...) may be helpful.

Please read the Contribution Guidelines for some hints on how to submit helpful feature requests and bug reports.

@AkibS
Copy link
Author

AkibS commented Oct 29, 2018

Hey Thanks for the reply!

Actually this toggle issue is present in following example.

http://wwwendt.de/tech/fancytree/demo/#sample-ext-columnview.html

Steps to reproduce:

  1. Click on Folder 1
  2. Click on Sub-item 1.1
  3. Then click on Sub-item 1.1.1
  4. Then again click on Sub-item 1.1 (it will hide the Sub-item 1.1.1)
  5. Then again click on Sub-Item 1.1 (it will not expand Sub-item 1.1.1)
  6. Then if you click on Folder 1 (it will hide the Sub-item 1.1 but if you click again Sub-item 1.1 is not expanding)

Attaching video for reference.
Recording #1.zip

Hope this will help to reproduce!

Thanks in advance.

@mar10 mar10 removed the waiting label Oct 30, 2018
@mar10
Copy link
Owner

mar10 commented Oct 30, 2018

Thanks, I will look into it (note however, that column view is still 'experimental' and was seemingly not much used by others so far ;-)

mar10 added a commit that referenced this issue Oct 31, 2018
mar10 added a commit that referenced this issue Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants