IIS6 and .Net 4

5 posts, 2 answers
  1. Dev LIPIX
    Dev LIPIX avatar
    12 posts
    Member since:
    Aug 2009

    Posted 06 Aug 2010 Link to this post

    Hi,

    We are trying to migrate our application from .Net3.5 to .net4.0

    After migrate the Comobox "Load On Demand" is not working correctly.  if i click on the comboxbox, our logs show that the call has been made to the DB and back but list of item does show up in the combobox. Its just shows "Loading...." and some times after a long time it does show up.

    The second problem is, I make another service call to the fill another comboxbox based on the item selected in the first combobox and this is done through client script. At this point i get a javascript error "Items is null or not object".

    Everything works fine in .Net 3.5.

    The application is hosted in IIS 6 32 bit and the version of telerik is "Q1 2010". 

    Thanks
    abraham
  2. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 11 Aug 2010 Link to this post

    Hi Dev LIPIX,

    Please inspect the request/response traffic on the page when the RadComboBox initiates the Items request with FireBug or FiddlerCap if you are using FireFox or IE respectively, and post here the logs/results.

    The second issue however can be caused by returning a null Items array from your web service. This issue is fixed in the latest version of Telerik.Web.UI. In any case you can resolve it on your side by instantiating the Items property of the returned Data object to an empty array.

    Sincerely yours,
    Simon
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Dev LIPIX
    Dev LIPIX avatar
    12 posts
    Member since:
    Aug 2009

    Posted 11 Aug 2010 Link to this post

    Thanks...

    I installed the newest version of Telerik and that fixed the problem.

    But I have another problem related to Combobox.

    Once the user uses the Type ahead feature of combobox, it list the items. based on the type ahead words.
    Now when the user selects an item from the list, we add this value to a different control and we call clearSelection() and clearItems() method in Javascript.

    But after that the combobox shows the empty message("Type here") as defined but the cursor points to the end of text of empty message and it does not clear when user tries to type again.

    Is there a solution for this.

    Thanks
    ab





  4. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 16 Aug 2010 Link to this post

    Hello Dev LIPIX,

    This happens because the clearSelection method applies the empty message but the focus remains in the input.

    You can resolve this if you 'blur' the RadComboBox after calling clearSelection, e.g.
    function onSelectedIndexChanged(sender, eventArgs) {
        sender.clearItems();
        sender.clearSelection();
     
        var e = eventArgs.get_domEvent();
     
        setTimeout(function () {
            sender.get_inputDomElement().blur();
            sender._focused = false;
        }, 0);
    }

    I hope this helps.

    Kind regards,
    Simon
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Dev LIPIX
    Dev LIPIX avatar
    12 posts
    Member since:
    Aug 2009

    Posted 16 Aug 2010 Link to this post

    Thanks

    It worked but not to the extend we wanted it to work. The problem was in IE after call the blur the focus was not set back to the control. We wanted the focus to be set back to the combobox so that the user could start typing again.

    You solution made us to look into the dom object and we found a method "_onFocus"  which worked fine for us. So we changed the code to look like this
    setTimeout(function () {
        sender._focused = false;
        sender._onFocus();
         
    }, 0);


    Thanks
    ab

Back to Top