Jump to content

gastelumri

uniGUI Subscriber
  • Posts

    15
  • Joined

  • Last visited

Posts posted by gastelumri

  1. 1 hour ago, bdiri said:

    UniDBGrid1.Columns[0].Visible:=false;
    UniDBGrid1.Columns[0].Menu.ColumnHideable := False;

    May work, but will need the part that is set on IDE (UniDBGrid -> ClientEvents -> ExtEvents -> function reconfigure)

     

    4 hours ago, Sherzod said:

    Hide column?

    Yes, hide the column, something like the below code

    procedure TMainForm.UniBitBtn1Click(Sender: TObject);
    begin
      UniDBGrid1.ClientEvents.Enabled:=false;
      UniDBGrid1.ClientEvents.ExtEvents.Clear;
      UniDBGrid1.ClientEvents.Enabled:=true;
      UniDBGrid1.ClientEvents.ExtEvents.Values['reconfigure']:=
         'function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) ' +
         ' { columns[0].hideable=false; }';
    
      //UniDBGrid1.ClientEvents.ExtEvents.Values['activate']:= 'function activate(sender, eOpts) { }';
    end;

     

  2. Demo application, as promised.

     

    There are mainly two small things to keep in mind. Do not have the application auto create the quick report form. When you add the form, go into the project settings and remove the form from the autocreate list.

    Secondly you need to disable the progressindicator from the report as it doesn't make sense in webmode. (TQuickRep.ShowProgress := False)

     

    Thank you, how can I do to run on ISAPI?

×
×
  • Create New...