Open Closed

Set the width of jtable columns dynamically #9037

smartlayer created


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.


1 Answer(s)
  • 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.