Click here to Skip to main content
15,888,984 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: How to hide the URL textbox using javascript Pin
ZurdoDev29-Mar-16 2:41
professionalZurdoDev29-Mar-16 2:41 
AnswerRe: How to hide the URL textbox using javascript Pin
F-ES Sitecore30-Mar-16 0:03
professionalF-ES Sitecore30-Mar-16 0:03 
AnswerRe: How to hide the URL textbox using javascript Pin
John C Rayan5-Apr-16 0:26
professionalJohn C Rayan5-Apr-16 0:26 
Questionjquery confirm dialogue box Pin
Member 1231770923-Mar-16 20:15
Member 1231770923-Mar-16 20:15 
AnswerRe: jquery confirm dialogue box Pin
Nathan Minier24-Mar-16 1:50
professionalNathan Minier24-Mar-16 1:50 
QuestionGroup by - Custom function Pin
NJdotnetdev22-Mar-16 3:19
NJdotnetdev22-Mar-16 3:19 
AnswerRe: Group by - Custom function Pin
Nathan Minier23-Mar-16 1:56
professionalNathan Minier23-Mar-16 1:56 
QuestionAngularJS view ng-grid not refreshing after ngDialog close. Pin
Stephen Holdorf14-Mar-16 5:44
Stephen Holdorf14-Mar-16 5:44 
I have an AngularJS view that contains a ng-grid row cellTemplate icon button. The problem only happens in IE and not in Google Chrome. When the user selects the icon button a ngDialog is opened and on the dialog close event the dialog closes then the selected icon button increases in size in the cell and all of the text in that row shifts up and to the left. I have tested this in Google Chrome and the problem does not occur. What I am seeing is that the entire browser seems to do a shift to the right then back when I do close the dialog. It was recommended to me that on dialog close I close the dialog then redirect to a dummy view which redirects back to reload the view with ng-grid. I tried that but am unable to get working.

The dialog definition, and the cellTemplate markup the contains the icon button that calls the open dialog event is shown below along with the dialog open and close event

HTML
<script type="text/ng-template" id="ApproverCommentsDialog">
<div class="ngdialog-message">
<h3>Approver Comments</h3>
<p>
({ApproverComment}}
</p>
</div>
<div id="gridDiv" class="ngdialog-buttons">
<button type="button" ng-click="OKClicked()" class="ngdialog-button ngdialog-button-primary">OK</button>
</div>
</script>


var = cellTemplateIconWithTooltip = '<div class="ngCellText" ng-class="col.colIndex() - 1"><a title="Show" ng-click="displayComments(row.entity)"><img src="../../../../Content/images/managerequests.png" style="float: right; padding:5px; border:3px" height="20px" width="20px" /></a></div>';

        $scope.displayComments = function (row) {
            $scope.ApproverComment = row.ApproverComments;
            ngDialog.open({
                template: 'ApproverCommentsDialog',
                className: 'ngdialog-theme-default',
                data: row.ApproverComments,
                scope: $scope
            });
        };

        $scope.OKClicked = function () {
            ngDialog.close();
        }; 

Any help would be great.


modified 14-Mar-16 12:12pm.

AnswerRe: AngularJS view ng-grid not refreshing after ngDialog close. Pin
Nathan Minier16-Mar-16 1:54
professionalNathan Minier16-Mar-16 1:54 
QuestionAngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee8-Mar-16 1:37
professionalTridip Bhattacharjee8-Mar-16 1:37 
AnswerRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier16-Mar-16 2:15
professionalNathan Minier16-Mar-16 2:15 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee16-Mar-16 21:32
professionalTridip Bhattacharjee16-Mar-16 21:32 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier17-Mar-16 1:55
professionalNathan Minier17-Mar-16 1:55 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee17-Mar-16 3:37
professionalTridip Bhattacharjee17-Mar-16 3:37 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier17-Mar-16 3:56
professionalNathan Minier17-Mar-16 3:56 
QuestionHow do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich7-Mar-16 20:07
tienich7-Mar-16 20:07 
AnswerRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
Richard MacCutchan7-Mar-16 22:02
mveRichard MacCutchan7-Mar-16 22:02 
GeneralRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich17-Mar-16 6:46
tienich17-Mar-16 6:46 
AnswerRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
Nathan Minier11-Mar-16 1:30
professionalNathan Minier11-Mar-16 1:30 
GeneralRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich17-Mar-16 6:46
tienich17-Mar-16 6:46 
QuestionPhoneGap Pin
vivek rajavel2-Mar-16 23:23
vivek rajavel2-Mar-16 23:23 
SuggestionRe: PhoneGap Pin
Richard Deeming2-Mar-16 23:43
mveRichard Deeming2-Mar-16 23:43 
GeneralRe: PhoneGap Pin
vivek rajavel3-Mar-16 0:11
vivek rajavel3-Mar-16 0:11 
Questionng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf1-Mar-16 14:35
Stephen Holdorf1-Mar-16 14:35 
AnswerRe: ng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf2-Mar-16 13:48
Stephen Holdorf2-Mar-16 13:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.