Tags » Code Snippet

LIST/VIEW March 4th, 2015

Here is what was discussed in class (as I remember it).

We worked in three separate documents today: our config file, demo_list, and demo_view files. Our config file added a couple new functions. 195 more words

More Beers! 03/02/2015

We continued work on the Beer Database and rehashed some of the same information.

Working in our Adminer, the information can be exported and imported into a Docs folder. 128 more words

Class for 2/23/2015

Today we populated our template site, “Grey”, with data from a sample database.

This is a powerful tool for creating the tile like Amazon format. The code that we implemented looked like this:

Vertically Align Anything

For this first week I want to give total props to Sebastian Ekström over at zerosixthree.se. He wrote an amazing blog post that has spurred me on to share this snippet even more.   277 more words

Web Development

ASP.NET Forms Disabled CSS for BootStrap

The following CSS is to handle Enabled set to true in any WebControl.

/* -- Bootstrap Additions - ASP.NET Disabled ----------------- */

.radio.aspNetDisabled label,
.checkbox.aspNetDisabled label
    cursor: not-allowed;

    pointer-events: none;
    cursor: not-allowed;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;

    background-color: #fff;
    border-color: #ccc;

    background-color: #428bca;
    border-color: #357ebd;

    background-color: #5cb85c;
    border-color: #4cae4c;

    background-color: #5bc0de;
    border-color: #46b8da;

    background-color: #f0ad4e;
    border-color: #eea236;

    background-color: #d9534f;
    border-color: #d43f3a;

.dropdown-menu > .aspNetDisabled > a,
.dropdown-menu > .aspNetDisabled > a:hover,
.dropdown-menu > .aspNetDisabled > a:focus,
.dropdown-menu > li > a.aspNetDisabled,
.dropdown-menu > li > a.aspNetDisabled:hover,
.dropdown-menu > li > a.aspNetDisabled:focus
    color: #777;

.dropdown-menu > .aspNetDisabled > a:hover,
.dropdown-menu > .aspNetDisabled > a:focus,
.dropdown-menu > li > a.aspNetDisabled:hover,
.dropdown-menu > li > a.aspNetDisabled:focus
    text-decoration: none;
    cursor: not-allowed;
    background-color: transparent;
    background-image: none;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
} 9 more words

Troubleshooting EntityValidation Errors

While hooking up my views to their save functions, I’ve run into the same error several times: an EntityValidation error. This should be an easy error to fix, except that the default error message includes *no* detail. 99 more words


Kendo Grid Filter Menu Init

I was happy to discover that Kendo Grids include an event for initiation their filter menu.

We use this for two really simple functions: to set the focus in the filter input control, and to select the current contents of that control. 81 more words