I have the grid set to selectrow on cell click. So the whole row backcolor turns blue. But now I want the actual cell you clicked on to be selected as well. This cell should have a white border around it. I'm not sure if the grid supports this or if I have to catch some click side events and manually change the styles.
Thanks,
Eric
Hi Eric,
The CellClick event can be handled on the Client Side for UltraWebGrid to achieve this functionality. Following is a code snippet.
{
cell.Element.style.backgroundColor = "Red";
}
You can include the ClientSide Event Handler for UltraWebGrid in design view by following the steps:
1) Browse through the properties and find DisplayLayout and Expand it
2) Locate the ClientSideEvents and expand it
3) Find the CellClickHandler and click on the drop down and add a new handler
This creates the method signature in the HTML mark up.
I hope this helps.
Thanks. The only thing that I needed to add was a way to turn the boder back off. I used the following code in the beforecellchange to do that.
var grid = igtbl_getGridById(gn);
var activecell = grid.getActiveCell();