Below is my javascript I'm using to bring up the context menu when right clicking on a radgrid row.
the Menu.Show(Evt); line causes my whole page to shift down. Keep in mind my ASP page is using a master page, where if I do not use a master page this does not happen. Any Ideas?
function AssignedContextMenu(sender, eventArgs) { alert('a'); var menu = $find(""); alert('b'); var evt = eventArgs.get_domEvent(); alert('c'); var index = eventArgs.get_itemIndexHierarchical(); alert('d'); var vRow = sender.get_masterTableView().get_dataItems()[index]; alert('e'); var vQueueID = sender.get_masterTableView().getCellByColumnUniqueName(sender.get_masterTableView().get_dataItems()[index], "QueueId").innerHTML; alert('f'); if (vQueueID != ' ') { alert('g'); sender.get_masterTableView().selectItem(vRow.get_element(), true); alert('h'); document.getElementById("hidAssignedRowIndex").value = index; alert('i'); menu.show(evt); alert('j'); evt.cancelBubble = true; alert('k'); evt.returnValue = false; alert('l'); if (evt.stopPropagation) { alert('m'); evt.stopPropagation(); alert('n'); evt.preventDefault(); alert('o'); } alert('p'); } alert('q'); }
the Menu.Show(Evt); line causes my whole page to shift down. Keep in mind my ASP page is using a master page, where if I do not use a master page this does not happen. Any Ideas?
function AssignedContextMenu(sender, eventArgs) { alert('a'); var menu = $find(""); alert('b'); var evt = eventArgs.get_domEvent(); alert('c'); var index = eventArgs.get_itemIndexHierarchical(); alert('d'); var vRow = sender.get_masterTableView().get_dataItems()[index]; alert('e'); var vQueueID = sender.get_masterTableView().getCellByColumnUniqueName(sender.get_masterTableView().get_dataItems()[index], "QueueId").innerHTML; alert('f'); if (vQueueID != ' ') { alert('g'); sender.get_masterTableView().selectItem(vRow.get_element(), true); alert('h'); document.getElementById("hidAssignedRowIndex").value = index; alert('i'); menu.show(evt); alert('j'); evt.cancelBubble = true; alert('k'); evt.returnValue = false; alert('l'); if (evt.stopPropagation) { alert('m'); evt.stopPropagation(); alert('n'); evt.preventDefault(); alert('o'); } alert('p'); } alert('q'); }