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

asynchronously dock containing radcombobox

3 Answers 53 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 16 Mar 2011, 02:15 PM

Hello,

I have a page with a radcombobox in an asynchronous build raddock . This seems to work well, but if the page is ready there is no functionality to open the radcomboox, it seems that the javascript genareted for the control isn't there or does not work with the script manager in the page.

I've used the example of http://www.telerik.com/community/forums/aspnet-ajax/docking/load-docks-asynchronously.aspx#812207 

with the controls' RegisterWithScriptManager property set to "False" because the page itself has already a javascriptmanager.

Is there a way to get this working?

Thanks for your assistance,
Dennis.

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 17 Mar 2011, 01:23 PM
Hello Dennis,

You should try using our RadXmlHttpPanel control for this purpose, because it has he ability of evaluating the script files loaded by the RadControls. The skins and styles also get applied to the respective controls.
Basically, there should be XmlHttpPanel control in each dock, and all the panels could be configured to use one and the same WebService or Method. The following article from our online documentation shows how to configure the XmlHttpPanel to work with WebService: http://www.telerik.com/help/aspnet-ajax/radxmlhttppanel-webservice-configuration.html. The RadXmlHttpPanel class has a static method called RenderView that can be used to load user controls. It works in a similar way as the code in the project from the forum thread.

Kind regards,
Pero
the Telerik team
0
Dennis
Top achievements
Rank 1
answered on 18 Mar 2011, 03:21 PM

Pero,

Thanks for the solution, it's working fine now for the radcombobox!

But i've got a second problem when adding standard button and checkbox controls to the usercontrol thats loading asynchronously.

I get an error with the message that these controls has to be inside the form-element with a runat="server" property. 

The issue is there is no form element in the page created by the RenderView method and there seems to be no controls like radbutton or radcheckbox to use a RegisterWithScriptManager property.

Should I try to add the form element by own code and remove it later from the output, or do you have an easier solution?

Thanks for your assistance,
Dennis.

0
Pero
Telerik team
answered on 22 Mar 2011, 02:39 PM
Hi Dennis,

Which version of our controls suite are you using? In Q3 2010 (version 2010.3 1109) we introduced a RadButton control in our suite. Please take a look at the online demos, to get a closer look of its features: http://demos.telerik.com/aspnet-ajax/button/examples/default/defaultcs.aspx.

Best wishes,
Pero
the Telerik team
Tags
Dock
Asked by
Dennis
Top achievements
Rank 1
Answers by
Pero
Telerik team
Dennis
Top achievements
Rank 1
Share this question
or