View Full Version : Highlight Selection in PropsGrid Example

8 Nov 2006, 6:15 AM

I was reviewing the propsgrid example (layout6) you put together and I was wondering how you where able to highlight the property label cell in blue when the user clicks on the row. I see that your also using an editor style grid in this example.

I have tried using the following code and I dont get the blue highlight to appear.

sm = new YAHOO.ext.grid.EditorSelectionModel();
grid = new YAHOO.ext.grid.EditorGrid('grid', gridDataModel, colModel, sm);

Is there something I need to include in the CSS file to get the highlight to work?

8 Nov 2006, 6:21 AM
Are you using PropsGrid.js? In the latest grid.css file, I included the styles that PropsGrid.js uses. There are a few of them all prefix by yprops-grid.

8 Nov 2006, 11:55 AM
I saw the propsgrid css file. Which css rule is used to highlight the label column?

For my personal understanding, how does the propsgrid or yui-ext javascript code specify which css rule to use?



8 Nov 2006, 5:48 PM
There's only a few rules and only one with a blue background color. :)