I'm trying to catch an event when my datastore finishes loading the data originally, but I can't seem to get it.
I need to modify some data (client side) before a grid uses the data.
I've tried connecting to the onLoad, onNew and constructor events with no success.
Here's my last attempt:
<div pdojoType="protecht.ProtechtLazyLoadStore" jsId="questionStore" additionalProperties="controls" url="data.txt"></div>
<script type="text/javascript">
pdojo.addOnLoad(function(){
pdojo.connect( questionStore, "onNew", "test123");
});
function test123( )
{
console.log( questionStore._getNewFileContentString() );
}
</script>
<script type="text/javascript">
pdojo.addOnLoad(function(){
pdojo.connect( questionStore, "onNew", "test123");
});
function test123( )
{
console.log( questionStore._getNewFileContentString() );
}
</script>
I'm pretty sure I'm missing something simple here, any help would be gratefully recieved.
