خرید بک لینک

Vote count: 0

I am working with IBM Content Navigator 2.0.3, that uses DOJO 1.8 for the GUI development. I am new in gojo, and I have to enhance one of the forms: add an event handler to the dataGrid so when the row of the grid is selected one of the buttons become enabled. dataGrid described in html as following:

and the js file that controls the form behavior mentioned this _selectedDataGrid only once, in the postCreate function: postCreate: function() { this.inherited(arguments); this.textDir = has("text-direction");

        this.hoverHelpList = [];

        domClass.add(this._selectedDataGridContainer, "hasSorting");
        this._renderSelectedGrid();

_renderSelectedGrid() is being executed, which contains the only mention: _renderSelectedGrid: function() { ....... this._selectedDataGrid.appendChild(this._selectedGrid.domNode);

I've tried to add an data-dojo-attach-event "onRowClick: enableRemoveUsersButton" in the html and a
enableRemoveUsersButton: function(evt){ this.removeUsersButton.set('disabled', true); }, in js file. Didn't help. Then I tried dojo.coect(myGrid, "onRowclick", function update() { this.removeUsersButton.set('disabled', true); }); but I couldn't acquire myGrid object using var myGrid = dojo.byId("_selectedDataGrid");

Can anyone tell me how to acquire the grid object and/or add an event handler to this grid, that fires when the row of the grid is selected? Thank you!

asked 58 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 23 ارديبهشت 1395 ساعت: 16:09

صفحه بندی