TypeError: a.get_postBackElement(...) is undefined

3 posts, 0 answers
  1. Ryan Grossman
    Ryan Grossman avatar
    12 posts
    Member since:
    Nov 2009

    Posted 04 May 2015 Link to this post

    I have the AjaxManager on my master page. On the content page the submit buttons on master and content are working fine.

            Dim RadAjaxManager1 As RadAjaxManager = RadAjaxManager.GetCurrent(Page)
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnSave, pnlError)
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnSave, pnlSuccess)

            Dim btnBottom As RadButton = CType(Me.Master.FindControl("btnBottom"), RadButton)
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnBottom, pnlError)
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnBottom, pnlSuccess)

    When I add the below condition to have one combobox control another I get the error: TypeError: a.get_postBackElement(...) is undefined

         RadAjaxManager1.AjaxSettings.AddAjaxSetting(rcbDivision, rcbApplicationCategory)


    Works fine without the Ajaxmanagersetting.

    Protected Sub Division_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
            rcbApplicationCategory.Text = ""
            If sender.SelectedValue = "PC" Then
            ElseIf sender.SelectedValue = "IN" Then
                rcbApplicationCategory.Enabled = False
            End If
        End Sub

  2. Ryan Grossman
    Ryan Grossman avatar
    12 posts
    Member since:
    Nov 2009

    Posted 04 May 2015 Link to this post

    Setting ClientIDMode="Static" is causing this issue. I have it set like this so I can target focus to the controls easier with labels and javascript css color changes. IS there anyway to have ClientIDMode="Static" on for the controls involved in the situation?
  3. DevCraft R3 2016 release webinar banner
  4. Eyup
    Eyup avatar
    2941 posts

    Posted 06 May 2015 Link to this post

    Hi Ryan,

    Please note that Static IDs are not supported with Telerik controls and therefore you should remove the
    ClientIDMode property. Instead, you can try to use findControl and findElement methods if you need to access any control on the client-side:

    I am sending a sample RadGrid web site to demonstrate a practical implementation.

    Hope this helps.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top