Replies: 2 comments 4 replies
-
protected getColumns() {
var columns = super.getColumns();
Q.first(columns, x => x.field == 'GroupName').format = ctx => {
let item: GroupRow = ctx.item;
return `<a href="#" class="view-edit-group">${item.GroupName}</a>`;
}
return columns;
}
protected onClick(e: JQueryEventObject, row: number, cell: number) {
super.onClick(e, row, cell);
if (e.isDefaultPrevented())
return;
var item = this.itemAt(row);
var target = $(e.target);
if (target.hasClass('view-edit-group')) {
let dlg = new GroupDialog();
this.initDialog(dlg);
dlg.loadByIdAndOpenDialog(item.GroupId);
}
} hope help you |
Beta Was this translation helpful? Give feedback.
4 replies
-
this is a figure to describe what i need to do |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi everyone how are you?
i have 2 row each one of them have a link in side menu as you see
i want to remove voting link from menu and when i open group link and press on new group or edit existing records open form contain (form of group data and an icon when i press on it show the voting data that related to that group)
in another word i want both these forms show in one form (group form )
does anyone have an idea about how to do that?
Beta Was this translation helpful? Give feedback.
All reactions