Jump to content
uniGUI Discussion Forums

mhmda

uniGUI Subscriber
  • Content Count

    927
  • Joined

  • Last visited

  • Days Won

    97

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

    Here an example for sending SMS

    Thank you
  13. mhmda

    Layout: advanced tutorial

    Thank you
  14. Hello everybody, It's very important to understand the layout and the best way to learn them is by practicing, and here is a project showing how to design a dashboard in uniGUI using layouts, I have searched the internet for a dashboard and found this one and this project for you. I hope this will help you understand layouts. Plus: responsive content ! + UniCharts (Pie & line) - try to resize your browser, and try to refresh page to see random results for the charts. Online demo here: http://5.189.151.122:xxxx Download project (with .exe) http://3msoft.net/mhmd/layout.rar
  15. mhmda

    Screen examples of you're application designs

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

    UniDbgrid roweditor was drawing at wrong position

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

    UniDbgrid roweditor was drawing at wrong position

    We use: 1.50.0.1483 Do you know why this happen?
  18. 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!
  19. 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;
×