setFieldsName don't work...

Hi,

I am trying to catch values from a dhtmlxGrid using field names mask but i dont recive any data when i use this function. This is my code:

Untitled
Agregar
	 </div>
	 <script type="text/javascript">
		<!--//--><![CDATA[//><!--
		
			//window.onload = doInitGrid;
			var grid;
			
			function doInitGrid() {
				grid = new dhtmlXGridObject('ContactGrid');
				grid.setHeader("Contacto,Email,Teléfono,");

				grid.setColSorting("str,str,str");
				grid.setColTypes("ed,ed,ed,img");
				grid.setImagePath("gfx/js/dhtmlGrid/imgs/");
				grid.setInitWidths("270,270,170,30");
				grid.setColAlign("left,left,left,center");
				grid.enableAutoHeight(true);
				

				grid.submitOnlyChanged(false);
				grid.setSkin("xp");
				
				grid.setFieldName("{GRID_ID}_{ROW_INDEX}_{COLUMN_INDEX}");

				grid.init();
				
			}

			function addRow(){
		        var newId = (new Date()).valueOf()
		        grid.addRow(newId,",,,gfx/basura.png^aaa^javascript:RemRow(" + newId  + ")^_self",grid.getRowsNum())
		        grid.selectRow(grid.getRowIndex(newId),false,false,true);
				
		    }

			function RemRow(RowId) {
				 grid.deleteRow(RowId);
			}


		//--><!]]>
	</script>

If i comment the line “grid.setFieldName(”{GRID_ID}{ROW_INDEX}{COLUMN_INDEX}");" it works but i recive {GRID_ID}{ROW_ID}{COLUMN_INDEX}.

Is there any issue with the script? I am using dhtmlxGrid v.2.6 Professional edition build 100722

Thanks

Enrique

I have found that setFieldsName dont’t work only if i add rows using addRow()… if i populate data works fine.

Welch

Can you please open ticket at support.dhtmlx.com and provide us complete demo where we can reproduce this issue?