Base solution for your next web application
Open Closed

Set the width of jtable columns dynamically #9037


User avatar
0
huntethan89 created

Hi,

I am using jtable in Net zero application. i have total of 6 columns. I set the width of all columns to make it 100%. On fronted I hide one column and then the width of all columns get changed again. What i want that width of one of the column should be fixed even after hide column on right click of jtable.

Thanks

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @smartlayer

    JTable doesn't provide an API for this. You can manually change width all TD elements in related column using jQuery. You must calculate the new width as well.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)