How to disble a command button in Grid PAnel

  1. #1

    How to disble a command button in Grid PAnel

    Hi,
    I have a grid panel in which i have to disable command buttons only for selected rows i.e, the entire row should get disabled when user click the command button present in that particular row of grid panel.Please help me out its urgent
  2. #2

    RE: How to disble a command button in Grid PAnel

    I do not understand what you mean by disabling a row.

    You can disable a command button in a command column with the following code:

    grd.colModel.columns[1].commands[0].disabled=true;

    This would disable the the command for all rows. If you are trying to do this for a particular row, then you would need to manually find that particular command button from rows markup (it should be an inatance of tbbutton), and then disable it.

  3. #3

    RE: How to disble a command button in Grid PAnel

Similar Threads

  1. Replies: 0
    Last Post: May 12, 2012, 11:24 AM
  2. Row Command event in grid panel
    By Dorababu in forum 1.x Help
    Replies: 0
    Last Post: Mar 08, 2012, 10:41 AM
  3. Replies: 3
    Last Post: Dec 09, 2010, 5:40 AM
  4. Replies: 0
    Last Post: Apr 06, 2010, 10:01 AM
  5. Problem with Delete Command and Grid Panel
    By jpmcm88 in forum 1.x Help
    Replies: 2
    Last Post: Jul 20, 2009, 1:02 PM

Posting Permissions