Jump to content

uniguisyriusz

uniGUI Subscriber
  • Posts

    61
  • Joined

  • Last visited

Everything posted by uniguisyriusz

  1. New example. We have MainForm with PageControl, on TabSheet3 is placed Frame1 with PageControl. When user is changing DateTimePicker value in first column from left, value of its neighbour in second column schould change - but it's not. It happens after changing pagecontrol tab. When unidatetimepicker is placed on form, like on MainForm TabSheet1 and 2 everything is working fine. uniDateTimePicker.zip
  2. Maybe example will be better? There is TUnidateTimePicker with UniDateTimePicker1ChangeValue. Usually when its value is changing then UniDateTimePicker1ChangeValue fires. But sometimes UniDateTimePicker1ChangeValue is not firing. uniDateTimePicker.rar
  3. Like in subject. Sometimes OnChangeValue event not fires. In browsers console everething looks ok.
  4. Thank you very much for the advice. This is a UniGui-style solution. I only need to convert 180 datetimepicker to combobox.
  5. Is it possible to set TUniDateTimePicker items list to constant value? For example [06:00, 08:80, 08:30, 10:00, 11:00,15:00]?
  6. Params.Text = Ajax=1 IsEvent=1 Obj=O1C Evt=select This=O1C rr=2 cc=3 _S_ID=fk9yVGicJY10516EAE5 _fp_=%26O18%3D%25020%2502%2502%25032%25033%2503 _seq_=5 _uo_=O0
  7. Example in attachment. function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { Ext.defer(function(){ ajaxRequest(sender, 'celldblclick', ['cel='+cellIndex, 'testA=22'], true) }, 300); } uniStringGrid.rar
  8. uniGUI Compolete Professional v1.90.0.1496 Ext event: function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { Ext.defer(function(){ ajaxRequest(sender, 'celldblclick', ['cel='+cellIndex], false) }, 300); } In Delphi OnAjaxEvent parameter cel is missing. There is parameter c but its value is 0 for first and second column (first column is fixed). I need to know column id independently from fixed columns count.
  9. frMiesiac is not needed, it can be removed. uni_harmonogram_.rar
  10. Because the standard grid and other components are not enough for me.
  11. Can it be done efficiently? Creating 310 kills the application. Example in the attachment. uni_harmonogram.rar
  12. Ok. But why CurrColl is not changing? Its value is always 0.
  13. Add OnSelectionChange to UniDBGrid and inside of it check values of UniDbGrid.CurrCol and CurrRow.
  14. When rowselect is active and user is using keyboard keys up, down left, right, CurrColl is not changing only CurrRow is changing. When rowselect is off CurrCol and CurrRow are changing but it's imposible to select whole rows.
  15. Refresh on UniDbGrid? unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIRegClasses, uniGUIForm, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client, uniGUIBaseClasses, uniBasicGrid, uniDBGrid, uniButton, uniPanel, uniTimer, uniThreadTimer; const WM_MY_MESSAGE = WM_USER + 0; type TMainForm = class(TUniForm) FDQuery1: TFDQuery; UniDBGrid1: TUniDBGrid; DataSource1: TDataSource; UniButton1: TUniButton; UniTimer1: TUniTimer; procedure FDQuery1AfterOpen(DataSet: TDataSet); procedure UniButton1Click(Sender: TObject); private public { Public declarations } end; function MainForm: TMainForm; implementation {$R *.dfm} uses uniGUIVars, MainModule, uniGUIApplication; function MainForm: TMainForm; begin Result := TMainForm(UniMainModule.GetFormInstance(TMainForm)); end; procedure TMainForm.FDQuery1AfterOpen(DataSet: TDataSet); begin DataSource1.DataSet := FDQuery1; UniDBGrid1.DataSource := DataSource1; UniTimer1.Enabled := false; //UniDBGrid1.JSInterface.JSCall('view.refresh', []); end; procedure TMainForm.UniButton1Click(Sender: TObject); begin FDQuery1.Open(); end; initialization RegisterAppFormClass(TMainForm); end.
  16. This solution raise the same exception "Attempt to access nil session reference "
×
×
  • Create New...