Author Topic: Styling like the demo  (Read 3322 times)

dtag1000

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Styling like the demo
« on: November 10, 2017, 10:24:40 am »
Hello,

Im trying to style my grid like the one here: https://paramquery.com/demos/crud

It removes all the extra space on the bottom, and is sleek. How can I implement this ?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: Styling like the demo
« Reply #1 on: November 10, 2017, 10:56:05 am »
Please use height: 'flex'

dtag1000

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Styling like the demo
« Reply #2 on: November 14, 2017, 03:29:16 am »
Hello,

I tried the flex height, and this did not do anything. I want the exact styling of the one in the demo. How can I get this??


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: Styling like the demo
« Reply #3 on: November 14, 2017, 04:34:38 pm »
I'm not sure about your interpretation of extra space at bottom and sleek layout, can you please attach a screenshot of your grid and point out what exactly you are looking for.

dtag1000

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Styling like the demo
« Reply #4 on: November 16, 2017, 02:09:21 am »
This is what i want

https://imgur.com/a/bkwIh

This is what i have

https://imgur.com/a/Wp44M

« Last Edit: November 16, 2017, 02:13:02 am by dtag1000 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: Styling like the demo
« Reply #5 on: November 16, 2017, 03:57:41 pm »
You are missing the grid stylesheets.

pqgrid.min.css and pqgrid.ui.min.css files are required.

http://jsfiddle.net/o7xo89oz/

dtag1000

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Styling like the demo
« Reply #6 on: November 18, 2017, 12:30:41 am »
I added all of the style sheets, but it still does not look like the demo.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: Styling like the demo
« Reply #7 on: November 18, 2017, 11:24:47 am »
Please check the path to stylesheet files, look out for any 404 errors in the browser console.

and ensure that you use the same version of css files as js files e.g. if you use pqgrid.min.js v4.0.0 then css files should also be the same version.

If you are still unable to resolve the issue, then please share a jsfiddle.