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

Full class path as ASPX element tag

4 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
TonyG
Top achievements
Rank 1
TonyG asked on 06 Jan 2011, 02:50 AM
v2010.3.1215.35

I drop a RadAjaxManager on a form.  Then I use Configure Ajax Manager to set updated controls. The result looks like this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
    <telerik.web.ui.ajaxsetting ajaxcontrolid="RadAjaxPanel1">
      <updatedcontrols>
        <telerik.web.ui.ajaxupdatedcontrol controlid="RadAjaxPanel1">
        </telerik.web.ui.ajaxupdatedcontrol>
      </updatedcontrols>
    </telerik.web.ui.ajaxsetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

The expected resulting error is:

Warning   Generation of designer file failed: Telerik.Web.UI.AjaxSettingsCollection must have items of type 'Telerik.Web.UI.AjaxSetting'. 'telerik.web.ui.ajaxsetting' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

If I manually enter the markup, IntelliSense properly guides the creation of the tags to create the following:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

So what causes that?

I'm thinking this is just another variant on errors related to control references.  With every release of RadControls and every new project I find myself frustrated with questions like the following:

Do I need a reference in web.config like this?  :
<pages>
   <controls>
     <add tagPrefix="telerik" namespace="Telerik.Web.UI"
            assembly="Telerik.Web.UI" />
   </controls>
 </pages>
Does that need to have the version ID?

Is it better to GAC for development or deployment?

Why is it that if I don't include a registration like the following in every user control I get errors on nested controls?
<%@ Register TagPrefix="telerik"
             Assembly="Telerik.Web.UI, Version=2010.3.1215.35"
            Namespace="Telerik.Web.UI" %>

And how do I avoid issues if I'm working on a client project that's a year old but my current system has the latest RadControls in the toolbox?

These kinds of questions and related problems have apparently affected the developer experience for many people over the years.

I'm hoping Telerik can publish a comprehensive new doc that describes the known issues and resolutions related to assembly references, page control references, nested user controls, master pages with RadAjaxManagerProxy, etc.

Thanks for your time.

4 Answers, 1 is accepted

Sort by
0
TonyG
Top achievements
Rank 1
answered on 06 Jan 2011, 03:44 AM
More info. I just noticed that the ASPX is randomly getting markup injected.

I have this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true"
  UpdatePanelsRenderMode="Block">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="lblInfo"  />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

( The lblInfo label on RadAjaxPanel1 isn't updating when the panel is updated. I don't know if I'm missing something in ASP.NET itself  or if the situation described here is somehow preventing updates from occurring. )

After running in debug mode I open the markup and find this in there too:
<Telerik.Web.UI.AjaxSetting AjaxControlID="RadAjaxPanel1"><UpdatedControls>
<Telerik.Web.UI.AjaxUpdatedControl ControlID="lblInfo"></Telerik.Web.UI.AjaxUpdatedControl>
</UpdatedControls>
</Telerik.Web.UI.AjaxSetting>

Note now that the full class path is properly cased, though no more functional than its lower case counterpart.

Too weird.
0
Maria Ilieva
Telerik team
answered on 10 Jan 2011, 12:52 PM
Hi Tony,

Please note that adding RadAjaxPanel into the RadAjaxManager settings is not supported scenario. You should also not use the both controls for updating the same part of the page as this may lead to a lot of different issues. In your case as the lblinfo is wrapped in the RadAjaxPanel any Ajax request made from the panel will automatically updates the label.

Kind regards,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
TonyG
Top achievements
Rank 1
answered on 10 Jan 2011, 07:03 PM
I added the AjaxSettings because the panel didn't seem to be auto-updating. Am I missing a setting to force auto postback?

I'll accept that I should not be using AjaxSettings with RadPanel and will slap myself for missing that.

As to the other issues, can someone comment on the bad tags being generated and the auto-injection of tags?  That's mysterious, and more important to me than how the controls are ajaxified.

Thanks!
0
Maria Ilieva
Telerik team
answered on 13 Jan 2011, 03:15 PM
Hello Tony,

Regarding the bad tags, could you please make sure that the Telerik.Web.Design.dll is correctly registered and it is the correct corresponding version?

Greetings,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
TonyG
Top achievements
Rank 1
Answers by
TonyG
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or