You should use a real reference to a ComponentColumn instead of "componentColumn" pseudocode.Quote:
It is throwing error saying componentColumn is undefined.
You can refer by an id -App.ComponentColumn2
.
You should use a real reference to a ComponentColumn instead of "componentColumn" pseudocode.Quote:
It is throwing error saying componentColumn is undefined.
You can refer by an id -App.ComponentColumn2
.
Hi Daniil,
I tried like the below code:
When i check for Is disbled, it is always returning false. Even if the row is disabled it is returning false.Code:function disableDisAssociatedEmployee3(){//columnValue, columnValueCSS, record, rowIndex, columnNumber, RowNumber) {
debugger;
var check = App.mainContentPlaceholder_ComponentColumn2.isDisabled();
if(check == false)
{
//logic further..
}
}
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.
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.
Sorry, we don't have such an example.
Please clarify did you try that?Quote:
You should call.isDisabled()
on a component of the row that you need to check on disabled.
Daniil,
ComponentColumn's component doesnt have the property isDisabled().
Please have a look at the image below.
Attachment 23940
Attachment 23941Attachment 23941
Please use a ComponentColumn's .getComponent(record)
.
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.
Please provide a test case. I will investigate.