I did not use Dojo gridx, but looking at one of its main demos, it displays a <table> inside a <div> for each row. Using the newRow object from your example above, you can do something like the following with jquery
function() { var that = this; var gridIdLocal = dijit.byId('GridId'); that.lastIndex+=1; ( last index count I get externally) var newRow = { Id : '', ClassDES:'', createdDate: that.getTodayDate(), activatedDate:that.getTodayDate(), deactivedDate:'', activeStatus:'Y', id : lastIndex }; gridIdLocal.store.newItem(newRow); gridIdLocal.store.save(); $(newRow).find("td")[1].children("input").focus(); },
If you could publish a working jsfiddle, it would be easier to solve.
Bayak from siwa
source share