Rank: Member Groups: Member
Joined: 10/28/2009 Posts: 15
|
Hi,
I have a toolbar with apply button and a grid with FullRowMode set to false. By default status of apply button is disabled. I’d like make it enable after the first cell of grid has been modified. How can I do it on a client side?
Thanks in advance Michael
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You would need to handle every column's ClientSideEndEdit event and then call the ToolBar's client side interface to enable the button. It will be something like this:
Code: HTML/ASPX
<eo:GridColumn ClientSideEndEdit="enable_button" ..... />
Code: JavaScript
function enable_button()
{
var toolBar = eo_GetObject("ToolBar1");
var button = toolBar.getItem(0);
button.setDisabled(false);
}
Thanks
|