erich.wanker Posted February 7, 2019 Share Posted February 7, 2019 Hello folks.. in the good old times of Delphi (Delphi3) where was a component called "DBCtrlgrid" Short description: it was like a Panel, where you can place DBImages, DBText, DBRadiobuttons, DBChceclboxes and so on .. you had to define just one panel ... and it was duplicated for every record in a tabel .. IT WAS WONDERFULL :-) is where a similar component out where? thanX Erich 1 Link to comment Share on other sites More sharing options...
GerhardV Posted February 11, 2019 Share Posted February 11, 2019 I was looking for the same thing...but I don't think there is something equivalent on the ExtJS side to easily map to...will probably need to write it from scratch. Still on my research list. Link to comment Share on other sites More sharing options...
allenchow Posted April 24, 2019 Share Posted April 24, 2019 me too Link to comment Share on other sites More sharing options...
erich.wanker Posted April 25, 2019 Author Share Posted April 25, 2019 Hi folks, i made it with a workarround ;-) i have a DB-Field called "html_text" ... and a firebird trigger who writes the html code .... CREATE TRIGGER UpdateHTML_Text FOR <Tabelle> BEFORE INSERT OR UPDATE AS BEGIN new.HTML_TEXT := '<p style="margin: 0px;font-size: 12px">' || new.EINTRAG || '<br></p><p style="margin: 0px;font-size: 10px">' || new.STRASSE || '<br>' || new.PLZ || '-' + new.ORT || '</p>'; END And this is a cell of a uniDbGrid: HTH Erich Link to comment Share on other sites More sharing options...
Freeman35 Posted April 25, 2019 Share Posted April 25, 2019 Hello Erich, Why you need to "HTML_TEXT" ? Why you increase db size? I mean why save for each row style text? If I were you, I use Tdatset's afterupdate, afterinsert events for this htmltext field. Add calculated field, and add what you want this html text. Or use grid's events. Ofcource just idea :) Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted April 25, 2019 Share Posted April 25, 2019 Hi Can you create a DBCtrlGrid example? So i can check can we do it with uniGUI. Link to comment Share on other sites More sharing options...
erich.wanker Posted April 25, 2019 Author Share Posted April 25, 2019 @freeman35 thanx for tip :-) About your request "dodgeBlue..." in forum/featurerequest... input things... FOR A Fast TEST Please put a UniHTMLFrame1 on your Mainform and TMainform.onCreate copy: UniHTMLFrame1.HTML.Clear; UniHTMLFrame1.HTML.Append('<style> '); UniHTMLFrame1.HTML.Append('.x-form-field:not(.x-form-checkbox) { '); UniHTMLFrame1.HTML.Append(' font: normal 12px tahoma, arial, helvetica, sans-serif; '); // UniHTMLFrame1.HTML.Append(' background: rgb(189, 217, 187) !important; '); UniHTMLFrame1.HTML.Append(' border-left-style: none; '); UniHTMLFrame1.HTML.Append(' border-right-style: none; '); UniHTMLFrame1.HTML.Append(' border-top-style: none; '); UniHTMLFrame1.HTML.Append(' border-bottom: 1px solid #bdbdbd; '); // 1px dotted #568a59; '); // 2px dashed #71b071; '); // UniHTMLFrame1.HTML.Append(' letter-spacing: 1px; '); UniHTMLFrame1.HTML.Append(' font-family: "Open Sans"; '); UniHTMLFrame1.HTML.Append('} '); UniHTMLFrame1.HTML.Append('.x-form-field:not(.x-form-checkbox):hover { '); UniHTMLFrame1.HTML.Append(' background: rgb(169, 204, 167) !important; '); UniHTMLFrame1.HTML.Append(' color: black !important; '); UniHTMLFrame1.HTML.Append('} '); UniHTMLFrame1.HTML.Append('</style>'); and see what happends :-) Link to comment Share on other sites More sharing options...
Freeman35 Posted April 25, 2019 Share Posted April 25, 2019 Thank you Erich. I'll test soon, your suggestion. 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