Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9218109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:47:16+00:00 2026-06-18T02:47:16+00:00

There is a problem when I put Kendo Dropdown List info Fancybox – Popup.

  • 0

There is a problem when I put Kendo Dropdown List info Fancybox – Popup.
For detail:
I have page A :this page contains Kendo Dropdown list (with id = #myDropdown).
I have page B : I put my Fancybox caller here- I mean I use Fancybox to load page A (by ajax)

Everything look well , but I got a problem here:
You know, when I initialize a Dropdown List, Kendo-UI will create an “anchor” Tag for UI-effect purpose.
Ex:
DropdownList has id = #myDropdown
Kendo will create one more Tag with id = #myDropdown-list.

After closing the Fancybox-popup , The “#myDropdown” was removed from DOM, but “#myDropdown-list”. It still on the DOM overtime, and it willing to be double after I call the popup again(ofcourse if dont refresh current page).

And The Kendo-DateTimePicker as the same too.

p/s: and so sorry about by english if it was too bad :D. I hope you get my question.

im going to put my “popup” in iframe.But I dont know if it is good when using iframe in this case…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:47:17+00:00Added an answer on June 18, 2026 at 2:47 am

    Using IFrame or not is not the cause of the error. I tried with a container and without it to load the fancybox via ajax, but it didn’t make a difference.

    What I found is sort of a hack, however it solves the problem. Let’s suppose we have a code which creates the popup and the popup’s content is located in the href ‘popupFrame’:

    $.fancybox({
        'href': 'popupFrame',
        'type': 'ajax',
        beforeClose: removeKendoHelpers
    });
    

    The other part is the function which is called before closing the popup:

    function removeKendoHelpers() {
        $("#myDropdown-list").remove();
    }
    

    Of course you can create the removeKendoHelpers as an inline function and if there are more parts to remove then put that code into the removeKendoHelpers function as well.

    One interesting remark: in the fancybox API onCleanup and onClosed are listed as options but they do not work, instead use beforeClose or afterClose.

    UPDATE:

    Actually a lot of problem is solved with calling the kendo widget’s destroy() method. It solves the removing problems for the widgets except for one of the three helper divs of the DateTimePicker, so the close looks like the following:

    function removeKendoHelpers() {
        $("#myDropdown-list").data("kendoDropDownList").destroy();
        $("#datetimepicker").data("kendoDateTimePicker").destroy();
    }
    

    And to resolve the date time picker’s actual problem which is I think a bug in the kendop framework (I will report this and hopefully get some feedback) the last function only needs to be extended with:

    $(".k-widget.k-calendar").remove();
    

    OTHER solution:

    This one is more crude but works like a charm for me even if the page has multiple kendo controls and even if you open another fancybox from your fancybox.

    Wrap the fancybox creation in a function, like:

    function openFancyBox() {
        $("body").append("<div class='fancybox-marker'></div>");
    
        $.fancybox({
            'href': 'popupFrame',
            'type': 'ajax',
            beforeClose: removeKendoHelpers
        });
    }
    

    This will create a new div at the very end of the body tag, and the function at the closing of the fancybox uses this:

    function removeKendoHelpers() {
        $(".fancybox-marker").last().nextAll().remove();
        $(".fancybox-marker").last().remove();
    }
    

    I hope these solves all your problem!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

what's the problem there, I have uploaded this video to server, but now its
I have a tricky problem: there is a file (version.txt) that contains two lines
I have problem to put several countdowns on page. I use HTML.Partial: <span><strong id=time_h></strong>godz.
Following is my php login script, There are one problem. If i put any
Is there a problem with this type of implementation to wait for a batch
Consider this problem: There's a square grid defined, each tile being either passable (1)
I have used jdom for xml validation against schema. The main problem there is
I have a problem with put drawn circle into middle of Frame by using
Got another problem: There is a list with some words. If the length of
doing this in AppDelegate: viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; Is there any problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.