• Resolved linhtran

    (@linhtran)


    Hi there,
    Your plugin’s great. I’m having a problem.
    1. After importing csv file, I’m just using a single column. I want to divide it to many columns.
    $this->rowspan[ $col_idx ] = 1; // Reset.
    I tried to change this line(3 instead of 1). It shows 3 columns but it looks too bad.
    2. I’m also using the alphabetical filter. I want to get filtered data after searching.
    When I hit the datatable, it shows a warning and I took a look at Cannot reinitialise DataTable.
    I tried every guides but it’s not working.

    
    var table = $('selector').dataTable();
    table.on('search.dt', function() {})

    Please help me. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Please do not modify the PHP files! This has nothing to do with the problem with just one column! This is caused by something else!
    Can you somehow show me/upload the CSV file that is causing this problem?

    Regarding the JavaScript code: I’m not sure what you mean here. Can you please explain this in more detail?

    Regards,
    Tobias

    Thread Starter linhtran

    (@linhtran)

    Hi tobias,
    Thank you for your response.
    You’re right. I shouldn’t modify the PHP file. That’s just example to show you my situation.
    It’s not about the upload file.
    I have 3 columns: “Full Name”, “Last Name”, “First Name”. I just want to show “Full Name” column – single column. But, my requirement is making single column to 3 columns.
    Instead of showing just one “Full Name” column. It will show:
    “Full Name” | “Full Name” | “Full Name”

    Thank you,

    • This reply was modified 7 years, 4 months ago by linhtran.
    • This reply was modified 7 years, 4 months ago by linhtran.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    so, you basically want to turn the table from one column

    
    A
    B
    C
    .
    .
    .
    Z

    into something like this with 3 columns

    
    A     J     Q
    B     K     R
    C     L     S
    D     .    ..
    ...   .    ..
    I     P     Z
    

    correct?

    Unfortunately, this is not directly possible with TablePress, I have not seen a solution for this ?? Sorry.

    Or will all 3 “Full Name” columns be exactly the same?

    Regards,
    Tobias

    Thread Starter linhtran

    (@linhtran)

    Hi,
    That’s the first one.
    I’m ok for now. I found the way.
    I’m using the data from datatable and create a new html for me.

    Anyways, thank you very much.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem! Always happy to help!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customize column and alphabetical filter extension’ is closed to new replies.