Esempio n. 1
0
 static void callback(Event ev, object ui)
 {
     HtmlContext.window.setTimeout(() =>
         {
             new jQuery("#effect").removeAttr("style").hide().fadeIn();
         }, 1000);
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
        static void callback(Event e, object ui)
        {
            HtmlContext.window.setTimeout(() =>
            {
                new jQuery("#effect").addClass("newClass");

            }, 1500);
        }
Esempio n. 5
0
 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 + ')' );");
     }
 }
Esempio n. 6
0
        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);
            }
        }
Esempio n. 7
0
 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 + ")");
     }
 }
Esempio n. 8
0
        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");
        }
Esempio n. 9
0
 /// <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) { }
Esempio n. 10
0
 /// <summary>
 /// Moves active state to next menu item.
 /// </summary>
 /// <param name="event">What triggered the focus to move.</param>
 public void next(Event @event) { }
Esempio n. 11
0
 /// <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) { }
Esempio n. 12
0
 static void onOpen(Event e)
 {
     kendoConsole.log("Open: " + e.view + " view");
 }
Esempio n. 13
0
 /// <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) { }
Esempio n. 14
0
 /// <summary>
 /// Closes the currently active sub-menu.
 /// </summary>
 /// <param name="event">What triggered the menu to collapse.</param>
 public void collapse(Event @event) { }
Esempio n. 15
0
 /// <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) { }
Esempio n. 16
0
 static void setSearch(Event e)
 {
     if (e.type != "keypress" || Kendo.keys.ENTER == e.keyCode)
         combobox.search(new jQuery("#word").val().As<JsString>());
 }
Esempio n. 17
0
 /// <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) { }
Esempio n. 18
0
 internal static void keyDownHandler(Event e)
 {
     string id = e.srcElement.id;
     if (registry.ContainsKey(id)) ((UITKKeyedComponent)registry[id]).FireKeyDown(e);
 }
Esempio n. 19
0
 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));
 }
Esempio n. 20
0
 static void onClose(Event e)
 {
     kendoConsole.log("Close: " + e.view + " view");
 }
Esempio n. 21
0
 /// <summary>
 /// Moves active state to previous menu item.
 /// </summary>
 /// <param name="event">What triggered the focus to move.</param>
 public void previous(Event @event) { }
Esempio n. 22
0
 internal static void clickHandler(Event e)
 {
     string id = e.srcElement.id;
     if (registry.ContainsKey(id)) registry[id].FireClicked(e);
 }
Esempio n. 23
0
 /// <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) { }
Esempio n. 24
0
 /// <summary>
 /// Closes all open sub-menus.
 /// </summary>
 /// <param name="event">What triggered the menu to collapse.</param>
 public void collapseAll(Event @event) { }
Esempio n. 25
0
 /// <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) { }
Esempio n. 26
0
 /// <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) { }
Esempio n. 27
0
 /// <summary>
 /// Execute all handlers and behaviors attached to the matched elements for the given event type.
 /// </summary>
 public jQuery trigger(Event @event) { return null; }
Esempio n. 28
0
 /// <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) { }
Esempio n. 29
0
 /// <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) { }
Esempio n. 30
0
 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));
 }