Jump to content

freedowsRoO

Members
  • Posts

    188
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by freedowsRoO

  1. 1 hour ago, Sherzod said:

    Hello,

    I'm fine, thank you. And you?

    Can you make a simple test case to see the problem?

     

    Sorry i tried to make the test case but i don't managed because i use a FIREDAC component to connect with The database.

     

    The problem is simple, i made a summary paged dbgrid following the demo and after that i add a collumn filter. My summary is ok but when i use the column filter i need to recalc the summary totals.

  2. 10 hours ago, Sherzod said:
    
    procedure TMainForm.UniFormCreate(Sender: TObject);
    Var
      THidenPanel: TUniHiddenPanel;
      TEdit: TUniEdit;
    begin
      UniMainModule.ADOQuery1.Open;
      UniMainModule.ADOQuery2.Open;
    
      THidenPanel:= TUniHiddenPanel.Create(self);
      THidenPanel.Parent := Self;  //<--------------------
      THidenPanel.Name:= 'THiddenPanel';
    
      TEdit:= TUniEdit.Create(self);
      TEdit.Parent:= THidenPanel;
      TEdit.Name:= 'TEdit';
      TEdit.EmptyText:= 'teste';
    
      if Assigned(TEdit) then
      begin
        UniDBGrid1.Columns[3].Filtering.Editor:= TEdit;
        UniDBGrid1.Columns[3].Filtering.Enabled:= True;
      end;
    
    end;

     

    It works but when i try to create a grid at runtime it's not work.... anny ideia?

    GridFiltering-2.rar

  3. On 8/23/2018 at 12:19 PM, Hayri ASLAN said:

    We have a solution. After adjust email address we will share it.

    Hello!! =]

    I'm with this exactly problem, i'm creating the filter in runtime and the visual are ok but the event just trigger once and de variable 'value' comes empty.

  4. On 11/19/2019 at 1:40 PM, Sherzod said:

    Try to provide a few examples of the conditions you want to apply.

     

    I managed to did what i wanted using the reconfigure,  thanks for your help. 

  5. 33 minutes ago, Sherzod said:

    But it seems we already decided using reconfigure function for this !?

     

    Yes and no.... I dont know how to do conditions in ext, i need to make some if and else with the values, and need to validate null values, can you help me?

  6. 6 hours ago, Sherzod said:

    Hello,

    I think it’s not right to use the editor for such purposes.
    What do you want to get from this?

    I need to do some calcs based on the value of the cells..... example i input 400 in the first cell, when i go to second cell i need to get the value of the first cell (400) and make some validations and calcs.

  7. Hello again, i'm using a dbgrid with an edit on cell editor and trying to use the 'OnExit' event to get the value input on edit and throw to another edit.  The problem is that the command 'edit.text' return empty.

     

     

    Here a example....

    GridEditors.rar

  8. 1 hour ago, Sherzod said:

    Hi,

    Can you test with this approach?

    UniDBGrid.ClientEvents.ExtEvents - > function reconfigure:

    
    function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
    {
        //columns[3] - calculated field index - "3"
        //get('1') - field index - "1"
        //get('2') - field index - "2"
        
        columns[3].renderer = function(value, metadata, record) {
            return (parseFloat(record.get('1')) * parseFloat(record.get('2'))).toFixed(2)
        }
    }

     

    YOU ARE THE BEST!!! This work perfectly!!!

     Thanks man!!!

    • Like 1
  9. 14 minutes ago, Sherzod said:

    I understood what you want, I just thought that if you already have a test case. Ok, I will try to analyze...

    And another question, how do you save the data after editing cells, or do you use "autosave"?

    Sorry... i don't have a test case, i'm trying in my application and it's huge... I'm using autosave in grid.

  10. 35 minutes ago, Sherzod said:

    Can you make a simple testcase?

    I'll make a GIF with what i want. 

    giphy.gif

     

    Note that when i input the number 30 on field 'Desconto' the field '% Desc' change automatic. I want to do this with the DBGrid...... Is that possible?

     

  11. 7 hours ago, Sherzod said:

    Hi,

    Maybe you need to use a calculated field!?

     

    It's similar but calculated fields just work if you save the row, i need to calc the next column int the exactly moment that i leave the previous column. i almost managed to do using the "OnSetCellValue" event on DBGrid but i did not managed to set the next cell value in this event or get another cell value.

  12. 24 minutes ago, Sherzod said:

    Hi,

    Sorry, can you please explain in more detail?

    Sure, for example: i have a DBGrid with 3 columns i need that when i leave column number 2 the system get the values of columns 1 and 2, calc the values and save in column number 3.

    Thanks =]

  13. On 9/15/2019 at 5:07 AM, Sherzod said:

    Hi,

    Can you try to temporarily remove all third-party components?

     

    Helllooo!!!

     

    I found the problem, did several tests and found that the problem occurs when using the 'UniSyntaxEditEx' component. I dont know wy but thats it.

  14. 6 hours ago, Sherzod said:

    Hi,

    Can you add this code to MainForm.Script and test?

    
    Ext.onReady(function() {
        Ext.Loader.loadScript('files/html2canvas.min.js'); // please correct your path
    });

     

    Same error..... The .JS is loaded but the error persist

×
×
  • Create New...