This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: "GET", | |
url: "/" + controllerName + "/" + actionName | |
}).then((data) => { | |
console.log(performance.now()); | |
self.configurationObject = JSON.parse(data); | |
self.tileLayoutRootElement = tileLayoutRootEl; | |
self.buildTileLayoutConfiguration(); | |
if (data != undefined || null || "Error Message") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script id="MapTile" type="text/x-kendo-template"> | |
<div class="container-fluid d-flex flex-column pl-0 pr-0 h-100"> | |
<div class="row no-gutters pt-2 pb-2"> | |
<div class="col-md-auto d-flex align-items-center pl-3 pr-3"> | |
<label class="mb-0" for="mapSource">Select map layer: </label> | |
</div> | |
<div id="mapSource" class="col-md-3"> | |
<select id="RISFeatureList" class="custom-select custom-select-sm" name="RISFeatureList"> | |
<option value="RISCulvert">Culverts</option> | |
<option value="RISSign" selected>Signs</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function irisTileViewBuilder(paths) { | |
for (let i = 0; i < paths.length; i++) { | |
$.get(paths[i]).done(function (result) { | |
$("body").append(result); | |
}).then(function (result) { | |
let bodyTemplate = kendo.template($("#TestTemplate").html(), { useWithBlock: false }); | |
// function call to create tileview here | |
}).fail(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#tilelayout").kendoTileLayout({ | |
containers: [{ | |
colSpan: 6, | |
rowSpan: 4, | |
header: { | |
text: "Item three" | |
}, | |
bodyTemplate: kendo.template($("#MapTemplate").html()) | |
}, { | |
colSpan: 3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Upload and transfer data to API/DB | |
[HttpPost] | |
public async Task<ActionResult> UploadFiles() | |
{ | |
// Checking no of files injected in Request object | |
if (Request.Files.Count > 0) | |
{ | |
try | |
{ | |
// Get all files from Request object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert JSON to CSV file and automatically download when called | |
function convertJSONtoCSV(JSONData, providedFileName, parseHeaders) { | |
// If JSONData is not an object then JSON.parse will parse the JSON string in an Object | |
let arrData = typeof JSONData != 'object' ? JSON.parse(JSONData) : JSONData; | |
let processedCSV: string = ""; | |
// Generate the headers if argument is passed as true | |
if (parseHeaders) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.iris-icon-sizer-01 { | |
height: 1em; | |
width: 1em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span><img src="~/Content/Icons/Drawer/info-circle-solid.svg" class="iris-icon-sizer-01" /></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VisualStudio2019.Palette.AccentColor = (Color)ColorConverter.ConvertFromString("#FF5399EE"); | |
VisualStudio2019.Palette.AccentMainColor = (Color)ColorConverter.ConvertFromString("#FF5399EE"); | |
VisualStudio2019.Palette.AccentDarkColor = (Color)ColorConverter.ConvertFromString("#FF233042"); | |
VisualStudio2019.Palette.AccentSecondaryDarkColor = (Color)ColorConverter.ConvertFromString("#FF2E6FF2"); | |
VisualStudio2019.Palette.AccentMouseOverColor = (Color)ColorConverter.ConvertFromString("#FF5399EE"); | |
VisualStudio2019.Palette.AccentFocusedColor = (Color)ColorConverter.ConvertFromString("#FF2E6FF2"); | |
VisualStudio2019.Palette.AccentForegroundColor = (Color)ColorConverter.ConvertFromString("#FFBBD3F0"); | |
VisualStudio2019.Palette.ValidationColor = (Color)ColorConverter.ConvertFromString("#FFFF3333"); | |
VisualStudio2019.Palette.BasicColor = (Color)ColorConverter.ConvertFromString("#FFBBD3F0"); | |
VisualStudio2019.Palette.SemiBasicColor = (Color)ColorConverter.ConvertFromString("#FFEAEFF6"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string connectionString = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=WPF_Data;Integrated Security=True;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"; | |
string SQL_SELECT = "SELECT * Data_Table"; | |
SqlConnection conn = new SqlConnection(connectionString); | |
SqlDataAdapter da = new SqlDataAdapter(); | |
SqlCommand sql = conn.CreateCommand(); | |
sql.CommandText = SQL_SELECT; | |
da.SelectCommand = sql; | |
DataSet ds = new DataSet(); |