|
Rank: Advanced Member Groups: Member
Joined: 8/25/2007 Posts: 34
|
Hi,
I'm wondering what values are passed through ClientSideOnItemClicked... I've set it to a javascript function and I want the java function to open a dialog with the details of the item in an editable format, but don't know how to get to the key/cell/row clicked? I looked through the documentation but did not see it.
Thanks,
Versile
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, There isn't a ClientSideOnItemClicked. I assume you meant ClientSideOnItemSelected. The reference for this property should answer your question: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.ClientSideOnItemSelected.htmlThanks
|
|
Rank: Advanced Member Groups: Member
Joined: 8/25/2007 Posts: 34
|
Hi, I'm glad you can read between the lines!!! Thanks for the help, to help others with a quick usage I've pasted the code below. I do have another question though - everytime I try to use a checkbox I get javascript errors, and I'd like to make the checkbox enabled false so it can't be clicked, and have not been successful making this happen.
Code: JavaScript
function GridItemSelected(item_grid)
{
var x = item_grid.getSelectedItem();
alert('Item ' + x.getKey());
}
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I am not sure why everything when you try to use a checkbox you get an error. Try to update to the latest version first, if it still happens try post a sample page and we will take a look.
I do not believe you can disable the checkbox in a CheckBoxColumn. You will need to use a CustomColumn to do all the magics with JavaScript.
Thanks
|
|