Welcome Guest Search | Active Topics | Sign In | Register

Grid after edit question Options
Michael
Posted: Wednesday, January 6, 2010 12:34:43 PM
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
eo_support
Posted: Wednesday, January 6, 2010 2:04:25 PM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.