Click here to Skip to main content
15,902,938 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: How to hide the URL textbox using javascript Pin
Nathan Minier25-Mar-16 1:08
professionalNathan Minier25-Mar-16 1:08 
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 
You can overload the standard Array.sort() in the same manner as a standard comparative operation.

The problem that you have is that your rows are not properly formatted for JSON (it looks like your data value should be an object, not an array) and you're mixing strings and integers. If you ONLY want to group by 1 field that's easy, if you want flexibility then you'll have a more complicated operation on your hands. One sort function will not be suitable for your needs, since string comparisons in Javascript will give you wonky results when used on stringified numbers, and using numerical comparisons on strings will also give bad data.

Array.prototype.sort() - JavaScript | MDN[^] has a bunch of suggestions for how to handle sorting of various data types and uses vanilla Javascript.
QuestionAngularJS view ng-grid not refreshing after ngDialog close. Pin
Stephen Holdorf14-Mar-16 5:44
Stephen Holdorf14-Mar-16 5:44 
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 

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.