Jump to content

ainsama1

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by ainsama1

  1. On 2/22/2018 at 3:41 AM, Sherzod said:

    For both:

    
    function afterrender(sender, eOpts)
    {
        var me = sender;
        
        me.view.getEl().on('scroll', function(e, t) {
            if (t.scrollHeight - (t.scrollTop + me.view.el.getHeight()) == 0) {
                if (me.pagingBar) {
                    me.pagingBar.moveNext()
                }
            }
            else if (t.scrollTop == 0) {
                if (me.pagingBar) {
                    me.pagingBar.movePrevious()
                }
            }
        });
    }

    Is there a way to apply this approach on Mobile? Specifically in UnimDbListGrid? @Sherzod

  2.  

    Hi,

    I have this Grid that shows the PC parts. But instead of displaying the Items, it displayed "(Memo)". image.thumb.png.86ab4061926bbe081157364fa6615f79.png

    I've read many threads it says it can be done like this:

    procedure TForm1.DBGrid1DrawDataCell(Sender: TObject; const Rect: TRect;
      Field: TField; State: TGridDrawState);
    var
      S: String;
    begin
      if Field.DataType = ftMemo then
        begin
         S := Field.AsString;
          DBGrid1.Canvas.Pen.Color := clWindow;
          DBGrid1.Canvas.Brush.Color := clWindow;
          DBGrid1.Canvas.Rectangle(Rect);
          DBGrid1.Canvas.TextOut(Rect.Left, Rect.Top, S);
       end;
    end;

    But the UniDBGrid1.Canvas shows error. May i know your suggestions. Thanks

     

×
×
  • Create New...