irigsoft Posted October 26, 2020 Share Posted October 26, 2020 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: After: Link to comment Share on other sites More sharing options...
Sherzod Posted October 26, 2020 Share Posted October 26, 2020 Hi, It is possible. But I think it won't be easy to include an actionColumn. Link to comment Share on other sites More sharing options...
irigsoft Posted October 26, 2020 Author Share Posted October 26, 2020 Okay, what about without him? What css can I use ? For each line I have to have bitbtn (with onClick functionality) = ActionColumn, but I have an alternative - a panel with buttons in DBGrid.Onclick Link to comment Share on other sites More sharing options...
Sherzod Posted October 26, 2020 Share Posted October 26, 2020 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 More sharing options...
irigsoft Posted October 26, 2020 Author Share Posted October 26, 2020 Thanks. I Try it with html but, can't apply image column Link to comment Share on other sites More sharing options...
mhmda Posted October 26, 2020 Share Posted October 26, 2020 You can use: Xtemplate (client-side code) see my video tutorial: Link to comment Share on other sites More sharing options...
irigsoft Posted October 27, 2020 Author Share Posted October 27, 2020 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 More sharing options...
Sherzod Posted October 27, 2020 Share Posted October 27, 2020 18 hours ago, irigsoft said: Now: 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 More sharing options...
irigsoft Posted October 27, 2020 Author Share Posted October 27, 2020 1 hour ago, Sherzod said: ... By adding templateColumn; ... How to use TemplateColumn ? - Delphi 2007. Test case - just uniDbgrid with 3 columns, one have Image, other with actionbutton, and one with text. Text and Image are from database. Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2020 Share Posted October 27, 2020 1 minute ago, irigsoft said: How to use TemplateColumn ? This is a client side solution... https://docs.sencha.com/extjs/7.0.0/classic/Ext.grid.column.Template.html Link to comment Share on other sites More sharing options...
irigsoft Posted October 27, 2020 Author Share Posted October 27, 2020 9 minutes ago, Sherzod said: This is a client side solution... https://docs.sencha.com/extjs/7.0.0/classic/Ext.grid.column.Template.html 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 More sharing options...
Sherzod Posted October 27, 2020 Share Posted October 27, 2020 12 minutes ago, irigsoft said: Can I use Xtamplates only from external files (css, js, html) and load them when I need it? What do you mean? Link to comment Share on other sites More sharing options...
irigsoft Posted October 27, 2020 Author Share Posted October 27, 2020 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 More sharing options...
irigsoft Posted October 27, 2020 Author Share Posted October 27, 2020 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now