Announcement

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

    When you click on any record to edit in the editable ListGrid object that has an expansion record, the clicked record goes to the top of the ListGrid object.

    When you click on any record to edit in the editable ListGrid object that has an expansion record, the clicked record goes to the top of the ListGrid object.

    Is this a bug? If it's not a bug, is there a way to prevent this?

    If you paste the code below into the example in this link, you will see the error.

    https://www.smartclient.com/smartcli...tedWithDetails

    Code:
    isc.ListGrid.create({
        ID: "itemList",
        width:500, height:300, 
        alternateRecordStyles:true,
        expansionFieldImageShowSelected:true,
    
        // use the supplyItemWithOps dataSource and use it's "outputsLimitedFetch" operation.
        // this demonstrates using "outputs" on an operationBinding to forcibly limit the data 
        // retrieved for each row
        dataSource: supplyItemWithOps,
        fetchOperation: "outputsLimitedFetch",
        autoFetchData: true,
    
        fields: [
            {name: "itemName"},
            {name: "SKU"},
            {name: "category"}
        ],
    
        // allow multiple records to be expanded, but limit it to 3
        canExpandRecords: true,
        canExpandMultipleRecords: true,
        maxExpandedRecords: 3,
    
        // override the builtin getExpansionComponent() method so we can return a component of our
        // choosing - in this case, create a DetailViewer, populate it with the entire record from 
        // the server and return it for display
        getExpansionComponent : function (record, rowNum, colNum) {
            var component = isc.DetailViewer.create({
                dataSource: supplyItemWithOps
            });
    
            component.fetchData({itemID: record.itemID});
    
            return component;
        },
        canEdit:true
    });
    Click image for larger version

Name:	error.png
Views:	17
Size:	118.4 KB
ID:	257319

    #2
    This has been fixed for builds dated April 4 and later.

    Comment


      #3
      We are using SmartClient version 10.1. Will this version also be fixed?

      Comment


        #4
        It hasn't been up to now, but we'll port the fix back today - please retest with tomorrow's build.

        Comment

        Working...
        X