Announcement

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

    Sending Grid data in one request

    I am working with smart client and using the 2 ListGrid with the copy feature, everything is working fine but I am looking a way where I can send the data in one go to the server.

    I have a form where user needs to provide some details and at the same time he can select products which user want to be used for this functionality.

    For the product selection, I am using the
    Code:
     ListGrid
    I am looking a way where user can select products but they selection should not be bind to a data-source for each selection

    All I am looking a way where user can select products and once they click on the save button , data should be sent to the controller along with the other form fields.

    Here is my code for the
    Code:
     ListGrid
    Code:
    isc.RestDataSource.create({
        ID: "products",
        dataFormat: "json",
        dataURL: "<c:url value=" / admin / products / paging.html " />",
        operationBindings: [{
            operationType: "fetch",
            dataProtocol: "postParams"
        }]
    });
    
    isc.ListGrid.create({
        ID: "employeesList",
        width: 351,
        height: 264,
        left: 457,
        top: 263,
        dataSource: products,
        canDragRecordsOut: true,
        dragDataAction: "copy",
        alternateRecordStyles: true,
        autoFetchData: false,
        fields: [{
            name: "productId"
        }, {
            name: "name"
        }, {
            name: "sku"
        }]
    });
    
    isc.Img.create({
            src: "<c:url value='/resources/img/arrow_right.png' />",
            width: 32,
            height: 22,
            left: 811,
            top: 365,
            layoutAlign: "center",
            click: "projectList.transferSelectedData(employeesList)"
        }),
    
        isc.ListGrid.create({
            ID: "projectList",
            width: 340,
            height: 264,
            left: 844,
            top: 262,
            //data: teamMembers,
            canAcceptDroppedRecords: true,
            canRemoveRecords: true,
            alternateRecordStyles: true,
            autoFetchData: false,
            preventDuplicates: true,
            leaveScrollbarGap: false,
            fields: [{
                name: "productId",
                width: "25%"
            }, {
                name: "name",
                width: "40%"
            }, {
                name: "sku"
            }]
        });
    
    
    
    employeesList.fetchData();
    is there a way to bind `projectList` to a local dataaset and this dataset can be sent to the server along with the other form values?

    #2
    See the QuickStart Guide section on Queuing.

    Comment

    Working...
    X