Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - scoular

Pages: [1]
1
Help for ParamQuery Pro / drop down menu problems
« on: June 21, 2024, 10:18:36 am »
I'm trying to build a drop down menu within a grid cell and can't get it to display fully because of the multiple parent div that have overflow:hidden.  I'm using the render of an html column to create a button and a div with position:absolute for the menu.  The button click shows/hides the menu div. 

I originally tried this with the bootstrap dropdown but it has the same problem plus it's doing something strange with the positioning of the dropdown menu in that the css translate position is completely wrong so isn't showing because of that.  I would prefer to use the bootstrap dropdown if both of these problems can be fixed.

I also considered having one menu div on the page so it is outside the grid and then moving it to the button position within the grid cell with javascript.  But I'm using the grid with Angular and hooking up the menu items <a> tags click events to Angular component methods on the column postRender.  This came about because I only had a couple icon buttons in a cell that I was hooking up the click events on.  But now have too many buttons and want to change it to a drop down menu. 

Is there some way to display the drop menu within the grid and get around the parent div overflow:hidden?  I did also try style: { 'overflow': 'visible' } on the column model but that only sets it at the cell level and there are still parent div with overflow:hidden.  Also not sure what that does to the grid function by making that change.

Maybe I should be asking what is the best way to make a drop down menu for a grid row and be able to hook up the menu items to different methods of my Angular component and also passing row data into the methods.




2
I am using paramquery with Angular.  Doing nested grids with local data.  Same as the Angular nested grid example. 
I get the main grid so I can manipulate it in code with @ViewChild like '@ViewChild('mainGrid') mainGrid: PqgridComponent;
Then I can do things like refresh row 'mainGrid.grid.refreshRow({ rowIndx: index })'

I need to do same with the nested grids.  How can I navigate to a nested grid in code?
I have tried getting the row and then trying to get the nested grid of that row but not seeing a way to do it.
mainGrid.grid.getRow({ rowIndx: index })


3
I have nested grids with local data.  How can I only show the expand/collapse icon if child records exist?  I also don't want to render a child grid when no child records exist. 

Also is it possible to change the expand/collapse icon to something else like a +/- instead of the arrow icons?

4
Help for ParamQuery Pro / Nested grids with Angular
« on: August 09, 2023, 12:46:06 am »
I'm trying to get nested grids with local data working with Angular code.  Going from this sample and trying to make it work with Angular code.
https://paramquery.com/pro/demos/nesting_local

Would it be possible to get an Angular local nested grid sample or some ideas on how to make this work in Angular?

Pages: [1]