[CLOSED] Enabling the text field inside the gridpanel on check box selection

Page 2 of 2 FirstFirst 12
  1. #11
    It is throwing error saying componentColumn is undefined.
    You should use a real reference to a ComponentColumn instead of "componentColumn" pseudocode.

    You can refer by an id - App.ComponentColumn2.
  2. #12
    Hi Daniil,
    I tried like the below code:

     function disableDisAssociatedEmployee3(){//columnValue, columnValueCSS, record, rowIndex, columnNumber, RowNumber) {  
                debugger;
                
                var check = App.mainContentPlaceholder_ComponentColumn2.isDisabled();
                if(check == false)
                {
    //logic further..
    }
            }
    When i check for Is disbled, it is always returning false. Even if the row is disabled it is returning false.
  3. #13
    As far as I can understand you don't disable an entire ComponentColumn ever. You disable only pieces of ComponentColumn, i.e. components in specific rows. So, a ComponentColumn's .isDisabled() call is not that you need. You should call .isDisabled() on a component of the row that you need to check on disabled.
  4. #14
    Can you please use the runnable text case I have provided in the previous posts and suggest me the implementation. Or any link which implements such logic. The final thing i need to achieve is :
    1) To disable the text field when the checkbox is unchecked and
    2) To enable the text field when the check box is checked in the grid.
  5. #15
    Sorry, we don't have such an example.

    You should call .isDisabled() on a component of the row that you need to check on disabled.
    Please clarify did you try that?
  6. #16
    Daniil,
    ComponentColumn's component doesnt have the property isDisabled().
    Please have a look at the image below.

    Click image for larger version. 

Name:	cmp.PNG 
Views:	101 
Size:	36.8 KB 
ID:	23940

    Click image for larger version. 

Name:	cmp2.PNG 
Views:	137 
Size:	23.4 KB 
ID:	23941Click image for larger version. 

Name:	cmp2.PNG 
Views:	137 
Size:	23.4 KB 
ID:	23941
  7. #17
    Please use a ComponentColumn's .getComponent(record).
  8. #18
    Thansk Daniil, that fixed my problem. But I am able to achieve disabling the text field when the check box is uncheked. But I want the text field to be enabled back when i check the checkbox. For that I have written the code under Select handler. But it is being called during the page load also where it is failing. How do I have the select handler fired only when the check box is selected.
  9. #19
    Please provide a test case. I will investigate.
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [CLOSED] Enabling button on item selection - combobox
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 26, 2012, 1:23 PM
  2. Replies: 0
    Last Post: Dec 28, 2011, 9:30 AM
  3. Replies: 2
    Last Post: Mar 21, 2010, 1:18 PM
  4. [CLOSED] GridPanel Cell click and check box selection
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jul 24, 2009, 7:55 AM
  5. Check box selection in Gridpanel using version 0.8
    By speedstepmem3 in forum 1.x Help
    Replies: 0
    Last Post: Jun 04, 2009, 1:02 AM

Tags for this Thread

Posting Permissions