ScrollY with small number of rows (AngularJs)

ScrollY with small number of rows (AngularJs)

knetadminknetadmin Posts: 47Questions: 1Answers: 0

Hi,
when table has small number of rows as attached in the URL (http://54.191.119.153:8080/static/scrollY.png) contain three row, table should fit container but it is using its scroll and not display three rows at all
it should display all rows without scrolling

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Looks like you might be using some kind of custom scrollbars rather than the native ones in the browser. Is that correct?

    Allan

  • knetadminknetadmin Posts: 47Questions: 1Answers: 0

    No, i am using scroll option that existing in datatables
    .withOption('scrollY', '250px')
    .withOption('scrollX', true)
    .withOption('scrollCollapse', true)

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Can you link to the page so I can try to debug it please?

    Thanks,
    Allan

  • knetadminknetadmin Posts: 47Questions: 1Answers: 0

    i cant give you link because we connect to server side local, but i can give you connection by Team Viewer this is okey with you ????

  • knetadminknetadmin Posts: 47Questions: 1Answers: 0
    edited May 2015

    i have now URL to see the issue :

    http://kncairo.kn-it.org:8090/Etrade-Plus/site/private#/page/WatchList

    username : menna04
    password : test1234

    you can find in console this exception :
    TypeError: Cannot read property 'dt' of null
    at Object.f._fnDestroy (dataTables.colReorder.js:244)
    at n.isFunction.f (jquery-2.1.4.min.js:2)
    at jquery.dataTables.min.js:1372
    at Function.n.extend.map (jquery-2.1.4.min.js:2)
    at Object.w [as _fnCallbackFire] (jquery.dataTables.min.js:1371)
    at Object.<anonymous> (angular-datatables.min.js:195)
    at Object.t.iterator (jquery.dataTables.min.js:1796)
    at Object.<anonymous> (angular-datatables.min.js:191)
    at Object.ngDestroy (jquery.dataTables.min.js:1852)
    at n (angular-datatables.min.js:357)

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Thank you for the link. I've just updated ColReorder - could you try the nightly version please?

    Allan

  • knetadminknetadmin Posts: 47Questions: 1Answers: 0
    edited June 2015

    thanks yes, this is fix the exception but when changing data , table disappear
    what i should do to change data in table ???

This discussion has been closed.