Dear Daramvir:
This code is too complicate, it will be better if pqgrid can add default value property in colModel.
var colModel= [
{title: "ID", dataIndx: "id", width: 200,dataType: "string", editable: false },
{title: "Country", dataIndx: "Country",width: 260, dataType: "string",defaultValue:"USA"},
{title: "City", dataIndx: "City",width: 260, dataType: "string",defaultValue:"New York"}
]
Long and complicate java-like code really frustrates me, json-like concise code can really save coding time and reduce debug time.