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

Client-Methods are not available

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 12 Sep 2011, 01:56 PM

I’m new to the RadControls for VS2010 and have been having a problem trying to get the client-side methods to exist. I upgraded an existing project through the Upgrade Wizard. I placed four copies of the ComboBox on the ASP page utilizing AJAX. The first three ComboBoxes are setup for cascading functionality. The first is populated through an Object Data Source. The next two are populated server side and this is working. The forth control is set up to be populated client side based on the selection of the first controls. The object exists in the client side script. The methods in the documentation are undefined. What am I missing in order to use the client-side methods? I don't think I need the Telerik.QuickStart but I gave it a try.


<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

 

       <telerik:RadScriptManager ID="RadScriptManager" runat="server">

              </telerik:RadScriptManager>

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

       </telerik:RadAjaxManager>
.
.
.

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="810px">

 

 

<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="700px" AutoPostBack="False" Enabled="False"

       HighlightTemplatedItems="true" Skin="WebBlue" CausesValidation="False"

       DataTextField="ConfigID" DataValueField="ConfigID"

       EnableItemBindingExpressions="False">

       <HeaderTemplate>

              <table style="width: 100%; text-align: left;">

                     <tr>

                           <td style="width: 100px;">ConfigID</td>

                           <td style="width: 200px;">Title</td>

                           <td style="width: 300px;">Description</td>

                           <td style="width: 100px;">Date</td>

                           </tr>

                     </table>

              </HeaderTemplate>

       <ItemTemplate>

              <table style="width: 100%; text-align: left;">

                     <tr>

                           <td style="width: 100px;">ConfigID</td>

                           <td style="width: 200px;">Title</td>

                           <td style="width: 300px;">Description</td>

                           <td style="width: 100px;">Date</td>

                           </tr>

                     </table>

              </ItemTemplate>

    </telerik:RadComboBox>

    </telerik:RadAjaxPanel>

2 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 14 Sep 2011, 01:59 PM
Hello Paul,

Please try to provide me with the implementation where you are getting reference to the client-side object of the RadComboBox. From what you have explained as a behavior it seems to me that you are not properly referencing it.

Best wishes,
Dimitar Terziev
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
Paul
Top achievements
Rank 1
answered on 14 Sep 2011, 02:29 PM
I made a change to the way I got the reference to the RadComboBox and I can now utilize the client-side methods. I was using:

_rcb1 = document.getElementById("<%= RadComboBox1.ClientID %>");

This gave me a reference to an object. I then changed it to:

_cboConfig = $find(

 

"<%= RadComboBox1.ClientID %>");

 


in the pageLoad and got the correct reference to the object.

 

Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Paul
Top achievements
Rank 1
Share this question
or