Trouble loading template html

I have the following (I want each dataview cell to have a set of radio buttons in them):

The dick4template.html looks like this

kpi : #kpi#
Red

Green

Blue

How should I make this work?

Hello,

There is a bug in the dataview templates. We will fix it in the next version.

As the workaround please try to use single quotes instead of double:

kpi : #kpi#
Red

Green

Blue

I am also having an issue loading template html…

Taking code directly from the documentation.

var view = new dhtmlXDataView({
	container:"data_container",
	type:{
            template:"#Package# : #Version#<br/>#Maintainer#"
        }
});
	view.load("data.json","json");

And in my html

And I keep getting “Incorrect html container” errors. What am I doing wrong?

Ok so I figured it out… The code must go BELOW the data_container

Hi,

I made a template for my dataview. It runs but when I click on the input text in the template, focus don’t stay on this input text. I must click a second time in the input text to keep the focus ans enter my text.

Is there one solution ? Thanks for your answers

[code]

var data = new dhtmlXDataView( { container:"dataview", select:"true", height: "auto", type:{ template:"
", css:"some", width:194, height:170, margin:5, padding:0 }, tooltip: { template: "

#LIBELLE_PRODUIT#

Prix : #PRIX#€/#LIBELLE_TYPE_TARIF#

Descriptif : Tra la la la

" } }); data.load("../datas/data.php");[/code]

I found a solution with attachEvent

[code]
data.attachEvent(“onItemClick”, function (id, ev, html) {
for (i=0;i<html.childNodes.length;i++){
var elem = html.childNodes[i].innerHTML;
var obj = html.childNodes[i];
if(elem.indexOf(“qte”) != -1) {
for(j=0;j<obj.childNodes.length;j++){
var myInput = obj.childNodes[j];
var myInputId = obj.childNodes[j].id;
if(myInputId.indexOf(“qte”) != -1){
myInput.focus();
}
}
}
}

return true;

});[/code]