예제 #1
0
 static void callback(Event ev, object ui)
 {
     HtmlContext.window.setTimeout(() =>
         {
             new jQuery("#effect").removeAttr("style").hide().fadeIn();
         }, 1000);
 }
예제 #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();
 }
예제 #3
0
파일: Api.cs 프로젝트: fjgandrade/sharpkit
 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);
     }
 }
예제 #4
0
        static void callback(Event e, object ui)
        {
            HtmlContext.window.setTimeout(() =>
            {
                new jQuery("#effect").addClass("newClass");

            }, 1500);
        }
예제 #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 + ')' );");
     }
 }
예제 #6
0
파일: Api.cs 프로젝트: fjgandrade/sharpkit
        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);
            }
        }
예제 #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 + ")");
     }
 }
예제 #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");
        }
예제 #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) { }
예제 #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) { }
예제 #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) { }
예제 #12
0
 static void onOpen(Event e)
 {
     kendoConsole.log("Open: " + e.view + " view");
 }
예제 #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) { }
예제 #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) { }
예제 #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) { }
예제 #16
0
파일: Api.cs 프로젝트: fjgandrade/sharpkit
 static void setSearch(Event e)
 {
     if (e.type != "keypress" || Kendo.keys.ENTER == e.keyCode)
         combobox.search(new jQuery("#word").val().As<JsString>());
 }
예제 #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) { }
예제 #18
0
 internal static void keyDownHandler(Event e)
 {
     string id = e.srcElement.id;
     if (registry.ContainsKey(id)) ((UITKKeyedComponent)registry[id]).FireKeyDown(e);
 }
예제 #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));
 }
예제 #20
0
 static void onClose(Event e)
 {
     kendoConsole.log("Close: " + e.view + " view");
 }
예제 #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) { }
예제 #22
0
 internal static void clickHandler(Event e)
 {
     string id = e.srcElement.id;
     if (registry.ContainsKey(id)) registry[id].FireClicked(e);
 }
예제 #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) { }
예제 #24
0
 /// <summary>
 /// Closes all open sub-menus.
 /// </summary>
 /// <param name="event">What triggered the menu to collapse.</param>
 public void collapseAll(Event @event) { }
예제 #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) { }
예제 #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) { }
예제 #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; }
예제 #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) { }
예제 #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) { }
예제 #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));
 }