J'utilise dhtmlxgrid mais ma première ligne n'est pas sélectionnée lors de l'utilisation onRowSelect
mais fonctionne très bien en utilisant l'événement onRowDblClicked
ou j'utilise la navigation au clavier. Mais en utilisant la navigation clavier et en naviguant vers la première rangée, la navigation est bloquée et je ne peux pas naviguer à partir de la première rangée en utilisant le clavier, mais en cliquant sur une ligne différente fonctionne très bien. Voici mon code:erreurs dans dhtmlxgrid java
function onGraphPropGridRowSelect(id)
{
// push the previously selected graph's data to the JSON array object
if(lastSelectedGraphIndex != -1)
{
if(validateGraphProperties())
{
// Note: GraphType is uneditable, so just copy existing value
pushGraphPropertiesToJSONArr(lastSelectedGraphIndex,
graphPropertiesJson[lastSelectedGraphIndex].GraphType);
}else
{
definedGraphGrid.selectRow(definedGraphGrid.getRowIndex(lastSelectedGraphIndex));
return false;
}
}
// now populate the newly selected graph data to the UI elements
populateUIElementsForSelectedGraph(id);
// update the lastSelectedGraphIndex to the newly selected graph index
lastSelectedGraphIndex = id;
if (id==0){
definedGraphGrid.enableKeyboardSupport(true);
alert("first row selected");
}
}