Combo box template always visible in grid, ignores mouseover css
I have the following code on my page to put a combo box in the 1st column of the grid (in AW 2.5.5).
myGrid.setCellTemplate(new AW.Templates.Combo,1);
var dl = ['Default Writer','Default Writer 2'];
var dlist = new AW.UI.List;
dlist.setItemText(dl);
dlist.setItemCount(dl.length);
myGrid.setPopupTemplate(dlist,1);
myGrid.setCellEditable(true);
My problem is that the combo box is visible on the grid always, and also does not get highlighted as per the css: .aw-mouseover-row {background-color:#ddf4ff;}
.aw-mouseover-cell {background-color:#b7e7ff;}
You can select items and the popup list shows and disappears normally (i've seen lots of posts about that issue, just clarifying that this is not the same issue), but you always see the combo box, even when not editting the cell in question, rather than simply displaying the value that is currently chosen.
Mousing over the cells (or row) also do not change the color of the combo boxes, so I'm left with a column that looks distinctly different from all the rest of the grid (which uses the default cell templates).
John
Wednesday, December 23, 2009
What I'm looking for is a way to make it only display the combo box when you click the cell to edit it, rather than have it always displayed - I think that would take care of the highlighting problem as well - but I don't know quite how to make it do that.
Any help is appreciated, and if there is a better way to do combo boxes in a grid than the AW.Templates.Combo + AW.UI.List, please point it out to me. I've gone over the examples and the forum and I haven't found anything with concrete working examples of the combo-in-cell, but it seems to be a basic enough request that I might have just missed it.
John
Wednesday, December 23, 2009
Now that the holidays are over and maybe more people are looking at this these days... Any suggestions out there? This is still an issue, I've been avoiding it for the past month because I'm not sure how to do it.
Surely there is a way to make this happen? It seems too common of a request/problem for there not to be a solution.