Announcement

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

    duplicate listgrid and change dataSource

    Hi guys,

    Is it possible to duplicate a listgrid? I need to change the datasource and I do not want to effect the original listgrid, just the duplicate.

    For example:

    Original

    Code:
    isc.ListGrid.create({
        ID:"myCourseOverview",
        useAllDataSourceFields:false,
        dataSource: myCourseDB,
    	autoSaveEdits:false,
    ...
    Duplicate

    Code:
    isc.ListGrid.create({
        ID:"DuplicateMyCourseOverview",
        duplicate:"myCourseOverview",
        dataSource: "DuplicateMyCourseDB"
    });
    Not sure if duplicate is the right term to use, Extend maybe reuse?

    #2
    You can just create a function that returns the ListGrid, and call it more than once.

    Alternatively you can create a class, and create multiple instances.

    Comment

    Working...
    X