0

Disable grid selection

In my application I create a Grid control which may have either 3 or 4 items. If the grid only contains 3 items the last item slot is empty. Is there any way to disable it. SO it cannot be selected??

by
3 Replies
  • You could always pass along focus if it is blank and move the focus to the next object/.
    0
  • I think that is standard grid control behavior. If you tell the grid what it's source data is it will create as many selectable cells as there are dataitems. If only 3, the 4th and later grid cells won't be selectable (by default).

    that.controls.grid.changeDataset(that.cache.imgData, true);

    changeDataset() is the api that connects an array to a grid and makes the grid display a limited number of items.

    Hope that helps!
    0
  • Depends on how you are using the Grid element, but jsl4tv is correct.

    Not sure how you are using it... Code always help to assist with any source issues.
    0

Recent Posts

in Design / Interaction - Yahoo! TV Widgets