static void callback(Event ev, object ui) { HtmlContext.window.setTimeout(() => { new jQuery("#effect").removeAttr("style").hide().fadeIn(); }, 1000); }
static void showDetails(Event e) { e.preventDefault(); var dataItem = [email protected]<Grid>().dataItem(new jQuery(e.currentTarget).closest("tr")); // wnd.content(detailsTemplate(dataItem.As<JsString)); wnd.center().open(); }
static void setValue(Event e) { if (e.ExactNotEquals("keypress") || Kendo.keys.ENTER == e.keyCode) { var index = JsContext.parseInt(new jQuery("#index").val().As<JsString>()); combobox.select(index); } }
static void callback(Event e, object ui) { HtmlContext.window.setTimeout(() => { new jQuery("#effect").addClass("newClass"); }, 1500); }
static void onSelect(Event e) { if ("kendoConsole".@in(HtmlContext.window)) { JsContext.JsCode("var dataItem = this.dataItem(e.item.index());"); JsContext.JsCode("kendoConsole.log('event :: select (' + dataItem.text + ' : ' + dataItem.value + ')' );"); } }
static void setIndex(Event e) { if (e.type != "keypress" || Kendo.keys.ENTER == e.keyCode) { var index = JsContext.parseInt(new jQuery("#index").val().As<JsString>()); combobox.select(index); } }
static void onSelect(Event e) { if ("kendoConsole".@in(HtmlContext.window)) { JsContext.JsCode("var dataItem = this.dataItem(e.item.index());"); JsContext.JsCode("kendoConsole.log('event :: select (' + dataItem.text + ' : ' + dataItem.value + ')');"); //TODO: var dataItem = [email protected]<ComboBox>().dataItem(e.item.index()); //kendoConsole.log("event :: select (" + dataItem.text + " : " + dataItem.value + ")"); } }
static void draggableOnDragEnd(Event e) { kendoConsole.log("dragend"); var draggable = new jQuery("#draggable"); // if (!draggable.data("kendoDraggable").As<Draggable>().dropped) //{ // new jQuery("#droptarget").text("Try again!"); //} draggable.removeClass("hollow"); }
/// <summary> /// Moves active state to first menu item below the bottom of a scrollable menu or the last item if not scrollable. /// </summary> /// <param name="event">What triggered the focus to move.</param> public void nextPage(Event @event) { }
/// <summary> /// Moves active state to next menu item. /// </summary> /// <param name="event">What triggered the focus to move.</param> public void next(Event @event) { }
/// <summary> /// Activates a particular menu item, begins opening any sub-menu if present and triggers the menu's focus event. /// </summary> /// <param name="event">What triggered the menu item to gain focus.</param> public void focus(Event @event) { }
static void onOpen(Event e) { kendoConsole.log("Open: " + e.view + " view"); }
/// <summary> /// Programmatically open a tooltip. If the widget's element is the target, the event argument is optional. /// Otherwise you have to pass an event object with the currentTarget property pointing at the target. /// </summary> /// <param name="event">What triggered the tooltip to open.</param> public void open(Event @event) { }
/// <summary> /// Closes the currently active sub-menu. /// </summary> /// <param name="event">What triggered the menu to collapse.</param> public void collapse(Event @event) { }
/// <summary> /// Selects the currently active menu item, collapses all sub-menus and triggers the menu's select event. /// </summary> /// <param name="event">What triggered the selection.</param> public void select(Event @event) { }
static void setSearch(Event e) { if (e.type != "keypress" || Kendo.keys.ENTER == e.keyCode) combobox.search(new jQuery("#word").val().As<JsString>()); }
/// <summary> /// Removes focus from a menu, resets any active element styles and triggers the menu's blur event. /// </summary> /// <param name="event">What triggered the menu to blur.</param> public void blur(Event @event) { }
internal static void keyDownHandler(Event e) { string id = e.srcElement.id; if (registry.ContainsKey(id)) ((UITKKeyedComponent)registry[id]).FireKeyDown(e); }
internal void FireClicked(Event args) { if(Click != null) Click(this, new UITKMouseEventArguments(this, args.pageX, args.pageY, args.ctrlKey, args.shiftKey, args.altKey, args.keyCode)); }
static void onClose(Event e) { kendoConsole.log("Close: " + e.view + " view"); }
/// <summary> /// Moves active state to previous menu item. /// </summary> /// <param name="event">What triggered the focus to move.</param> public void previous(Event @event) { }
internal static void clickHandler(Event e) { string id = e.srcElement.id; if (registry.ContainsKey(id)) registry[id].FireClicked(e); }
/// <summary> /// Moves active state to first menu item above the top of a scrollable menu or the first item if not scrollable. /// </summary> /// <param name="event">What triggered the focus to move.</param> public void previousPage(Event @event) { }
/// <summary> /// Closes all open sub-menus. /// </summary> /// <param name="event">What triggered the menu to collapse.</param> public void collapseAll(Event @event) { }
/// <summary> /// Closes a tooltip. If the widget's element is the target, the event argument is optional. /// Otherwise you have to pass an event object with the currentTarget property pointing at the target. /// </summary> /// <param name="event">What triggered the tooltip to close.</param> public void close(Event @event) { }
/// <summary> /// Opens the sub-menu below the currently active item, if one exists. /// </summary> /// <param name="event">What triggered the menu to expand.</param> public void expand(Event @event) { }
/// <summary> /// Execute all handlers and behaviors attached to the matched elements for the given event type. /// </summary> public jQuery trigger(Event @event) { return null; }
/// <summary> /// Activates a particular menu item, begins opening any sub-menu if present and triggers the menu's focus event. /// </summary> /// <param name="event">What triggered the menu item to gain focus.</param> /// <param name="item">The menu item to focus/activate.</param> public void focus(Event @event, jQuery item) { }
/// <summary> /// Closes all open sub-menus. /// </summary> /// <param name="event">What triggered the menu to collapse.</param> /// <param name="all">Indicates whether all sub-menus should be closed or only sub-menus below and including the menu that is or contains the target of the triggering event.</param> public void collapseAll(Event @event, bool all) { }
internal void FireMouseHover(Event args) { if (MouseHover != null) MouseHover(this, new UITKMouseEventArguments(this, args.pageX, args.pageY, args.ctrlKey, args.shiftKey, args.altKey, args.keyCode)); }