Hi
let's say I have a combogrid, with id: 'myCombo123'
$('#xx').combogrid( {
...
id: myCombo123,
...
} )
in the combogrid I add a
onClickRow: function (index, _row) {
// do something */
var me = this; // me == 'the data grid owned by the combogrid
},
onShowPanel : function (a) {
bla();
var me = this; // me == 'the textfield owned by the combogrid
},
which is the most simple, secure and correct way to know, when onClickRow is executed, to know 'my name' that is 'myCombo123' ?
I've seen that I can get $(this).data('datagrid').options.id but not sure if it's the best , even because depending to the 'on*' event, I should choose the correct object:
if I'm in onSHowPanel I'd use $(this).data('combogrid').options.id ... it's a mess!!!
Is there something unique and standard??
Thanks,
RIc