This is a migrated thread and some comments may be shown as answers.

id variable on columns

0 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 15 May 2012, 07:36 PM
hello
may declare when columns of this type
columns: [
                          { field: "FirstName", title: "productos", format: "{0:c}", type:"String",editable: false, width: "150px" },
                           { field: "City", title: "cantidad", editable:true, type:"Number", validation: { min: 1, required: true },width: "150px" },
                           {field: "BirthDate", title: "fecha de Entrega",type:"String",editable:true,width:"150px"},
                           { field: "favoritos", title: "favoritos", editable:true, type:"String",width: "150px" },
                           {field: "boton", template: "#=  '<form id=\"form3\" method=\"post\" action=\"prueba9.asp\"><input type=\"text\" name=\"nombre\"id=\"<-------------------here\"><input type=\"text\" name=\"apellido\" id=\"<------------------here\"><input type=\"button\" id=\"boton3\"class=\"boton3\"value=\"Enviar\" onclick=\"document.form3.nomb.value=documen t.form3.nomb.value;document.form3.favo.value=document.form3.favo.value;submit();\"></form>' #", title: "favorito", width: "100px",type:"String", editable:false },                        
                           { field: "añadir", template: "#= '<input type=IMAGE SRC=\"add.gif\"\id=\"añadir\" value=\"CODE\" />' #", title: "añadir", width: "210px",type:"String", editable:false }],


can add a variable to increase and give me id different <input>?
and if so how to do?

regards!!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Ricardo
Top achievements
Rank 1
Share this question
or