Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid focusInCell Bug

$
0
0
SmartClient v10.0p_2015_04_09

Hi,
we've encountered an Issue with focusInCell inside a Listgrid.

On rowEditorExit we created a isc.confirm, if selected the cancel button we tried to set the focus on a specified cell (of the row being edited).

However the focusInCell throw a Javascript Error.

Uncaught TypeError: _3.hasFocus is not a function.

You can test it with the following code: (Based on http://www.smartclient.com/docs/10.0/a/system/reference/SmartClient_Explorer.html#editByRow)

Code:

isc.ListGrid.create({
    ID: "countryList",
    width:550, height:224, alternateRecordStyles:true, cellHeight:22,
    // use server-side dataSource so edits are retained across page transitions
    dataSource: countryDS,
canFocus:true,
    // display a subset of fields from the datasource
    fields:[
        //{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
        {name:"countryName"},
        {name:"continent"},
        {name:"member_g8"},
        {name:"population"},
        {name:"independence"}
    ],
canSelectCells: true,
    autoFetchData: true,
    canEdit: true,
    editEvent: "click"
})

isc.IButton.create({
    title: "Hello",
    icon: "icons/16/world.png",
    iconOrientation: "right",
    click: "countryList.focusInCell(1,1)"
})


Viewing all articles
Browse latest Browse all 4756

Trending Articles