Using Dojo 1.9.3 and Gridx version 1.0. (Declarative&Programmatic)
I'm stuck trying to add a tooltip over each username cell in my UName Column that will show values for Last and First name in that row. PURPOSE: I'd like to hide the First & Last Name column to create space. Smart right? Well, if I only knew how.
I am learning JS and dojo as I move along. So far Grid is populating and Buttons are working fine. Quick fiddle: http://jsfiddle.net/ysabz/17v7po76/
userColumns = [
{id:'uuid', field: 'uuid', name: 'User UUID', width: 'auto'},
{id:'user_name', field: 'user_name', name: 'UName', width: '7%',
**// I think I need to add a function call that will get the row Index with mouseOver
etc..Just not sure how to go about dong this.**
},
{id:'first_name', field: 'first_name', name: 'FName', width: '0px'},
{id:'last_name', field: 'last_name', name: 'LName', width: '0px'},
{id:'start_date', field: 'start_date', name: 'Start', width: '0px'},
{id:'end_date', field: 'end_date', name: 'End', width: '10%'},
{id:'subj_info', field: 'subj_info', name: 'Subject Info', width: 'auto'},
{id:'issuer_info', field: 'issuer_info', name: 'Issuer Info',width: 'auto'},
{id:'UpdateBtn', field: 'action', name: '', width: '6%', widgetsInCell: true,
decorator: function(){
return "<button data-dojo-type='dijit/form/Button' data-dojo-props=
iconClass:'dijitIconEdit' " + "data-dojo-attach-point='btn'>Update</button>";
},
// setCellValue call etc....
);}}],
userGrid = new Grid({
id: 'userGrid',
cacheClass: Cache,
store: userStore,
structure: userColumns,
modules: [Resizer, Sort, Pagination, Filter, Bar,
"gridx/modules/CellWidget",
"gridx/modules/Edit", "gridx/modules/select/Row", "gridx/modules/select/Cell",
]}, 'usersNode'),