Announcement

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

    TreeGrid with checkbox

    Hello,

    How not to show checkbox for folder??

    I have TreeGrid with ckeckBox, But at a time only one checkbox should be selected. I can do that using following 2 property
    selectionAppearance:"checkbox",
    selectionType: 'single',

    But This also allow to select folder.
    I do not want to display checkbox for folder. No checkbox, no selection.


    isc.treeGrid.create({
    position: "relative",
    canHover: false,
    autoDraw: false,
    autoFetchData: true,
    //canEdit: true,
    canDragRecordsOut: false,
    canReorderRecords: true,
    canAcceptDroppedRecords: true,
    showConnectors: true,
    showRollOver: false,
    alternateRecordStyles:true,
    selectionAppearance:"checkbox",
    selectionType: 'single',
    editEvent: "doubleClick",
    height: "100%",
    widht: "100%",
    showHeader: false,
    canEdit: true
    }) Click image for larger version

Name:	treecheckbox.PNG
Views:	99
Size:	3.9 KB
ID:	235171


    I use smartClient v10.0p_2015-01-14/PowerEdition Development Only (2015-01-14)

    Thanking you.
    Last edited by ppratik; 22 Feb 2016, 06:48.

    #2
    See ListGrid.recordCanSelectProperty - you can set a property to false on each of your folders to disallow selection.

    Comment

    Working...
    X