Announcement

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

    autoFitData "horizontal" not working

    I've tried various combinations of property settings trying to get the expected behavior (column widths adjusting to the column contents), and nothing seems to work. Here is a simple example using the animals DS from the samples. Adding or removing the "autoFitData horizontal" setting makes no difference in the results. Is there a combination of settings that will make this work?

    [CODE]
    <DataSource>
    <loadID>animals</loadID>
    </DataSource>


    <ListGrid>
    <autoFitData>horizontal</autoFitData>
    <dataSource>animals</dataSource>
    <ID>ListGrid3</ID>
    <autoFetchData>true</autoFetchData>
    <autoDraw>false</autoDraw>
    </ListGrid>


    <VLayout>
    <members><Canvas>ListGrid3</Canvas>
    </members>
    <ID>VLayout4</ID>
    <width>100%</width>
    <height>100%</height>
    <overflow>hidden</overflow>
    <autoDraw>true</autoDraw>
    </VLayout>

    [CODE]

    #2
    There's aaample in the Feature Explorer under Grids -> AutoFit

    Comment


      #3
      None of the examples show it working

      The one that comes closest is Grids>Autofit>Columns. But the column widths are set to a fixed initial value of 100 in the JS code. What I am looking for is a way to have the column widths automatically adjusted based on the content of the first few rows of data when the grid is loaded. If you change the data in the example so that some country names are longer the initial column width is still 100 and the extra characters clipped.

      Comment


        #4
        Still not able to get this to work. Try adding autoFitData:"horizontal" to the Live Grid sample and you can see it makes no difference in the column widths.
        Code:
        isc.ListGrid.create({
            ID:"dsListGrid", 
            width: "100%",
            height: "100%",
            autoFetchData: true,
            dataSource: "supplyItem",
            autoFitData: "horizontal" 
        });

        Comment


          #5
          for me too

          Its not working for me too. Its' very irritating. I started a new thread without looking at ur post. However the question still remains. Have u figured a way out?

          Comment

          Working...
          X