Пример #1
0
        protected virtual void OnClick(jQueryEvent e, int row, int cell)
        {
            var target = J(e.Target);

            if (target.HasClass("s-" + GetItemType() + "Link"))
            {
                e.PreventDefault();
                EditItem(SlickFormatting.GetItemId(target));
            }
        }
Пример #2
0
        protected virtual void OnClick(jQueryEvent e, int row, int cell)
        {
            if (e.IsDefaultPrevented())
            {
                return;
            }

            var target = J(e.Target);

            if (target.HasClass("s-EditLink"))
            {
                e.PreventDefault();

                EditItem(SlickFormatting.GetItemType(target), SlickFormatting.GetItemId(target));
            }
        }