전체 글
-
ui-grid rowSelectAngular JS 2017. 4. 25. 13:00
$scope.studentgrid = { data: 'students', enableFiltering: false, onRegisterApi: function(gridApi){ $scope.gridApi = gridApi; $scope.gridApi.grid.registerRowsProcessor( $scope.singleFilter, 200 ); }, enableRowSelection: true, multiSelect: false, enableColumnResizing: true, enableSelectAll:true, enableCellEdit: false, enableFullRowSelection: true, enableCellEditOnFocus: false, columnDefs: [ { fiel..
-
ui-grid 컬럼정의Angular JS 2017. 4. 23. 20:11
-name: "Pretty Foo" (mandatory) each column should have a name, although for backward compatibility with 2.x name can be omitted if field is present -width: 60-minWidth: 50-maxWidth: 9000-visible: true -field: "foo" Can also be a property path on your data model. "foo.bar.myField", "Name.First", etc. (Note: If your entity has a field named "2016.01 Score" then this will be interpreted as a path ..
-
ui-grid option항목Angular JS 2017. 4. 23. 20:02
//Define an aggregate template to customize the rows when grouped. See github wiki for more details. aggregateTemplate: undefined, // no more in v3.0.+ //Callback for when you want to validate something after selection. afterSelectionChange: function() { // no more in v3.0.+ }, /* Callback if you want to inspect something before selection, return false if you want to cancel the selection. return..
-
ui-grid 팁Angular JS 2017. 4. 23. 19:48
1.rownumber $scope.gridOptions = { data: 'myData', columnDefs: [ {field: '', displayName: 'Row Number', cellTemplate: '{{row.rowIndex + 1}}'}, {field: 'name', displayName: 'Name'}, {field:'age', displayName:'Age'}] };2.celltemplat function angular.module('myApp', ['ui.grid']) .controller('myCtrl', ['$scope', function ($scope) { $scope.parseDate = function (p) { // Just return the value you want ..
-
File ReadAllLinesc# 2017. 4. 15. 08:12
using System; using System.IO; class Test { public static void Main() { string path = @"c:\temp\MyTest.txt"; // This text is added only once to the file. if (!File.Exists(path)) { // Create a file to write to. string[] createText = { "Hello", "And", "Welcome" }; File.WriteAllLines(path, createText); } // This text is always added, making the file longer over time // if it is not deleted. string ..
-
string에 헥사값 더하기c# 2017. 4. 15. 08:04
string lineOne = "One"; string lineTwo = "Two"; char CarriageReturn = (char)0x0D; string final = lineOne + CarriageReturn.ToString() + lineTwo + CarriageReturn.ToString(); or the easier to read method: string lineOne = "One"; string lineTwo = "Two"; string final = string.Format("{0}\r{1}\r", lineOne, lineTwo); // or lineOne + "\r" + lineTwo + "\r";