Jump to content

sertatar76

uniGUI Subscriber
  • Posts

    10
  • Joined

  • Last visited

Posts posted by sertatar76

  1. add source code:

      UniDBGrid1.Grouping.Enabled := True;
      UniDBGrid1.Grouping.FieldName := 'COUNTRY';
      UniDBGrid1.OnColumnSort := UniDBGrid1ColumnSort;

    not work.

    If in desing add     UniDBGrid1.Grouping.Enabled = True then it`s work.

    What should I write in  UniDBGrid1.JSInterface.JSCode(...) ?

     

    GridGroup_Test.zip

    • Upvote 2
  2. I did it, but got a error 

      if not UniDBGrid1.Summary.Enabled then
      begin
        UniDBGrid1.Summary.Enabled := True;
    //    UniDBGrid1.OnColumnSummary := UniDBGrid1ColumnSummary;
    //    UniDBGrid1.OnColumnSummaryResult := UniDBGrid1ColumnSummaryResult;
        UniDBGrid1.JSInterface.JSCode('var me='#1'; var _view=null; var _lockedview=null; if (!me.lockedGrid && !me.normalGrid) {_view=me.getView()} else {_view=me.normalGrid.getView(); _lockedview=me.lockedGrid.getView()}; '+
                                    'if (_view) {_view.summaryFeature.summaryBar.show()};'+
                                    'if (_lockedview) {_lockedview.summaryFeature.summaryBar.show()};'
        );

      end;

    Cannot read property 'summaryBar' of undefined
     
  3. Hi

    I wanted to clarify to the "When creating a control dynamically"

     

    I need to recreate chart.

    ...

    FreeAndNil(UniChart1);

    UniChart1 := TUniChart.Create(Self);
    UniChart1.ClientEvents.UniEvents.Add(
            'chart.beforeInit=function chart.beforeInit(sender, config)' +
            '{config.colors = ["#556677", "#112233", "#995577]}');
    ...
     
    It not work.
×
×
  • Create New...