Author Topic: pop up is always coming in center  (Read 2381 times)

ruchabhutada

  • Newbie
  • *
  • Posts: 10
    • View Profile
pop up is always coming in center
« on: July 26, 2016, 01:17:19 pm »


Hello sir,

I am using pqgrid pop up functionality.
when i click on button, pop up comes.
But this pop up always comes in center of the window.
How to get it to the middle of the window ?
Which css stylesheet i have to apply ?

My 2nd issue is I want height and width of popup grid dynamic.
Whatever data I want to display on pop up grid, it is not fixed number of rows. What is happening now : - i have specified width and height of pop up grid, so, if there are 2rows, it will display properly, but then below the rows, it shows the grid in gray color as there are no further records.
please help me out for both the issues.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: pop up is always coming in center
« Reply #1 on: July 26, 2016, 05:36:28 pm »
When you assign fixed height and width of grid, it is normal to have a scrollbar or remaining blank space.

To assign dynamic height and width to the grid, use flexWidth and flexHeight properties.

ruchabhutada

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: pop up is always coming in center
« Reply #2 on: July 28, 2016, 12:42:17 pm »
I have tried as per you said. I have tried it using flexwidth:true and flexHeight : true
And I am following this link : http://paramquery.com/demos/resizable_popup.
As there are two div's, thus I am getting problem of dynamic width and height which I am not able to implement.
i have attached the image. Please see this image, I want to remove that space which is coming below the number of rows.
it is highlighted in red color.
Image description:-
Th image is of pop up .
The status written is my title of the pop up.
'1'indicates is my row.
white space is column header/column names.
And the red highlighted one is extra space coming in below the rows.