EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  horizontal scrollbar in datagrid egl

    Posted Fri March 06, 2015 03:47 AM

    I am trying to set horizontal scrollbar only in datagrid . Is this possible?

    I uploaded a sample code. When I enlarge the column I want to enable vertical scrollbar .

    michaeldefox


  • 2.  Re: horizontal scrollbar in datagrid egl

    Posted Fri March 06, 2015 04:00 AM

    Hi,

    you could put your DataGrid in a DojoAccordionContainer,

    then you have the horizontal scrollbar from the Accordion Container.

     

    If you find an other way i'm very interested in it!

    Marcel-D

    Attachments



  • 3.  Re: horizontal scrollbar in datagrid egl

    Posted Fri March 06, 2015 04:32 AM

    That's a good idea but I would like to keep only the horizontal(sorry i made a mistake at my previous post)

    As I tested the DojoAccordionContainer , I couldnt disable vertical scrollbar.

     

    Thanks

    michaeldefox


  • 4.  Re: horizontal scrollbar in datagrid egl

    Posted Fri March 06, 2015 04:48 AM

    Hi,

    the datagrid should not be higher than the DojoAccordionContainer.

    You can avoid the vertical scrollbar if you set the "pageSize" in the datagrid.

    Marcel-D


  • 5.  Re: horizontal scrollbar in datagrid egl

    Posted Fri March 06, 2015 05:04 AM

    Thanks I got it. Is it possible to enable visibility of DojoAccordionContainer only when I 'm out of datagrid size limits?

    I m searching a more simple "appearence" solution in order to leave datagrid appearence as it is. DojoAccordionContainer has that

    bold border above which isn't so nice for my datagrid.

    Thanks anyway!!

    michaeldefox


  • 6.  Re: horizontal scrollbar in datagrid egl

    Posted Fri March 06, 2015 05:23 AM

    You could try this with append and remove child...

    I uploaded a sample code.

     

    But you could also take a look for other widgets without a bold border above.

     

    Kind regards!

    Marcel-D

    Attachments



  • 7.  Re: horizontal scrollbar in datagrid egl

    Posted Fri March 06, 2015 07:23 AM

    Sample code doesn't work . I try to put a box with scrollbar but cant get the size of datagrid.

    Please see my attached code.

    The css file contains:

    .container{
        
        border:dotted 1px;
        white-space:nowrap;
        overflow-x: scroll;
        padding-right: 16px;

    }
     

    Thanks.

    michaeldefox

    Attachments



  • 8.  Re: horizontal scrollbar in datagrid egl

    Posted Mon March 09, 2015 03:04 AM

    Hi Michael,

    When you replace the line 

    ui Div{ children = [ dataGrid ] };

    with:

    ui Box{ style = "overflow-x:auto", width = 200, children = [ dataGrid ] };

    Ideally you should put styling in a css-file, but I this also does the job.
    Is this what you mean?

     

    gweis