Hi,
I have this form:

I want when I select multiple rows the buttons disabled.
1.I modify property multiselection to No => the buttons always enabled.
2. I add this code in the selectionChanged method of securityRole datasource => the buttons always enabled.
3.Also I try to added it in the active method of securityRole datasource => the buttons always enabled.
public void selectionChanged()
{
int recordsCount;
recordsCount =securityRole_ds.recordsMarked().lastIndex();
info(strfmt("selection %1",recordsCount));
if(recordsCount>1)
{
BtnNextUserRole.enabled(false);
}
}
*This post is locked for comments
I have the same question (0)