Kendo.DropDownList in Kendo.Window not working

15 posts, 0 answers
  1. Nathan
    Nathan avatar
    39 posts
    Member since:
    Sep 2011

    Posted 24 Sep 2012 Link to this post


    Is this a bug or am I doing something stupid?

    The code for the dropdownlist works independently, just not inside a Kendo Window?

    If you change the window DIV name or the name in the javascript so it isn't generate, the drop-down-list works just fine?

    I've tried to narrow out down to the least possible code that demonstrates the problem:

    <!DOCTYPE html>
    <html>
    <head>
        <script src="http://localhost:59181/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <link href="http://localhost:59181/Content/kendo/2012.2.913/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="http://localhost:59181/Content/kendo/2012.2.913/kendo.blueopal.min.css" rel="stylesheet" type="text/css" />
    <script src="http://localhost:59181/Scripts/kendo/2012.2.913/jquery.min.js"></script>
    <script src="http://localhost:59181/Scripts/kendo/2012.2.913/kendo.all.min.js"></script>
    <script src="http://localhost:59181/Scripts/kendo/2012.2.913/kendo.aspnetmvc.min.js"></script>
    </head>
    <body>
            <div id="XXXwindow" class="k-content" style="overflow: scroll;" >
    x<input data-val="true" data-val-number="" data-val-required="" id="Group2" name="Group2" type="text" value="9" />x
    <script>
    jQuery(function(){jQuery("#Group2").kendoDropDownList({"dataSource":[
    {"ID":9,"Description":"[All membership types]","Value":"\/Date(254966400000)\/"},
    {"ID":10,"Description":"Monthly Fees","Value":"\/Date(254966400000)\/"},
    {"ID":11,"Description":"Cards","Value":"\/Date(254966400000)\/"}],
    "dataTextField":"Description","dataValueField":"ID"});});
    </script> 
                </div>
                <script type="text/javascript"> $("#XXXwindow").kendoWindow({ width: 500, height: 500 });  </script>
    </body>
    </html>
  2. Mathew
    Mathew avatar
    1 posts
    Member since:
    Jul 2012

    Posted 09 Oct 2012 Link to this post

    I am wondering this same thing. I have a Settings Window into which I want to put a DropDownList.

    I have tried to populate the Window using a div with the name and everything appears EXCEPT for the DropDownList.
    I have tried to populate the Window using a PartialView passed from the controller and the same happens.

    I have moved the code from those over to a normal view that doesn't use a Kendo Window and everything appears to work fine. This leads me to believe that you are right and that it is a bug :(
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Nathan
    Nathan avatar
    39 posts
    Member since:
    Sep 2011

    Posted 09 Oct 2012 Link to this post

    I raised a ticket on this.  It turns out the window product was never finished and you have to create a partial page with the objects in in order to make it work.   Something like:

    @ModelType  MyModel
        
    @Code
        ViewData("Title") = "My Homepage"
        Html.Kendo.Window().Title("My Window").Name("window").Draggable(False).Scrollable(False).LoadContentFrom("MyPartialPage", "Home", New With {.MyItem = Model}).Render()
    End Code

    I also chuck this into the layout for to resize the window to fit the browser: (one runs on open, the other on browser resize)
        <script type="text/javascript">
            document.ready = function (event) {
                var kendoWindow = $("#window").data("kendoWindow");
                kendoWindow.wrapper.css({
                    width: document.documentElement.clientWidth - 20,
                    height: document.documentElement.clientHeight - 20
                });
            };
            window.onresize = function (event) {
                var kendoWindow = $("#window").data("kendoWindow");
                kendoWindow.wrapper.css({
                    width: document.documentElement.clientWidth - 20,
                    height: document.documentElement.clientHeight - 20
                });
            };
        </script>
  5. Atanu
    Atanu avatar
    40 posts
    Member since:
    Jan 2012

    Posted 19 Nov 2012 Link to this post

    This bug is fixed in the latest release Q3 2012 (2012.3.1114)
  6. Ernesto
    Ernesto avatar
    2 posts
    Member since:
    Sep 2012

    Posted 27 Nov 2012 Link to this post

    I think I found a regression in version 2012.3.1114.

    If I load the content of the window from a partial view, where the partial view is a form that contains a dropdown list generated with the following code.
    @Html.DropDownListFor(m => m.IdAccion, (IEnumerable<SelectListItem>)ViewBag.Acciones, "Ninguna (Grupo)")
    The ".NET MVC" native dropdown renders, but it looks like the click event is intercepted when trying to select a value from this DropDown and this makes the user unable to select a value.

    This worked fine in version 2012.2.913.

    This bug is preventing me from upgrading to the latest version of Kendo UI.  I hope this report is enough to fix it, else I can provide an example project showing the issue.

    Edit: Not only the DropDown List's click event is being intercepted, but all the input controls in the form.  The submit button does not work either.

    Cheers.
  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 30 Nov 2012 Link to this post

    Hi Nathan,

     
    As the Atanu mentioned this is already fixed in the KendoUI Q3 release (v2012.3.1114).

    @Ernesto - your question is not related to the original topic of this forum post. Please submit a new support ticket or open new forum thread for it.

    Kind Regards,
    Vladimir Iliev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. Pat
    Pat avatar
    58 posts
    Member since:
    Feb 2005

    Posted 28 Dec 2012 Link to this post

    I am on 2012.3.1114.340 and dropdown lists (any, even just using Html.DropDownListFor) are not working for me in a window.  The select list appears, but I can't change the selection unless I first change the focus to another control.  Then I can change the selection once.  To change again, I need to again change the focus to another control first
  9. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 31 Dec 2012 Link to this post

    Hello Nathan,

    I suggest you to send us a project so we can take a look what causes such behavior.

    Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  10. Pat
    Pat avatar
    58 posts
    Member since:
    Feb 2005

    Posted 31 Dec 2012 Link to this post

    I've emailed a sample project to support@kendoui.com, assuming this is the correct address. 

    I was able to reproduce the problem in a test app once I added a 2nd nested modal dialog beneath the first modal dialog that also contains a grid.

    Is support@kendoui.com the right place to send projects too?
     I can't find this info anywhere on your site?
    I don't see how to private message you an attachment? How do I send you private projects?
    Right now, I don't even know if I am logged in as I don't see my name anywhere on this page.
    I don't even see a login/logout button...

    Your website is very pretty, but frustrating....
  11. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 01 Jan 2013 Link to this post

    Hello Nathan,

    After you log in you can open support ticket and attach your project there. Any information related to the issue will be appreciated (for reference you can provide a link to this forum post) .

    Kind Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  12. Alon
    Alon avatar
    13 posts
    Member since:
    Jun 2012

    Posted 11 Feb 2013 Link to this post

    Complaint\Rant: Can someone (from Kendo/Telerik support) please post meaningful responses to the issues, instead of just telling the users to open a new support ticket. Or basically, once the situation is resolved to update the forum post with the resolution.

    I am interested in the resolution for this issue as it is affecting multiple pages on our site and it must just be a stupid mistake on my part.

    And ... if I have to continue to open support tickets each time I find others with similar problems ... I am just not going use Telerik or Kendo products anymore. I am still frustrated at the documentation ... if it was actually coherent and organized nicely, I would just RTFM ... but I am just so frustrated with this product.

    Other than that, you all do a good job.
  13. Pat
    Pat avatar
    58 posts
    Member since:
    Feb 2005

    Posted 11 Feb 2013 Link to this post

    Alon, you're not alone.  I too am extremely frustrated with this library and the documentation.  While I am getting timely help through the support ticket system, I find it frustrating that I have to rely on it so much.  I generally run into a wall, have to submit a ticket, and then wait for the next day to hopefully have a fix and not just a request back for yet another sample application that duplicates the problem.  It seems telerik would prefer everybody submit a ticket on how to solve a problem versus just offering better responses to the forum threads.  I've given up on this forum because I just wasn't getting responses.  Now I just go straight to the ticket system.  For some reason, telerik thinks that's more efficient. 

    Or, what I think, telerik just wants all the answers locked up so that people have no choice but to keep paying for support, because with this product, man, do you really need a lot of support.

    Telerik, you win, but you loose at the same time.....

    I too am to the point that I'm not using Telerik for future applications unless I see a radical change to the way you offer support.  I simply am wasting too much time trying to get this stuff to work.  And I hate always needing to wait for the next day because there's no easy searchable place to go look for answers.

    If the choice is to use free library with free forum for help versus pay for a library that doesn't work very well and isn't easy to use AND not be able to find sufficient answers to problems openly and only get help through a ticket system, well, I am going to go back to the free library.

    I'd rather go back to spending my time developing my own helper wrapper for datatables.net than to spend time writing sample apps duplicating problems for telerik, just so that telerik can lock up the answer in my ticket.

    I want to see Telerik
    1) make a committment to treat this forum just like the ticket system so that I can STOP using the ticket system. Or just find a way to make tickets public. 
    2) Or if telerik won't do that because telerik doesn't want to provide that level of commitment for trial users, then instead, make a commercial forums that only paying customers can get into.
    3) Really really really improve their documentation.  The MVC needs a TON more samples.  There needs to be a 1to1 mapping for how to accomplish everything via the helper that can be accomplised via direct javascript.
    4) Better real world business examples.
  14. Pat
    Pat avatar
    58 posts
    Member since:
    Feb 2005

    Posted 11 Feb 2013 Link to this post

    BTW, my initial dropdown problem was solved and I think it was solved by upgrading to the latest internal build, but that was over a month ago.

  15. Nathan
    Nathan avatar
    39 posts
    Member since:
    Sep 2011

    Posted 11 Feb 2013 Link to this post

    Wait... are you saying the Window control is finally finished and actually works as advertised?
  16. Alon
    Alon avatar
    13 posts
    Member since:
    Jun 2012

    Posted 12 Feb 2013 Link to this post

    Thanks Pat! I could not have agreed more. I will make sure I am on the latest versions and double-check everything.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready