Click here to Skip to main content
15,662,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
var selectIds =;

//var alarmButton = registry.byId('Button');
if(selectIds.length > 0)
    registry.byId("Button").set('disabled', false);

I have the above piece of code.
I need to disable the button on load of the page and when none of the rows are checked.
And i need to enable when any one/all of the rows are checked.
The above code doesnt seem to work fine.
Not sure where I am going wrong.
Updated 24-Jan-15 4:46am
Leo Chapiro 24-Jan-15 10:48am    
What exactly is the problem with your code, what doesn't work as expected?
jessie02 24-Jan-15 10:52am    
I have a grid and a button. The button needs to be enabled only when the rows of the grid are checked, and button should be disabled when the rows are unchecked. So i Had added the above code in my program. But for the above code, the buttons are not getting enabled when i check the rows.
jessie02 25-Jan-15 1:10am    
Any solution for my question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900