3.2.0

sort is not working, when we set the radio button in the column.

/* object creation */
var activewidget = new AW.UI.Grid;

/* creating the objects for applying the sorting to every columns based on the data that contains */
var string_sort = new AW.Formats.String;

var number_sort = new AW.Formats.Number;

var date_sort = new AW.Formats.Date;

date_sort.setTextFormat("dd/mm/yyyy hh:mm:ss");
activewidget.setHeaderText(Header);
if ( typeof ( Footer ) != "undefined" ) { activewidget.setFooterText(Footer);
activewidget.setFooterHeight(20);

activewidget.setFooterVisible(true);

} activewidget.setHeaderHeight(20);

/* Properties of cells in Columns */
activewidget.setCellText(activewidget_data);
activewidget.setCellEditable(false);
activewidget.setRowHeight(20);

/* settings column and row dimensions */
activewidget.setColumnCount(3);
if ( activewidget.getRowCount() == '0' ) {activewidget.setRowCount(15);

}
/* fixed columns (only with AW.Grid.Extended) */
activewidget.setFixedLeft(0);
activewidget.setFixedRight(0);
columnIndexesToShow.push (0);
columnIndexesToShow.push (1);
activewidget.setCellFormat(number_sort,1);
activewidget.setHeaderTooltip('Integer Sort',1 );
columnIndexesToShow.push (2);
activewidget.setCellFormat(number_sort,2);
activewidget.setHeaderTooltip('Integer Sort',2 );
activewidget.setColumnIndices (columnIndexesToShow);
/* to remove virtual mode setting in activewidget, give false as argument */
activewidget.setVirtualMode(true);

activewidget.setSelectionMode("single-row");
/* Writing the Object into the document */
document.write(activewidget);

/* coding to add Radio object with Grid */
var Radio= new AW.Templates.Checkbox
Radio.setClass("toggle", "Radio");
Radio.setClass("templates", "Radio");
activewidget.setCellTemplate(Radio, 0);
activewidget.setColumnWidth (25, 0);
activewidget.setCellTooltip('Single Selection', 0);
activewidget.setFixedLeft(1);

/* coding to implement URL property */
activewidget.refresh();

Sorting is not working, when i have first column as radio button.
can you tell me what is the issue in this?
guest
May 5,

This topic is archived.

See also:


Back to support forum