Author Topic: Resize Column  (Read 6270 times)

Ago30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Resize Column
« on: July 22, 2014, 01:31:54 pm »
Hi!!
How can I stop the resize of the column?
I want the size of the columns are fixed.
Can I set the grid width:100%?
Thank you!!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6264
    • View Profile
Re: Resize Column
« Reply #1 on: July 22, 2014, 05:45:37 pm »
Every column has resizable property which can be set to false.

In below example rank column is non-resizable:

http://jsfiddle.net/LAgZx/345/



Dimensions in % and fluid layouts is supported only in PRO version.

Ago30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Resize Column
« Reply #2 on: July 22, 2014, 06:21:34 pm »
Is there a way to give the grid the entire page width (in px)?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6264
    • View Profile
Re: Resize Column
« Reply #3 on: July 22, 2014, 06:45:44 pm »
Width and height can be dynamically assigned.

Example:
http://paramquery.com/demos/resizable_popup

$grid.pqGrid("option", { width: $(window).width() });

Ago30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Resize Column
« Reply #4 on: July 22, 2014, 09:21:30 pm »
I have implemented this type of grid:

ttp://paramquery.com/demos/editing_custom

but I can not setting  width(full page) .
I tried to insert the piece of code but nothing. :'(

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6264
    • View Profile
Re: Resize Column
« Reply #5 on: July 22, 2014, 10:09:04 pm »
This sets the width of grid equal to browser width during initialization.

http://jsfiddle.net/65wJX/
« Last Edit: July 22, 2014, 10:11:26 pm by paramquery »

Ago30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Resize Column
« Reply #6 on: July 23, 2014, 01:42:52 pm »
OK.
Now I have set the column "resizable: false," but I can not get the adaptive grid with the page.
For example, if I reduce the width of the page, the grid is fixed and does not fit the page width changes (such as responsive).

Thanks for the support!

Ago30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Resize Column
« Reply #7 on: July 23, 2014, 02:21:56 pm »
I have to use media queries to change the style of the size of the browser window? :-[

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6264
    • View Profile
Re: Resize Column
« Reply #8 on: July 23, 2014, 07:28:39 pm »
To make it adaptive please follow this example

http://jsfiddle.net/65wJX/1/
« Last Edit: July 23, 2014, 07:32:53 pm by paramquery »