or


How would I got about finding controls in the Insert Item template without using the Item Databound Event? I want to be able to find the controls within a radio button list _SelectedIndexChanged event. I was able to do this with controls inside the EditTemplate:
Protected Sub rblEdit_SelectedIndexChanged(sender As Object, e As EventArgs) For Each item As GridItem In RadGrid1.MasterTableView.Items If item.Edit Then Dim editItem As GridEditFormItem = DirectCast(RadGrid1.MasterTableView.GetItems(GridItemType.EditFormItem(item.ItemIndex), GridEditFormItem) Dim DDList As DropDownList = DirectCast(editItem.FindControl("ddlEdit"), DropDownList) Dim RBLEdit As RadioButtonList = DirectCast(editItem.FindControl("rblEdit"), RadioButtonList) Dim bTextBox As TextBox = DirectCast(editItem.FindControl("BTextbox"), TextBox) Dim LBLPercent As Label = DirectCast(editItem.FindControl("lblPercent"), Label) If RBLEdit.SelectedValue = "No" Then DDList.Visible = False LBLPercent.Visible = False bTextBox.ForeColor = Drawing.Color.DarkRed ElseIf RBLEdit.SelectedValue = "Yes" Then bTextBox.ForeColor = Drawing.Color.Green DDList.Visible = True LBLPercent.Visible = True End If End If Next End Sub
<telerik:RadButton runat="server" ID="btnAdvertiserSearch" AutoPostBack="false" Skin="Metro" OnClientClicked="openAlert"> <Icon PrimaryIconUrl="~/resources/images/ui-icon-search.png" PrimaryHoveredIconUrl="~/resources/images/ui-icon-search_hover.png" /> </telerik:RadButton>function openAlert(sender, args){ radalert('a', null, null, 'b', null);}

fld = "DEPARTMENT"
fldWidth = "55:T"
gbc = New GridBoundColumn gbc.DataField = fld rgEventQuery.MasterTableView.Columns.Add(gbc) gbc.UniqueName = fld gbc.SortExpression = fld gbc.HeaderButtonType = GridHeaderButtonType.LinkButton If fldWidth <> "" Then If fldWidth.Contains(":") Then If IsNumeric(fldWidth.Split(":")(0)) Then gbc.HeaderStyle.Width = fldWidth.Split(":")(0) End If Else If IsNumeric(fldWidth) Then gbc.HeaderStyle.Width = fldWidth.Split(":")(0) End If End IfEnd Ifgbc.AllowSorting = TruergEventQuery.MasterTableView.SortExpressions.AddSortExpression(gbc.SortExpression)