jQWidgets Forums

jQuery UI Widgets Forums Grid Dynamic Columns in a Grid

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Dynamic Columns in a Grid #59318

    Adarsha
    Participant

    Hi,

    I have to create a grid based on some selection criteria. below are the criteria for a grid which display the model type and the volume

    1. Two kinds of columns in the same grid
    i. Pinned
    ii. Unpinned

    2. My requirement is, lets say i select a car model out of its 100’s of models. and i wanted to know how much it is sold between weeks 2014 week01 to 2014 week52

    3. In the above requriement, the car model falls under pinned columns and the and rest 01-52 weeks fall in each columns.

    4. I wanted to create a columns and their names depending on the selection i make no in advance and use show/hide Columns. I should be creating the columns

    Dynamic Columns in a Grid #59320

    Peter Stoev
    Keymaster

    Hi Adarsha,

    You can learn how to create Pinned columns from this demo: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/pinnedcolumns.htm?arctic

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Dynamic Columns in a Grid #59325

    Adarsha
    Participant

    Thanks Peter

    I know how to pin the columns. I wonder dow do i create the coulumns dynamically according to my selecttion. MY selection may result in 10 columns of 50 columns..

    Dynamic Columns in a Grid #59326

    Peter Stoev
    Keymaster

    Hi Adarsha,

    You can dynamically show or hide your columns by using the showcolumn/hidecolumn methods. If you show/hide many columns at once, I also suggest you to call “beginupdate” before your show/hide column method calls and “endupdate” after them.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.