3.0 beta 2

Problem in displaying images


I have load the xml file in the data grid. I want to add 2 more columns for edit & delete.
I have added the code to display the images but somehow it is not displaying.
I have attached the code.
please look at the code and rectify the mistake I have done.

<div id="1" style="width:930px;height:200px;overflow:auto">


    var table = new AW.XML.Table;

    var obj = new AW.Grid.Extended;
    var str = new AW.Formats.String;
    var num = new AW.Formats.Number;


    obj.setCellFormat([str, str, num, num, num]);

    //	provide cells and headers text

    //	set number of rows/columns

    //	enable row selectors
    obj.setSelectorText(function(i){return this.getRowPosition(i)+1});

    //	set headers width/height



    obj.setCellLink(function(i, j){ return "http://www.mysite.com?i="+i+"&j="+j; }, 5);    // set data  
    obj.setCellTemplate(new AW.Templates.Link, 5);    // and template  
    obj.setCellLink(function(i, j){ return "http://www.mysite.com?i="+i+"&j="+j; }, 6);    // set data  
    obj.setCellTemplate(new AW.Templates.Link, 6);    // and template  
    for (var i=0; i<obj.getRowCount(); i++)
        obj.setCellText("<img src='editicon.gif' BORDER='0'>", 5, i);
        obj.setCellText("<img src='delicon.gif' BORDER='0'>", 6, i);  

April 25,
its Urgent!!! Please reply
April 25,
Please look at this page describing how to define image classes in CSS -

Alex (ActiveWidgets)
April 25,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.