This is a migrated thread and some comments may be shown as answers.

IIS6 and .Net 4

4 Answers 88 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dev LIPIX
Top achievements
Rank 1
Dev LIPIX asked on 06 Aug 2010, 06:32 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 11 Aug 2010, 09:03 AM
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
0
Dev LIPIX
Top achievements
Rank 1
answered on 11 Aug 2010, 04:09 PM
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





0
Accepted
Simon
Telerik team
answered on 16 Aug 2010, 01:05 PM
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
0
Dev LIPIX
Top achievements
Rank 1
answered on 16 Aug 2010, 03:12 PM
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

Tags
ComboBox
Asked by
Dev LIPIX
Top achievements
Rank 1
Answers by
Simon
Telerik team
Dev LIPIX
Top achievements
Rank 1
Share this question
or