Announcement

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

    canReorder on ListGridField seems not working

    SmartClient Version: v9.1p_2015-09-16/Pro Development Only (built 2015-09-16)
    Any Browser (at least Chrome + Firefox).

    Adding canReorder="false" to some of the fields is not working. The user can continue to move the headers of the listGrid. Setting the attribute canReorderFields="false" is working well but what we want is to disable the draggind only on the 2 first columns of our table.

    To reproduce the problem, modify the code snippset: http://www.smartclient.com/docs/9.1/...listGridFields

    With:
    isc.ListGrid.create({
    ID: "countryList",
    width:500, height:224, alternateRecordStyles:true,
    fields:[
    {name:"countryCode", title:"Code", canReorder:"false"},
    {name:"countryName", title:"Country", canReorder:"false"},
    {name:"independence", title:"Nationhood", type:"date", canReorder:"false"},
    {name:"population", title:"Population", type:"integer"},
    {name:"gdp", title:"GDP", type:"float"}
    ],
    data: countryData
    })

    #2
    Use boolean false, rather than the string "false"

    Comment


      #3
      thanks for your reply.
      Yes, it's working with the boolean instead of the String in my example. But how I can do it when I want to set this attribute through the datasource.xml file which is used by the listGrid?

      Comment


        #4
        canReorder isn't supported at the DataSourceField level - it has no meaning for most UI components. You should enforce it at the grid level, by providing field-definitions which will be automatically combined with DataSource field definitions.

        Comment

        Working...
        X