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

ComboBox only fires OnClientItemsRequesting

7 Answers 129 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 25 Oct 2012, 03:41 PM
Runtime Version: 4.0.30319
Web UI Version: 2012.3.1016.40

Hi,

I have a problem in production where only the OnClientItemsRequesting event is fired. The server-side OnItemsRequested is not firing, and as a result (I'm guessing) OnClientItemsRequested does not fire.

This problem only occurs in production, and only on the start page (I will describe the whole scenario below). On my development machine everything works like a charm all the time, but on the production server, not so much.

So what happens, really? Well, a user signs in via the login page and arrives at a start page. This start page has a combo box on it so that she can quickly find items in the database. This combo box is wrapped in a user control (a widget if you will) which is also used on other pages (no special attributes/settings used - same on all pages).

The home page (or start page) is wrapped in a master page, so the tree looks like this:
Master Page > Page > User Control > RadComboBox

There is some Cufón action going on on the page, but I have disabled it to make sure it is not interfering. The site itself is browsed over SSL, but the staging application which runs on the same server is not using SSL, same problem there.

Now here's the kicker; if you browse another page with the exact same user control/widget all methods (client and server) are fired and the result pops up. Now you can go back to the start page and it works there as well.

I've finally been able to see consitency in the behavior, and it also appears to be consistent over all browsers and on both Windows and MacOS X. I can exit the browser and then start it up and sign in and the problem is there. After this I browse and search on another page, and then go back to start as described above and the problem is gone.

I use the combo box for multiple search scenarios, and the only place it doesn't work as expected is right after signing in to the start page.

I have debuged the page over and over, but nothing shows up in either browser. It just doesn't appear to be any javascript errors on the page. The fact that it works in my development environment and on other pages using the same master page just make things that much weirder. The page itself is very simple, most of the content comes from the master page. The start page consists of (besides the master page content) an image and four custom user controls - one being the one with the combo box. I have removed everything except for the combo box to make sure neither of them interfere in some way.

Any ideas of what might cause this odd behavior?

Here's the code I am using for the combo box in the user control (I am capturing the client side events to see which fire):

<telerik:RadComboBox ID="SearchComboBox" Runat="server" AllowCustomText="True"
    EnableLoadOnDemand="True" DataTextField="Text" DataValueField="Id"
    Width="100%" onitemsrequested="SearchComboBox_ItemsRequested"
    OnClientItemsRequesting="ItemsRequesting" OnClientItemsRequested="ItemsRequested"
     OnClientItemsRequestFailed="ItemRequestFailure">
</telerik:RadComboBox>

There are also two ImageButtons in the same user control. The rest is just HTML.

Kind regards,
Tobias

7 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 30 Oct 2012, 11:53 AM
Hi Tobias,

I assume that the RadCompression module is enabled in your project. In that case, the problem probably origins from one known issue - if you are using .NET 4.0, event handlers might not be raised in a default document in IIS 7 or IIS 7.5 Integrated Mode. The solution for this problem is described in details in our help article here.

Regards,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tobias
Top achievements
Rank 1
answered on 30 Oct 2012, 12:35 PM
Hi Nencho,
 
That seems to have done the trick! So far I've only made the change on the staging server, but it now I can search right away after logging in. I will make the same changes to the production server when it is safe to do so, and that should take care of this problem.

Thank you!

Kind regards,
Tobias
0
Nencho
Telerik team
answered on 01 Nov 2012, 10:59 AM
Hi Tobias,

Please take your time and let me know if you still have any issue at your production server.


Greetings,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tobias
Top achievements
Rank 1
answered on 01 Nov 2012, 11:07 AM
Hi Nencho,

I applied the changes to the production server and it works like a charm now. Thanks again, take care!

Kind regards,
Tobias
0
Nencho
Telerik team
answered on 01 Nov 2012, 04:11 PM
Hi Tobias,

I am glad that the issue you were facing is now resolved.

Wish you a great day!


Greetings,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
RBarnes
Top achievements
Rank 1
answered on 08 Nov 2012, 05:12 PM
I'm seeing the same issue, but I've not been able to resolve it.
I've added preCondition="managerHandler" to Radcompression module in web.config, no change.

I have load on demand and virtual scrolling on a combo, and virtual scrolling doesn't work.  However I can click the more box on the bottom on the combo and that triggers the ItemsRequested.
0
Nencho
Telerik team
answered on 13 Nov 2012, 11:45 AM
Hello Roger,

Could you please open a support ticket and try to provide a runnable sample which we could debug and test locally in order to troubleshoot the experienced issue?

Kind regards,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Tobias
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Tobias
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Share this question
or