There is no answer for me?!

I found a solution, But its not perfect.
My Solution:
var properties = $("#tt").datagrid('getRows');
$.each(properties, function( index, value ) {
if(value['idname'] == "width")
value['value'] = $($this).css("width").replace(/[^-\d\.]/g, '');
else if(value['idname'] == "height")
value['value'] = $($this).css("height").replace(/[^-\d\.]/g, '');
});
$("#tt").datagrid('loadData', properties);
Please give me a better solution, Thanks.