Jump to content
uniGUI Discussion Forums

mhmda

uniGUI Subscriber
  • Content Count

    1027
  • Joined

  • Last visited

  • Days Won

    122

Everything posted by mhmda

  1. mhmda

    Grid->Disable double click on Check / Expander

    I managed to solve it, in case someone need it: function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { var el=e.target.parentElement; if($(el).hasClass("x-grid-td")&&!$(el).hasClass("x-grid-cell-special")) { sender.up('window').mask('loading...'); ajaxRequest(sender.up('window'),'grdDblClick',['indx='+record.get('1')]); } }
  2. mhmda

    Grid->Disable double click on Check / Expander

    Nothing special, Just enable check select and that's it :-)
  3. mhmda

    dbgrid.Grouping change in Runtime

    No problem, change the code of sort event and grouping field at server as desired, it is working.
  4. mhmda

    api rest in an unigui project

    We use something like ORM between unigui and DB when it comes to CRUD operations.
  5. mhmda

    api rest in an unigui project

    Unigui = Powerful WebApps, you may use it as Rest server but it is not built for that, we use mORMot https://synopse.info/fossil/wiki?name=SQLite3+Frameworkhttps://synopse.info/fossil/wiki?name=SQLite3+Framework for creating our API for our WebApp that built using unigui.
  6. mhmda

    Can I add extra text in dbgrouped field row?

    This is my best friend: https://docs.sencha.com/extjs/6.6.0/modern/Ext.html When I was at college we didn't learn HTML,CSS etc...only: assembler, c, c++ So I it's all self learning and reading many books :-)
  7. mhmda

    Can I add extra text in dbgrouped field row?

    I sent you PM.
  8. mhmda

    Can I add extra text in dbgrouped field row?

    Many times I use custom text in group header, so server side doesn't give much options so I use client side: Ext.XTemplate. Example: config.groupingFeature = Ext.create('Ext.grid.feature.Grouping',{ groupHeaderTpl:new Ext.XTemplate('<table class="defaultfont defaultfontsize11"><tr>'+ '<td style="font-weight:bold;color:#e62b1e;">'+ '{[this.getGroupTitle(values.rows[0])]}</td><td>'+ '({[values.children.length]} pax.)</td></tr></table>', { getGroupTitle: function(values) { return values.data[3][0]; } }) }); config.features= [config.groupingFeature]; And the the result:
  9. mhmda

    Screen examples of you're application designs

    Custom header for reports using HTML and converting it to image. it's flexible and powerful.
  10. mhmda

    Screen examples of you're application designs

    Bringing this up....
  11. mhmda

    In ColumnSummary, howto use GroupFieldValue ?

    You mean Grouping + Summary?
  12. mhmda

    Screen examples of you're application designs

    We use this custom popup menu Extjs component taht we created:
  13. mhmda

    UniDbgrid roweditor was drawing at wrong position

    Well, I don't have hidden columns and 'ForceFit' is set to false.
  14. mhmda

    UniDbgrid roweditor was drawing at wrong position

    We use: 1.50.0.1483 Do you know why this happen?
  15. mhmda

    UniDbgrid roweditor was drawing at wrong position

    I have the same issue, when I assign a control as editor in column propertios then the roweditor draw wrong width!
  16. mhmda

    TUNITreeView convert to json

    procedure TMainForm.UniButton2Click(Sender: TObject); var i:Integer; json:string; begin json:='{"Permissions":['; for i := 0 to untrvw.Items.Count-1 do begin if (not untrvw.Items[i].IsLeaf) and (untrvw.Items[i].Level=0) then begin if json='{"Permissions":[' then json:=json+TWebTreeNode(untrvw.Items[i]).ToJSON else json:=json+','+TWebTreeNode(untrvw.Items[i]).ToJSON; end; end; json:=json+']}'; UniMemo1.Text:=json; end;
  17. Hi all, Here is a project which reads your events from your google account using unigui... Project Included (see attachments). just enter your email and password in this line: gcalendar:=TCGoogle.Create('xxxxxxx','xxxxxxxxxx');//email without @... and password If you are getting an error message: "Socket error #0" this is a known bug in Indy package, so update your Indy to latest version: http://stackoverflow.com/questions/10326810/random-indy-responsecode-1-eidsocketerror-socket-error-0-exceptions Note: you have to enable access to your google calendar: http://support.google.com/accounts/bin/answer.py?hl=en&answer=41192 Next mission: reading events from exchange account UniCalendar.rar
×