Today we are going to talk about adding front end user interface to our application, from scratch. We can add the front end to our application using something called view resolvers. Our options are Apache Tiles, JavaServer Pages (JSP), etc. there are many other options, as well. Spring Boot supports FreeMarker templates, Groovy Templates and Themyleaf via “AutoConfiguration”, as the first class citizens. As the name suggests, we should not need to do a whole lot to get going with one of these. In this video we would be looking at Thymeleaf. I find it easy to use and feature rich at the same time. Thymeleaf is mostly HTML. Finally, we will talk about Web JARs & How to add Branding to our web application, using responsive web design. Continue reading “[4/4] Docker: Front-end development w/ Java, SpringBoot MVC & RESTful Web API”
Recently, I came to know that the free and open-source distribution of Kendo UI news also ships AngularJS with it.
FYI : Kendo UI core now ships with Apache 2 license and not GPL.
We all know that Kendo UI is a full front-end framework. That means that it has all of the UI widgets. And I had been using Kendo with MVC in the past. The trend has been changed a bit fellas ! Since few months, I had been working on Web API, MVC, bootstrap and AngularJS — pretty popular stack now a days. Anywhere you need a page, use a MVC controller and views, whereas for CRUD operations basically one may use Web API controllers ( async calls ) with HTTP verbs.
Many people prefer to bind an enum to a dropdown in their WinForms application. In the cases where we can not bring the values from backend/database, it makes sense to use enum as opposed to hard-coding values over and over again. Enumerations support a practice where a group of related constants may be created which later be viewed as string or integer values.
Before we see how could this be achieved in Windows Forms Application ( WinForms App ), ASP.NET WebForms, ASP.NET MVC ( even easier in MVC 5 ! ) as well as ASP.NET Web API, let’s talk about : ‘Why ?’
Why using Enum is preferred if combobox is not being flourished from DB ? Well, In addition to re-usability, there are some clear advantages :
Below are some code snippets that I have prepared initially, if you do not find one that you are looking for, just [ drop me an E-mail ] or just a comment below would suffice. Also please note that a demo illustrated in SQL server should also work with MySQL & vice-versa.
|Populate gridview programmatically using MySQL||Loading the gridview programmatically using C# from database||zip|
|Gridview with a drop-down filter in the header||Filter your gridview with a drop down in the table header||zip|
|Adding controls on the fly in GridView||(Esp. with custom user control,) add hyper-link check-boxes dynamically||zip|
|Paging & Sorting in Gridview||Programmatically handle paging and sorting events of gridview||zip|
|Insert/Update/Delete||using Button field of the DataGridView(Accessing the cell values of the row containing the button clicked) if you want to retrieve the cell values of the row after the button from that row has clicked and to fire database queries||zip|
|Export Gridview to …||MS ACCESS / MS EXCEL / CSV||zip|
|Combobox hard-coded values & Database records to gather||Loading a combobox, with static items as well as items from database||zip|
|Sending plain text E-mail message from web app to Gmail||You can specify from, password, to, subject and message to send an email||zip|
|Caching 1||Simple Page Level Caching||zip|
|Caching 2||Caching SQL Server Caching for certain amount of time||zip|
|Caching 3||SQLServer Automated Caching and Updating Cached version at Regular Intervals and upon Create/Update/Delete operations||zip|
|Caching 4||Partial Page Caching, Multiple & Multi-Level Page caching and … Clearing the cache||zip|
|Shortening GUID||Sometimes we want to get the shortest GUID for building URLs or for dynamic file names, So I created a slight variant of GUID||zip|
|Parsing Uri (Query Params)||When one has the URL of the page from which QueryParams are wanted but can not use Request.QueryString (when the URL is not of current page, stored in a object in a memory etc)||zip|
|Nested GridViews||A basic example of how a grid can become a part of data row of some master table (master – grid )||zip|
|Nested GridViews + Conditional Formatting||Apply conditional formatting to your nested grid||zip|
|Filter DataGrid w/ LINQ||An example demonstrating how LINQ can be used to filter out the data from the Data Grid||zip|
|Nested GridVeiw||A gridview inside a gridview||zip|
|Nested Gridview||Nested Expandable & Collapsible Gridview (Same Row)||zip|
|Nested Gridview||Nested Expandable & Collapsible Gridview (Next Row)||zip|
|Signal R||Move Shape + Group Discussion / Chat + etc …||zip|
|G.Drive Spreadsheets||Access Google-SpreadSheet Via Gdata And C#||zip|
|Parameter Parsing||Parsing parameters from query string||zip|
|Short GUID||Get Short (& sweet) : unique strings, unique, not random chars as random may not be unique||zip|
|String Float Double InterConversion||zip|
|2D Array To-String And Vice-Versa||zip|
|Async GridView (Take # 1)||Loading the data for the gridview asynchronously from database
|CSV to Gridview||A sample web app demonstrating how to load gridview from multiple CSV dynamically (one at a time)||zip|
|Crystal Report : Dynamic Binding||Conditional Data-binding from multiple tables, after the report has been loaded||zip|
I am going to share all the code snippets that I have. At the moment, this page is being updated, every, single, day. You can download most of the archives from here, at once.
a console application [View]
mainly as simple web projects [View]
Most posts in this section would be describing Windows Phone, Applications