3.2.0

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.
Arthur
March 7,
This demo shows you one way to do this..
Try editing in the second data set vs the first.
http://www.activewidgets.com/javascript.forum.11417.3/basic-knowledge-demo-lastrow-value.html

There might be better/easier ways, if ONLY you could hide a column from display but have it available for reading as a key, say after sorting. For now I use above method.
-g
G. Cayman
March 7,
Great, thank you for pointing me in this direction. I'll check it out.

By the way, that's exactly how I'm accomplishing what I need right now, i.e., using column 0 to store the key and hiding it. For what I need, I don't use the column/row headers either. It's working fine for now, but I'd rather do it the right way. Thanks again.
Arthur
March 7,
Hi,

Please could you tell me how can I do to make ajax dynamic table with paging please!

Thank you!

you can reply at: beloubam@utt.fr
Myra
April 25,

This topic is archived.

See also:


Back to support forum