Jump to content

Sherzod

Moderators
  • Posts

    19717
  • Joined

  • Last visited

  • Days Won

    639

Everything posted by Sherzod

  1. Hi uniguibbs. I think, for the time being, it can be implemented using ExtJS (not UniGUI) ... Like this: http://try.sencha.com/extjs/4.1.1/docs/Ext.form.RadioGroup.1/viewer.html Sincerely
  2. Can you give the code where you edit record?
  3. SocialCalc implemented in Javascript. http://www.aosabook.org/en/socialcalc.html Demo: http://plugindetector.com/ru/socialcalc
  4. Hi eelias. Maybe not the best solution... If you created a form with UniPanel1.Visible := False, then 1. Change the Visible property to true: UniPanel1.Visible = True; 2. Then, add beforeInit to UniPanel1 -> UniEvents function beforeInit(sender) { sender.animate({ duration: 1, to: { opacity: 0 }}); } 3. Then you can use your code. UniSession.AddJS(UnPanelMessage.JSName + '.animate({ duration: 1000, to: { opacity: 1 });'); UniSession.AddJS(UnPanelMessage.JSName + '.animate({ duration: 1000, to: { opacity: 0 });'); Sincerely (Sorry if I misunderstood the question...)
  5. Hi Farshad. Please tell me whether it is possible disable synchronization of changes in the grid: grid.store.autoSync = false; And then after the changes the user can save the changes. Using: grid.store.sync (); Is it possible? Thank you.
  6. Hi erich.wanker. I use standard components InterBase. connection and the queries, it's desirable put in DataModule... Sincerely
  7. Hi All. Another interesting feature animation - pulse sets pulsation elements. element.frame("#0000b9", 5, { duration: 1000 }); Sample: UniSession.AddJS(UniButton1.JSName + '.el.frame("#0000b9", 3, {duration: 1000});'); I think may be useful to draw attention to a particular element. Sincerely
  8. Solution: Hide: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.hide();'); Show: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.show();'); Sincerely
  9. Solution: 1. UniStringGrid -> Options -> goEditing = true 2. UniStringGrid -> ExtEvents -> add event beforeedit function beforeedit(editor, context, eOpts) { var FixedRow, FixedCols; FixedRow = 1; FixedCols = 1; if (editor.cmp.uniRow < FixedRow || editor.cmp.uniCol < FixedCols) { return false; } } Sincerely...
  10. Sorry I just didn't understand the question, now everything is clear. Now I will try to find a solution...
  11. Hi mehmet pak. Try this: UniSession.AddJS('document.getElementById("'+UniPanel1.JsName+'_id-body").style.backgroundColor = "green";'); Sincerely Sorry I hurried to answer... may just need to change the class UniServerModule - > CustomCSS add .x-mask { background: none repeat scroll 0 0 #000CCC; opacity: 0.5; }
  12. Sorry, What a component is shown in the image, can clarify the issue?
  13. Hi Marko Kastelic. Use this: grid.headerCt.move(oldColumnIndex, newColumnIndex); UniSession.AddJS(UniDBGrid1.JSName + '.headerCt.move(1,5);' + UniDBGrid1.JSName + '.view.refresh();'); Sincerely...
  14. Hi Oscar Flor Try: UniDBGrid1 - > UniEvents function beforeInit(sender) { this.view.emptyText = "<div style='width:150px;margin:0 auto;'><br><h2>No records!!!</h2></div>"; } Or change empty text in runtime: UniSession.AddJS(UniDBGrid1.JSName + '.view.emptyText = "<div style=''width:150px;margin:0 auto;''><br><h2>No records!!!</h2></div>"; '+UniDBGrid1.JSName+'.getView().refresh();'); Sincerely
  15. Hi All ... One of the solutions ... (Can be useful to someone) After editing the grid, move to the next cell to the next line. 1. UniDBGrid1 -> ExtEvents -> function edit(editor, context, eOpts) { ajaxRequest(this, 'modified', []); } 2. procedure TMainForm.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TStrings); begin if (EventName = 'modified') and (UniDBGrid1.DataSource.DataSet.RecNo <> UniDBGrid1.DataSource.DataSet.RecordCount) then begin if UniDBGrid1.WebOptions.Paged then UniSession.AddJS('if (('+UniDBGrid1.JSName+'.getStore().pageSize - 1) != '+UniDBGrid1.JSName+'.uniRow){'+UniDBGrid1.JSName+'.getSelectionModel().setCurrentPosition({row: '+UniDBGrid1.JSName+'.uniRow + 1, column: '+UniDBGrid1.JSName+'.uniCol})} else {'+UniDBGrid1.JSName+'.getStore().nextPage(1);'+UniDBGrid1.JSName+'.uniRow = 0};') else UniSession.AddJS(UniDBGrid1.JSName+'.getSelectionModel().setCurrentPosition({row: '+UniDBGrid1.JSName+'.uniRow + 1, column: '+UniDBGrid1.JSName+'.uniCol});') end; end; Sincerely...
  16. Hi Farshad. This feature is implemented in the current version? Thank you.
  17. Hi huangrenping. In designtimes: 1. UniStringGrid -> Options -> goEditing = true In runtimes: 1. Uses ... Vcl.Grids ... 2. UniStringGrid1.Options: = UniStringGrid1.Options + [goEditing]; Sincerely...
  18. Please Farshad! Give the solution ... Thank you!
  19. Hi Farshad! Can you help us?! Sincerely...
  20. Hi Farshad! Can you include "SpreadSheet" in the framework??! http://www.extjs4spreadsheet.com/spread/10/examples/spread-full http://www.extjs4spreadsheet.com/en/introduction Thank you! Sincerely.
  21. I think, to set the width UniMenuItem, easier to use caption with "<br>" Sincerely ...
  22. Thank you very much, I'll try...
  23. Hi rullomare! Thank you for your response. How did you know that "O3B", this is UniMainMenu? Thank you ...
×
×
  • Create New...