Contents tagged with grid
today I want to describe how to work with Filters, that applied to grid in Acumatica page.
For demonstration purposes I'll use Requisition form.
So, first of all, I want to say that dealing with Filters you'll need .View.GetExternalFilters() method.
At requisition form graph extension you can get it like this:
List<PXFilterRow> filters = Base.Lines.View.GetExternalFilters()?.ToList() ?? new List<PXFilterRow>();
Demonstrated line of code will give you list of applied filters, or empty list, if no filters were applied to grid.
Take not on how filters look like in debugger:
honestly speaking, applied filters look very similarly to applied ODATA protocol. On my … more
toda I want to document one simple how-to issue. Recently I've spent some time in figuring how to make grid to locate all available space.
Below goes how to make it:
<AutoSize Container="Window" Enabled="True" MinHeight="400" />
You can add it somewhere before end of px:PXGrid tag. For example like this:
<AutoSize Container="Window" Enabled="True" MinHeight="400" /> </px:PXGrid>
today I want to write some moments about bootstrap.
One of the ways to modify behaviour of bootstrap is to add reference to bootstrap style, and then add reference to your customization of css in which you can change boostrap settings with overriding basic bootstrap code. For example you can achieve it in the following way:
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/yourCustomized.css">One more interested features of bootstrap is grid layout of something. If in your html you'll write something like this:
<section id="body" class="container"> … more