Hi,
Not able to find and position the cursor in a Tree using findItem if the search text contains a currency symbol ‘$’. Viz
<item text="Analysis [$2,000]" id="Backlog-3263"/>
tree.findItem(searchStr, direction, top);
If searchStr = Analysis [$2,000] then not found
If searchStr = $2,000 then not found
If searchStr = Analysis [ 2,000] then found
This was discovered when trying to find and position the cursor by convolution due to absence (or not knowing) of a findItemById method when entering number 3263
function treeFindItem(a, b){
var strsearch = document.getElementById('stext').value;
if ($.isNumeric(strsearch)){
// convert number to tree node
strsearch = mnutree.getItemText('Backlog-'+strsearch);
}
mnutree.findItem(strsearch,a,b);
}
Raymond