Hi All,
I am using the event ClickCellButton to handle a cell button click event.I need the value from a different column in the row of the button clicked cell.
Please let me know how to do this.
Regards,
Abhi
Yes, it can - and the code looks similar. Again, writing off-the-cuff, this time in C#:using Infragistics.WebUI.UltraWebGrid;...protected void UltraWebGrid1_ClickCellButton(object sender, CellEventArgs e){ // e.Cell represents the cell containing the button that was just clicked UltraGridCell otherCellInSameRow = e.Cell.Row.FromKey("MyOtherColumn"); // You'll typically cast this to a data type as appropriate for your logic, rather than using "object" object valueInOtherCell = otherCellInSameRow.Value;}
Hi,
Can the same be done from Server side (C#).
Writing some "off-the-cuff" JavaScript...function UltraWebGrid1_ClickCellButton(gridName, cellId){ var cellClicked = igtbl_getCellById(cellId); var otherCellInSameRow = cellClicked.Row.getCellFromKey("MyOtherColumn"); var valueInOtherCell = otherCellInSameRow.getValue();}