Posts

Ag-grid: Angular dynamic loading data (without async)

For anyone not using "async" in their html, its importance to set your variable to a type but not an array. The difference is small but there is almost no reference to it in the documentation. I found this out while working on my own complex UI grid. In fact very proud of the results, but would like to have the same responsiveness that datatables provides. I'll have an article more on that later. For now this is just a small tip for anyone looking to not use "async" which is in the documentations. I think the benefits of doing this this way is less html to maintain as well as simpler code. rowData: []; //You can't use array methods until you have data, which you really shouldn't be anyway. vs  rowData = []; //this allow you to reference array methods at the start or when there is data but does not allow ag-grid to be aware that the rowData is empty. You can still update the array but when you do it just shows an message that your rowData is empty first w...

NLog 4.6.2 Console Application

For most of our configuration we use the App.config file. If you do not have one, create one and copy a .csproj project’s build configs for handling App.config files or simply start a project with App.config in the visual studio template. Based on .Net framework Console Applications under the .Net 4.7.2 Framework using NLog 4.6.2 however later versions may work just as well. In the start of the App.config add the following... < configSections >     < section name= "nlog" type= "NLog.Config.ConfigSectionHandler, NLog" />   </ configSections >   < nlog throwExceptions= "true" xmlns= "http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" >     < targets >           < target name= "database" xsi:type= "Database" dbProvider= "System.Data.SqlClient"               connectionString= "$ {gdc:item=databaseStr} "   ...

Popular posts from this blog

Aspetcore: NLog with Postgresql

Mongodb Cheatsheet

Installing Windows on Acer chromebook 15 cb3-532