kendo-window

Angular6 open/show component by service

与世无争的帅哥 提交于 2020-07-22 05:52:09
问题 I built an angular component to use as a dialog for my app (e.g to show application errors) and a dialog- service to open/show that dialog from other components. dialog.component.html <kendo-dialog *ngIf="opened"> <div> Some Content </div> </kendo-dialog> dialog.compontent.ts import { Component, OnInit } from '@angular/core'; import { Dialog } from './dialog'; // Model @Component({ selector: 'dialog', templateUrl: './dialog.component.html', styleUrls: ['./dialog.component.scss'] }) export

JSON not stopping form submit on modal window

假装没事ソ 提交于 2019-12-25 01:18:05
问题 I have a mvc project. I open a form in a modal dialog. The user fills in form and hits save. The form posts to the controller however I am trying to intercept and post via json. Looking in Dev tools network section as well as having alert() in my json it is not running and I am thinking it is not attached properly? I have read several pages and it seems my json is basically correct. I know there is a relation between the parent page and a window...which is a div that becomes the modal window.

How to load a partial view inside Kendo Window on request

帅比萌擦擦* 提交于 2019-12-24 00:45:53
问题 I have a kendo window who's data is loaded with an ajax call. This kendo window is acting like a widget editor which allow users to change or manipulate data in order to render different charts etc. Once users have configured all the options they want to preview their chart/graph before being displayed on a page. I have successfully constructed the model window and loaded the initial data with one input (Preview) button but now I don't know how to load the partial view inside the Model window

kendo window with minimize and maximize

落爺英雄遲暮 提交于 2019-12-13 07:10:39
问题 I have two kendo windows one below the other in the page with minimize and maximize options. When I close or minimize the first window the window below should come up. Could you please help me achieve this? <div id="dialog"></div> <div id="dialog1"></div> <script> $("#dialog").kendoWindow({ animation: { close: false } }); $("#dialog1").kendoWindow({ animation: { close: false } }); </script> 回答1: Try: <script> $("#dialog").kendoWindow({ animation: { close: false }, close: function(e) { var d1

How can I have kendo NumericTextBox keep focus during highlighting in a kendo window?

大城市里の小女人 提交于 2019-12-12 05:16:17
问题 I have a kendo window that contains a kendo numeric text box: $('input').kendoNumericTextBox({ decimals: 2, spinners: false }); $('#win').kendoWindow({ modal: true, width: "969px", height: "646px", title: "NumericTextBoxTest" }); $('#win').data('kendoWindow').center().open(); The jsfiddle is here http://jsfiddle.net/e6shF/40/. In Firefox, you are unable to highlight the numeric text box value. In Chrome, you can highlight the value but can't type over the value while it is highlighted. It

MVC: When using Kendo().Window to load PartialView, getting an error “The resource cannot be found”

有些话、适合烂在心里 提交于 2019-12-11 17:50:02
问题 I'm using modal Kendo().Window() to load a Partial View on a button click. I have a main View, let's say View1 containing the button, the code to display a window where the Partial View containing the Kendo().Grid will be loaded, and a javascript function which opens the window: This is what I have on my View1: This is the button: @(Html.Kendo().Button() .Name("btnSubmit") .HtmlAttributes(new { type = "button"}) .Icon("k-icon k-i-file-txt") .Content("View Details") .Events(e => e.Click(

Difficulty attaching event handler to dynamically generated modal window elements

浪子不回头ぞ 提交于 2019-12-11 07:47:40
问题 This question is an ongoing learning / discovery of these three questions. This issue for me started here: First Post Second Post Now this post is regarding @StephenMuecke post about attaching the event handler dynamically. This was new to me so I had to read up but now I see that it does make sense. Well after reading documentation and numerous SO posts I still can't seem to get the click event handler to fire?? This time I decided to take a different approach. I created a jsfiddle

Styling Kendo Window's content with Bootstrap

偶尔善良 提交于 2019-12-06 03:58:22
问题 I have a generic Kendo Window that I call for different partial views. I can't style contents using bootstrap, as it causes different layouts in different browsers and elements are always cluttered. This is a sample: <div class="form-group form-inline"> <div class="line"> <div class="col-xs-6"> @Html.LabelFor(m => m.2, new { @class = "col-xs-4 control-label" }) @Html.DisplayFor(m => m.2) </div> <div class="col-xs-4"> @Html.LabelFor(m => m.3, new { @class = "col-xs-4 control-label" }) @Html

Kendo UI Window overlay opacity

核能气质少年 提交于 2019-12-02 18:33:10
问题 How can I set overlay opacity with CSS. I tried .k-overlay { opacity:0.9; } but it wont work. Can anyone help me? here I provide a simple demo 回答1: .k-widget would be a too broad selection. You can set the opacity for that very window once the window will be shown: <script> function onOpen() { setTimeout(function(){ $("#dialog").parent().css("opacity", 0.2); }, 10); } $("#dialog").kendoWindow({ modal: true, open: onOpen }); </script> 回答2: You could try .k-overlay { opacity:0.9 !important; }

Kendo window.refresh not successfully grabbing partial view

断了今生、忘了曾经 提交于 2019-12-02 13:11:58
问题 all. Thank you in advance. I have a window which much refresh every time a dropdown selection is changed (or button is pressed). The controller is being called upon refresh, but the view is not being called/refreshed, for some reason. Am I missing something fundamental? Window: @(Html.Kendo().Window() .Name("EditWindow") .Title("Edit Contact") .LoadContentFrom("_ContactEdit", "Contacts", new { selectedContact = Model.ContactId }) .Content("Loading...") .Visible(false) .Draggable() .Resizable(