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

[Solved] Combo box wont receive focus in Edit Form

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 10 Dec 2009, 03:37 PM
I am using a POPUP edit form for my grid and I set focus to a control in the ItemCreated event. This works fine for textboxes but when I try to set focus to a RadComboBox it does not work.  I do not receive an error, focus is just never set.

Anyone know how to make this work or explain what I may be missing here?


Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated

        If (TypeOf e.Item Is GridEditFormItem AndAlso _
            e.Item.IsInEditMode) Then

            Dim cboOrg As Telerik.Web.UI.RadComboBox = CType(e.Item.FindControl("cboOrgId"), Telerik.Web.UI.RadComboBox)
            cboOrg.Focus()

        End If

end sub

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Dec 2009, 08:07 AM
Hi Robert,

I suggest you review the forum thread bellow, which elaborates on similar subject, for more information about how to achieve the desired functionality.
http://www.telerik.com/community/forums/aspnet-ajax/grid/loosing-focus-in-radgrid-combo-selected-index-change.aspx

Let me know if you need additional assistance.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or