Prevent Resizing in Dojo Data Grid in Xpages - xpages

I am creating a dojo data grid following Brad Balassaitis' excellent blog series. I want to prevent the user from resizing any columns.
I know that each column needs the attribute noresize=true, but I don't know where to put that in xpages. I have defined the width of each column using percentages, and that is working. I just don't want the users messing with the widths I have set. I am hoping to not have to programmtically define the grid if I can help it. Is there an easy way to add this attribute?

Related

Acumatica - How to show column header filter above grid

I have a grid on a process screen in Acumatica ERP. When column header filters are selected on the grid, I would like the descriptions of all the selected filters to show above the grid as they do on generic inquiries (see photo below).
I haven't found a way to do this on a regular (non-generic inquiry) screen, neither in the code nor in the ASPX. I'm not sure if there even is a way to do it, but if anyone has any suggestions I'd appreciate it.

How can I render the fields and datatable by using <p:panelGrid>?

I have no idea how to render the below image with input fields and datatable with the exact alignment in UI.
I referred some documentation with examples, but I can't find the pattern for datatable. Attached the image below. Kindly share your thoughts for this as outline.
I would consider using PrimeFlex instead of p:panelGrid.
You basically need a 3 column grid layout. See the first example:
https://www.primefaces.org/primeflex/gridsystem
An the input can be done using form layout. See the horizontal examples:
https://www.primefaces.org/primeflex/formlayout
For the data table, simply use the p:dataTable. See: https://www.primefaces.org/showcase/ui/data/datatable/basic.xhtml

How to reduce the length of the databand in stimulsoft

I'm a very beginner of stimulsoft. I'm creating a report from my DB SQL but I've got problems with the lenght of the databand.
Basically, I would like to reduce the lenght of the databand because the data-source is different.
In the picture, I would like to trim the databand before the title "Descrizione". Can anyone help me?
Thank you so much
The bands have the heights only and it fills the whole width of its contained (here it is the page).
You need to use the Dock Style property that allows changing the position of the text components dynamically.
But you should check the order of the text components in the Report Tree.

Disable sorting on one or more grid columns in Kendo UI for Angular

I'm playing around a bit with Kendo UI for Angular and can't seem to find an easy way to disable sorting on specific columns of a grid.
There's an allowUnsort in sort-settings.d.ts, but I'm uncertain on how to use this (and this appears to relate to removing sorting afterwards, not from the start).
Or perhaps I'm simply using the grid wrong, that's also possible..
My situation is as follows:
I'm trying to use a grid to display some rows, and depending on the type of data, it should render a different icon in the first column. Also, I'm not using a 'real' header in that column, but replaced it with a button to create a new row.
To get my button in the header, I use a <template kendoGridHeaderTemplate ...>...</template>. This always seems to add a link around the header cell if sortable is enabled, which is what I'm trying to avoid (in some cases).
Is there a way around this?
Setting [sortable]="true" for the Grid component will enable sorting globally. Then you can fine-tune which column has sorting by disabling it per column, i.e [sortable]="false"
Here is a quick example:
http://plnkr.co/edit/hLbzC5jKJwVdMtRmh0cH?p=preview

Linearlayout like a "ListView" containing objects in android?

I am making a list using LinearLayout and would like to add several "person"-objects to my "list"
I need to be able to click on an object in this list an pull out the person object or at least the personId to be able to find the specific person in my database.
How do I go about doing this?
I have tried using a TextView but it is too simple to contain all of the desired values.
I have also tried using a ListView but I have several LinearLayout next to each other. The ListView scroll individually and therefore I can't use them
Here is an image:
As you can see I am trying to make a grid of sorts each column is a linearview and at the moment so are each row.
I realize there is a grid but I need to be able to fit objects in where I want them and I am too inexperienced to write my own adapter for the gridview
You can achieve this using a ListView with a custom ArrayAdapter.
Check out this example.
Instead of the Weather class, use your own Person object and make the necessary modifications.
Edit:
After reading your edit, I can see that you have some kind of Grid. So my best guess would be to use a GridView with a custom adapter.
Since you are getting your data from a database, you might as well use a custom CursorAdapter.
But I still haven't figured out what you're trying to do.
It seems that you want all the cells to be visible. That would only mean you have a small/finite amount of cells, and in that case a GridView wouldn't be any better than a for loop that adds views to a layout.

Resources