jQuery UI Widgets Forums Grid Couple of questions on the grid

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Couple of questions on the grid #54836

    jonfrain
    Participant

    I’m really happy with the grid so far. I do have some questions on it though.

    jqxGrid(
    {
       width: '100%',
       //height: '100%',
       source: myDataAdapter1,
       //theme: theme,
       autoheight: true,
       pageable: true,
       sortable: true,
       altrows: true,
       filterable: true,
       columnsresize: true,
       //virtualmode: true,
       rendergridrows: function()
       {
            return myDataAdapter1
            .records;     
       },
       columns: myColumns1
    });

    1) I notice that when I resize a column it changes the widths of the other columns to maintain the total grid size. Is there a way to force it to leave the other columns as they are and just add a scroll bar to the grid if the column needs to increase the total grid size? I thought I had that working at one point but maybe one of my setting s disabled it.

    2) Does the grid support any postback on column resizing? I assume there’s a function like onresize that can send the new dimensions to my methods to store for future use if I need to.

    Couple of questions on the grid #54890

    Dimitar
    Participant

    Hello jonfrain,

    1) You can set a column’s minwidth property and the resize behaviour regarding it will be as you require. This can be seen in the demo Columns Resize (try resizing “Unit Price” – “Total” will not go under 100px and the grid will add a scrollbar).

    2) You can subscribe to the columnresized event. Here is how to do this: http://jsfiddle.net/jqwidgets/xJQMm/.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.