I a trying to determine the band a row belongs to when clicking a rows RecordSelector.
I have a RowSelectors behavior at Band level that calls HandleSelectedRowChange when RowSelectorClientEvents-RowSelectorClicked like this :
function HandleSelectedRowChange (sender, e) { // here I would like to know what band the row is in ... either from the row or the cell or the column ???? var aRow = e.get_row(); var aCell = aRow.get_cell(0); var aColumn = aCell.get_column(); return; }
What would be the easiest way to get its key returned as a string for instance ?
Kind regards,
Garry
Hello Garry,
In this scenario, the specific row island will be passed to the event handler as thesenderargument. Identifying which band a row belongs to may be done using the band key:
sender.get_band().get_key()
If needed, the parent row of the selected row may be accessed using something similar to:
rowObj.get_grid().get_parentRow()
Please do not hesitate to contact me if you have any further questions regarding this matter.
That works fine.
Thanks for resolving !
Hi,
Could you please let me know what is the replacement of Band property present in ultraweb data grid (older version) in web datagrid. I was using
var colText = ultragrid.Band[0].get_cellByCollumnKey("Printed")
colText.setHidden(True)
this was getting call on a checkbox click event. Now while upgrading to webdatagrid I am unable to get the Band property in webdatagrid. Your suggestion will be highly appreciated.