DataTables / DataTables/Scroller

row.child("some htmls").show() is not working with scrolling pagination

Open
#93 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
83
Forks
66
PR merge metrics
No merged PRs in 30d

Description

I have a pagination table but not not like 1-2-3-4-5.

Problem is first page working on row.child("some htmls").show(),
But second and after pages doesn't work row.child("some htmls").show()

How do I this ?

$('#dt-tablenametbody td.details-control').on('click', '.table-arrow', function () {

                var tr = $(this).closest('tr');
                var row = table.row(tr);
            
                if ( row.child.isShown() ) {
                  row.child.hide();
                  tr.removeClass('shown');
            
                } else {

                    var threadsChildRowsHtml = ChildRowTemplate(jsonData);
                    row.child(threadsChildRowsHtml).show();
                    
                    tr.addClass('shown');
                }
            
                tr.find('.table-arrow').toggleClass('arrow-up arrow-down');
            });

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied row.child("some htmls").show() click handler and reproduce the behavior on the first and later scrolled pages. No repository file or test is named, so locate the relevant Scroller integration and determine why the handler differs across pages; done means the child row displays consistently when opened after pagination or scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.