Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Listgrid Auto expand

    We use listgrid and it works it perfect.

    Please suggest me that how to auto expand columns in listgrid.


    Thanks.

    #2
    Please clarify what you mean by "auto expand" - be very detailed in exactly what behaviors you need.

    Comment


      #3
      By auto expand mean column width should be auto adjustable as per list grid column content length. So content will be fit in ListGrid and user can easily view whole content.

      Comment


        #4
        Assume I have a List Grid with cols c1....cn

        because of "screen real estate" limitation on the browser all of c1...cn will show only part of the content.

        We would like to control which of these columns must always show the full content while the rest are OK to show partial content.

        Comment


          #5
          You can currently roughly do this via setting different percentage sizes on different columns. A true auto fit to values feature is currently in development and expected to be completed within two weeks (in nightly builds).

          Comment


            #6
            For those who might be wondering how to do this in SmartClient...

            In the ListGrid properties, specify the property 'autoFitWidthApproach' to have a value of 'both'. Then, for each field in the grid that you would like to have auto-fit, add the 'autoFitWidth' property and set to a value of 'true'.

            Like this:

            Code:
            isc.ListGrid.create({
               ID: 'lstEmployees',
               dataSource: 'dsEmployees',
               width:500, 
               autoFitWidthApproach: 'both',
               fields: [
                     {title: 'Last Name', name:'lastName', autoFitWidth:true},
                     {title: 'First Name', name:'firstName'}
               ]
            });
            Hope this helps.

            Comment

            Working...
            X