LoadonDemand Problem RadCombobox with RadNumericTextbox

2 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 15 Aug 2012 Link to this post


    I am using RadNumeric Textbox inside Radcombobox and loading the products on Radcombobox using LoadonDemand. However, when I try to open the radcombobox I get the following error but this error doesn't occur if I bind my radcombobox without using loadondemand.

    Is this a problem because I am using load on demand ?

    Script control 'rntbInterval' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

    Parameter name: scriptControl

    <telerik:RadComboBox ID="rcbProducts" runat="server" Width="300px" Height="300px" Font-Names="Arial" Font-Size="XX-Small"  
                                                Skin="Windows7" EmptyMessage="- please select a product -" HighlightTemplatedItems="true"
                                                EnableLoadOnDemand="True" EnableVirtualScrolling="True" ShowMoreResultsBox="True"
                                                                <asp:Label ID="lblProductName" runat="server"></asp:Label>
    <telerik:RadNumericTextBox ID="rntbInterval" Font-Names="Arial" Font-Size="XX-Small"
                                                            ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true" IncrementSettings-InterceptMouseWheel="true"
                                                            runat="server" Type="Number" Width="50px" NumberFormat-DecimalDigits="0" IncrementSettings-Step="1"></telerik:RadNumericTextBox>
                                                        <asp:Button ID="btnSave" Text="Save" OnClick="btnSave_Click" runat="server" /></td>

    Protected Sub rcbProduct_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles rcbProducts.ItemsRequested
            Dim sFilter As String = e.Text
            Dim data As DataTable = GetProducts(sFilter)
            Dim itemOffset As Integer = e.NumberOfItems
            Dim endOffset As Integer = Math.Min(itemOffset + ITEMS_PER_REQUEST, data.Rows.Count)
            e.EndOfItems = endOffset = data.Rows.Count
            'rcbProducts.DataTextField = "JobName"
            'rcbProducts.DataValueField = "LogisticProductKey"
            For i As Int32 = itemOffset To endOffset - 1
                Dim rcb As New RadComboBoxItem
                rcb.Text = data.Rows(i)("ProductCodeAndDesc").ToString()
                rcb.Value = data.Rows(i)("LogisticProductKey").ToString()
                Dim lblProductName As Label = rcb.FindControl("lblProductName")
                lblProductName.Text = data.Rows(i)("ProductCodeAndDesc").ToString()
            e.Message = GetStatusMessage(endOffset, data.Rows.Count)
        End Sub
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 Aug 2012 Link to this post

    Hi Muhammed,

    Try setting the RegisterWithScriptManager property of the RadNumericTextbox to false.

    <telerik:RadNumericTextBox ID="rntbInterval" Font-Names="Arial" Font-Size="XX-Small" ShowSpinButtons="true"
               IncrementSettings-InterceptArrowKeys="true" IncrementSettings-InterceptMouseWheel="true" runat="server"
               Type="Number" Width="50px" NumberFormat-DecimalDigits="0" IncrementSettings-Step="1"
               RegisterWithScriptManager="false" >

    Hope this helps.

Back to Top