MVC5 Autocomplete - Error - exception

I have default mvc5 project. When I want to do autocomplete textbox it doesn't recognize autocomplete function.

How did I fix this?
Use jQuery UI: Although I had the scripts specified in a bundle called jqueryui, they’re not rendered. So I added this line under the jQuery bundle rendering in _Layout.cshtml:
#Scripts.Render("~/bundles/jqueryui")
Render the jQuery UI CSS: jQuery UI requires some CSS files to be included. They were bundled, but not rendered; so I rendered them by adding #Styles.Render("~/Content/themes/base/css") to my layout.

Related

Bootstrap Multiselect - conflicting CSS

I'm using this version of bootstrap for a web application:
http://davidstutz.de/bootstrap-multiselect/
In the docs, it says the css required is bootstrap.min.css which I have. The problem, however, is that my application and some of its elements (datetimepicker, etc) require bootstrap.css. I cannot have both loaded at the same time without conflicts. Currently, without loading bootstrap.min.css my multiselect looks like this:
And When I select multiple they go outside the label.
Is there a way I can get around this issue? Can I link the min version specifically to the instance of multiselect?

How to customize page template using Liferay UI?

Is it any ways to add html and css code to page templates using UI of lifery? Because when I'm opening page template - > add page template I've got smth like this with this strange message
It is not possible to specify customization settings for pages in site
templates or page templates.
How to write my own template with custom CSS and Pictures that I have already added to my custom theme?
Your screenshot is helpful. See the Look and Feel tab? That's where you can add custom CSS. Custom JavaScript logic can be added in the Advanced tab.

Angular 2 routing from one component to another then CSS is not applied

When I route from one component to another then CSS is not applied for that new component. But when I inspect the element it shows css properties are applied to the element but not rendered. But when I refresh the page or even close the dev tools then that element is displayed on screen immediately without making any changes.
So not sure how to go about resolving this issue.
This issue was related to fonts.
As we are using angular-cli which uses webpack to bundling.
Webpack was unable to bundle fonts properly which was causing it to not render the elements correctly.
Its a known issue in angular-cli
https://github.com/angular/angular-cli/issues/1463

My custom element is not working in Polymer shop app, but working in Polymer starter kit?

PROBLEM:
I've created a custom "properties" grid system to use universally on any element. In every project thus far, I've had no problem using it...But when I try to use it in the Polymer Shop App Demo, it doesn't work. Here's my custom property system that I'm importing in: https://github.com/oneezy/steel-properties
In Chrome dev tools network tab, it says that it's loading normally, however when I inspect an element it doesn't show up in the css and has no effect! It's got me scratching my head because it works completely fine w/ Polymer Starter Kit and in other projects...
I've included a short video showing my problem:
https://www.youtube.com/watch?v=tpyYxXTMdkU
Is there something I'm missing or doing wrong???
UPDATE:
By changing shadow to shady in the shop app's index.html file, everything seems to work as expected:
Polymer = {lazyRegister: true, dom: 'shadow'};
becomes...
Polymer = {lazyRegister: true, dom: 'shady'};
But what are the ramifications of this?
Steel-Properties is meant to be used as a "universal" way for initial layout so you can quickly use it on any element. When I include steel-properties into a file, it goes in and calls other files that have specific style properties written out, and you then can write these properties directly into your markup.
EXAMPLE:
HTML Markup:
<body mobile-bg="blue" tablet-bg="green" desktop-bg="yellow"></body>
Output:
The Code:
As you can see, steel-properties is not your typical <custom-element>. It's really just importing in style sheets with [attribute="property"]'s.
So my questions now are:
Should I be doing it this way or am I going about it wrong?
What would be the proper way to write my "steel-properties" so that it can work with both shadow and shady DOM universally?
What are the ramifications of switching shadow to shady DOM in the shop app?
What is the main reason for using shadow DOM instead of shady DOM in the shop app but not the Polymer Starter Kit? (performance?)

Summernote WYSIWYG doesn't display properly inexternal popup

I know it must be something easy, but I can't figure this out. Summernote works fine if it is in the first page element of a JQM document, but if the summernote is in an external popup or on other pages in a multipage web, they summernote initialized but the icons are spaced oddly--see the fiddle). I have tried comparing the how the css are applied, and it looks like the JQM theme is overwriting the bootstrap css, though I am not sure (adding !important to all the bootstrap and summernote css is not an option--besides it must be a initialization or loading issue). Anyone have an idea?
If you host the JQuery Mobile scripts locally then you could edit/delete the parts that are causing the problem. Or you could use find and replace to add the important tags: Find:; Replace:!important;