Storing a row's key value
Hi,
I'm new to the grid control. I need to save a unique key per row rather than just an index. I've tried to set up an array of key values and then call:
obj.setDataProperty("value", function(i){return js_gridDataKeys[i]});
Then to retrieve the value, I've tried this call in my handler:
var idx = this.getSelectionProperty("index");
var value = this.getSelectionProperty("value", idx);
This does not work. Am I missing how I should be doing this? I've scoured the documentation and just can't find a way to do this.
Thank you in advance.
I'm new to the grid control. I need to save a unique key per row rather than just an index. I've tried to set up an array of key values and then call:
obj.setDataProperty("value", function(i){return js_gridDataKeys[i]});
Then to retrieve the value, I've tried this call in my handler:
var idx = this.getSelectionProperty("index");
var value = this.getSelectionProperty("value", idx);
This does not work. Am I missing how I should be doing this? I've scoured the documentation and just can't find a way to do this.
Thank you in advance.
Arthur
March 7,