Jump to content

All Activity

This stream auto-updates

  1. Today
  2. picyka

    Only errors.

    I believe that no one should use SLEEP there anyway, it was just a way to simulate a delay when loading the data.
  3. andyhill

    Only errors.

    I never use SLEEP, instead use ajaxrequest with delay. ... UniSession.AddJS('Ext.defer(function() {ajaxRequest(MainForm.window, ''_SetFilter_'', [])}, 300);'); ... procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if SameText('_SetFilter_', EventName) then begin ...
  4. It worked, now, is there any way I can remove the All *.* option?
  5. picyka

    Only errors.

    Perhaps the grid mask would have to be activated in the OnColumnFilter event, and not just when loading the data.
  6. Try this approach for now: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniFileUploadButton1 do begin Filter := '.pdf,.txt'; JSInterface.JSCall('fileInputEl.dom.setAttribute', ['accept', Filter]); end; end;
  7. picyka

    Only errors.

    I'll help you simulate the error very easily. procedure TMainForm.UniDBGrid1ColumnFilter(Sender: TUniDBGrid; const Column: TUniDBGridColumn; const Value: Variant); begin if Column.FieldName = 'LOG_UF' then begin CDCadastro.Filtered := False; if Value <> '' then begin var lFiltro := ''; if VarToStr(Value).Contains(';') then lFiltro := 'SC' else lFiltro := VarToStr(Value); Sleep(1000); CDCadastro.Filter := 'LOG_UF=' + QuotedStr(lFiltro); CDCadastro.Filtered := True; end; end; end; Sleep(1000); In my production system, the error occurs more easily than in the demo, because there is a small delay in loading the data. so I put a Sleep(1000); After selecting the SC value, click very quickly on more than one line. @Farshad Mohajeri
  8. in the end, it was all my bugs..... and the most important. AlignmentControl = uniAlignmentClient
  9. picyka

    Only errors.

    Component: UniDBGridServicos (TUniDBGrid) Parent: UniFrameCadFornecedor0 LastAjaxEvent: actionclick Class: Exception Message: TUniCustomDBGrid.MoveToRow(): Unexpected Row number: 2, 3 Version: 1573
  10. picyka

    Only errors.

    Test = 1555 production = 1573
  11. Build number? Does your build include below fix? [UNG-3473] - TUniDBGrid: Workaround for RecNo mismatch error.
  12. picyka

    Only errors.

    In production I use version 73, this test is version 55.
  13. Hi, Is this the latest uniGUI build ?
  14. The component only takes into account what is defined in it, if I pass another filter at run time it doesn't work. If you look at the image, my component only has the option filter = *.pfx and I want to pass other types of filters based on what the users choose, I passed the option Filter := '.p12,.pfx'; but it did not work.
  15. When you finish writing a CSS there are 2 other steps to consider 1- Troubleshooting: It is possible that there are errors in the code, for example, instead of 1px, you wrote only 1 2- Compression: It is important to increase the execution speed You can use different sites for this This is a good site and you can see the results of the previous code https://www.cssportal.com/css-optimize/ and final code .rc-grid-title-check .x-column-header-checkbox{display:none}.x-column-header{background-color:#FFF;border:1px solid red;border-color:#7EA8F8;border-radius:2px;color:#000;height:40px!important;padding:1px;text-align:center;vertical-align:middle}.x-grid{background-color:#FFF;border-collapse:collapse;border-color:#7EA8F8;border-style:solid;border-width:1px;color:#000;width:100%}.x-grid .x-grid-cell{height:30px!important;line-height:30px!important}.x-grid td,.x-grid th{border-color:#7EA8F8;border-style:solid;border-width:2px;padding:5px}.x-grid-cell-inner{overflow:hidden;padding:5px 4px 4px!important;text-overflow:ellipsis;white-space:nowrap}.x-grid-header-ct .x-column-header-inner{white-space:nowrap}.x-grid-item-selected .x-grid-cell{background-color:#FFFFE0;border:1px solid #cce5ff;color:#00008B}.x-grid-td{vertical-align:middle}.x-toolbar-default{border-width:0;padding:6px 0 0}.x-toolbar-default .x-toolbar-separator-horizontal{border-width:0}.x-toolbar-text-default{color:#4b4c4c;padding:0 0 0 -8px}
  16. A CSS for UniDBGrid .x-grid-header-ct .x-column-header-inner { white-space: nowrap; } .x-column-header { border: 1px solid red; height: 40px !important; background-color:#FFF; border-color:#7EA8F8; border-radius:2px; color:#000; padding:1px; text-align:center; vertical-align:middle; } .x-grid-item-selected .x-grid-cell { background-color:#FFFFE0; border:1 solid #cce5ff; color:#00008B; } .x-grid-cell-inner { padding: 5px 4px 4px!important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .x-grid-td { vertical-align: middle; } .rc-grid-title-check .x-column-header-checkbox { display:none; } .x-toolbar-text-default { padding: 0px 0px 0px -8px; color: #4b4c4c; } .x-toolbar-default .x-toolbar-separator-horizontal{ border-width: 0px; } .x-toolbar-default { padding: 6px 0 0px 0px; border-width: 0px; } .x-grid .x-grid-cell { height: 30px !important; line-height: 30px !important; } .x-grid { background-color:#FFF; border-collapse:collapse; border-color:#7EA8F8; border-style:solid; border-width:1px; color:#000; width:100% } .x-grid td,.x-grid th { border-color:#7EA8F8; border-style:solid; border-width:2px; padding:5px }
  17. Yesterday
  18. Can I change the filter property? Can I put 2 different filters? Example: *.pdf *.txt
  19. I've sent you in the same day I were notified by Paypal.

    Have you Download the pack ?

     
    Sending again:
     
    Below is your download link for all projects in the pack. Open the Indexdw.html for a easy access to files in the JS folder.
    https://mega.nz/file/QYR0iY4A#etz837NkVWQhw62-A6OTES6Fs0HJiH-4kdvQMV5m2EY
     
    Please confirm you have downloaded it successfully.
    1. Fred Montier

      Fred Montier

      Sent to
      info@csh-kommunal.de

      Just sent again. Please confirm.

      Sending again:
       
      Below is your download link for all projects in the pack. Open the Indexdw.html for a easy access to files in the JS folder.
      https://mega.nz/file/QYR0iY4A#etz837NkVWQhw62-A6OTES6Fs0HJiH-4kdvQMV5m2EY
       
      Please confirm you have downloaded it successfully.
  20. picyka

    Only errors.

    unit uniDBGrid; function SetCurrentRowCol(ARow, ACol:Integer; SuppParams: array of string):Boolean; override; It seems that it tries to select the line and is processing the filter, which ends up causing the error, I don't know if I'm quite sure about this theory.
  21. picyka

    Only errors.

    Master @Farshad Mohajeri, I hope I can help you.
  22. picyka

    Only errors.

    This was another test case here on the forum, I just used it to advance the example. My additional code was just the UniCheckComboBox1 and the filter event on the grid. Error.zip is a video, you need to select the SC filter and click on the column, this is all very quick. Error.zip Grid - DbGrid Editavel.zip
  1. Load more activity
×
×
  • Create New...