Hi,I have a question

Hi,I have a question

HappyJsHappyJs Posts: 6Questions: 3Answers: 0
edited October 2016 in Free community support

Hi, I am a developer from China. In the course of the use of some problems, hoping to be answered. :)
Javascript:

this.table = $(target.toString()).dataTable({
            ajax: this.ajax,
            pageLength: this.pageLength,
            pagingType: this.pagingType,//分页按钮的样式
            //serverSide: true,
            //processing: true,
            info: this.info, //是否显示左下角的当前数据在所有数据中的索引信息
            //scrollX: true,//设置水平滚动
            scrollY: this.height,//设置垂直滚动
            searching: this.searching,//打开本地搜索
            deferRender: true,//延迟加载
            autoWidth: this.autoWidth,//自动计算列宽
            paging: true,//是否开启本地分页
            lengthChange: this.lengthChange,//用户是否可以自行设置显示行数
            orderClasses: true,//高亮显示排序列
            rowid: this.rowid,//设置数据中ID的属性名
            columns: this.columns,
            scrollCollapse: this.scrollCollapse,//当数据少于页显示行数时是否自动减少高度
            language: this.language,
            fixedColumns: {
                leftColumns: this.fixedLeftCol
            }
        });

When I use ajax way to load data and set the scrollY property, there will be two header, the other has been shown loading. Then there has been no response.
Will I set up the problem?
Hope to answer

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 64,631Questions: 1Answers: 10,686 Site admin
    Answer ✓

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

  • HappyJsHappyJs Posts: 6Questions: 3Answers: 0

    Thanks for the answer. Because I am in China, can not find a suitable publishing platform, so I gave up with their own code to verify the idea. I looked at the source ScrollResize, applied to the local table after the modification of the parent container height, Table can not automatically change according to the container size (I did not change any code, just increase the height of the warper style attributes).

    I mainly want to achieve is to allow the Table can be based on the height of the parent container automatically become high, the specific height I set the parent container.

    thanks again. :)

  • HappyJsHappyJs Posts: 6Questions: 3Answers: 0

    @allan
    Thank you for your attention, I saw the examples found their own problems, because the use of third-party UI framework, version inconsistencies, I look at.
    Finally, I wish your products getting better and better!

This discussion has been closed.