Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6961969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:35:57+00:00 2026-05-27T15:35:57+00:00

I need to trap the manual resizing of a column width. Then store all

  • 0

I need to trap the manual resizing of a column width. Then store all the column widths into a cookie so that the next time the page is loaded the columns can be set according to the user preferences.

Is there a way to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:35:58+00:00Added an answer on May 27, 2026 at 3:35 pm

    Couldn’t figure out from the documentation what event was required:

    myTable.subscribe("columnResizeEvent", 
      function(event){
        var column = event.column;
        var key = column.getKey();
        var width = event.width;
        createCookie("myTable.columns."+key+".width",width);
      }
    );
    

    Where createCookie is a routine to write cookies. This approach allows the cookies to be read while the columns are being defined, but before the table is rendered:

    for(var i in myColumnDefs){
        var column = myColumnDefs[i];
        var width=readCookie("myTable.columns."+
          column.key+
          ".width");
        if (width){
          column.width = parseInt(width);
        }
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

string = 'Hello 1234_ world 4567_ trap 456'; I need to capture all digits
I'm trying to trap any and all exceptions in a C++/CLI app so that
I have an absolutely-positioned DIV that I need to trap onclick events for. It
concurrent colleagues. I need to be able to trap an exception that might be
Need help with a query that I wrote: I have three tables Company id
In C programming, whenever I try to perform first time cat, I need to
I am studying Intel Protected Mode. I found that Call Gate, Interrupt Gate, Trap
I need to pass the TRAP(OFF) runtime option to an IBM AIX COBOL application.
It seems that many projects slowly come upon a need to do matrix math,
In WPF need to trap the keys entered in a textblock to keep the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.