Jump to content

How to create uniDBGrid like Listview with CSS


irigsoft

Recommended Posts

Hi there,

Can we group 4 columns in one.

Problem: I have uniDBGrid with 4 columns:

1. column is actioncolumn and have 1 button

2. column have Image

3. Column have descriptions (and long text)

at this moment I show all them with hiden column lines (only rows), but I want all columns be on one.

Visual design:

I want to set an action button in the lower right corner, an image in the upper center and a text in the middle.

Now: image.png.500b9eb6ca7fc7ee87f0324b8d684d3c.png 

After: image.png.e822b2956b827382332429ecda8bb6c0.png

Link to comment
Share on other sites

7 minutes ago, irigsoft said:

Okay, what about without him?

What css can I use ?

For every row I must have bitbtn (with onClick functionality) = ActionColumn, but I have alternative - panel with buttons

I will try to give you a sequence of steps.

Link to comment
Share on other sites

I will, but It is possible to use only CSS ?

I use Professional Version of uniGui and don't have mobile components.

I have my own visual designer, I use it for Desktop applications and for uniGui applications. On him I can use only Delphi standart VCL components without html code. 

 

How do I take the image from the uniDBGrid column from your sample code (local files are used in the code)?

Link to comment
Share on other sites

18 hours ago, irigsoft said:

Now: image.png.500b9eb6ca7fc7ee87f0324b8d684d3c.png 

Can you please make a simple testcase? I will try on your test case.

 

You can use several ways: 

Data.DB.TField.OnGetText event;

ClientEvents -> reconfigure event;

By adding templateColumn;

...

Link to comment
Share on other sites

9 minutes ago, Sherzod said:

Ok, from @mhmda examples too, but this is solution from one application for one design.

I make diferent designs, after that I load it from unigui application 

Every design have defferent components, styles and logic.

If I use XTemplate in uniGui application , this will be a problem.

Can I use Xtamplates only from external files (css, js, html) and load them when I need it?

 

Link to comment
Share on other sites

16 minutes ago, Sherzod said:

What do you mean?

I make different designs, then load a specific design into the unigui server from XML files

Each design has different VCL components and logic, I can use javascript code loaded from a file, or perform simple javascript functions, but for the example from @mhmda and yours, I have to write the code directly in the unigui application.
I want to get around him.

How my unigui server currently works: when starting unisession

1. load an xml file

2. Creates all visual components from an xml file

3. For each component, read and load the functionality from the xml file

4. Do a few unigui things to give the user a feeling of working through the web

5. The functionality of all components is sent to the server (executed by dll files)

If I can load the XTemplate functionality from an external file (from a server as * .js files are loaded in my uniGui application), this would be great.

Link to comment
Share on other sites

Some designs can use XTemplates, some don't have to

Designer work with VCL components and cant create Ext. functionallity.

If i can somehow to load Ext functionallity from local file may be then I will can to create TemplateColumn and load It when i need it.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...