3.0 beta 2

Edit Table Error When use XML Model

When edit the first Column and modify ,The error occur.
The source as:
<title>ActiveWidgets Grid :: Examples</title>
<style> body, html {margin:0px; padding: 0px; overflow: hidden;} </style>

<!-- ActiveWidgets stylesheet and scripts -->
<link href="../runtime/styles/classic/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="../runtime/lib/grid.js"></script>

<!-- grid format -->
.active-controls-grid {height: 100%; font: menu;}

.active-column-0 {width: 80px;}
.active-column-1 {width: 200px; background-color: threedlightshadow;}
.active-column-2 {text-align: right;}
.active-column-3 {text-align: right;}
.active-column-4 {text-align: right;}

.active-grid-column {border-right: 1px solid threedshadow;}
.active-grid-row {border-bottom: 1px solid threedlightshadow;}
<link href="../mytemplate/mytemplate.css" rel="stylesheet" type="text/css" ></link>
<script src="../mytemplate/mytemplate.js"></script>

// create ActiveWidgets data model - XML-based table
var table = new Active.XML.Table;

// provide data URL

// start asyncronous data retrieval

// define column labels
var columns = ["Ticker", "Company Name", "Market Cap.", "$ Sales", "Employees"];

// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;

// provide column labels
obj.setColumnProperty("texts", columns);

var textTemplate = new My.Templates.Input;

// provide external model as a grid data source

// write grid html to the page
February 25,
I hava found the related topic,thanks
February 25,
you should implement table.setText method
Alex (ActiveWidgets)
February 25,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.