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

Select from combobox in add but disable in edit

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 09 Jan 2013, 03:15 PM

1 Answer, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 09 Jan 2013, 07:08 PM
very descriptive
if I had to guess, I would recommend adding a routine to the ItemDataBound event of the RadGrid
if the e.Item casts to IGridInsertItem then it is an Insert
you have already checked it is in edit mode
the code below will vary depending on the EditMode of the Grid

Protected Sub rgAddItems_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgAddItems.ItemDataBound
 
        If e.Item.IsInEditMode Then
        Else
            Exit Sub
        End If
        If TypeOf e.Item Is GridEditableItem Then
        Else
            Exit Sub
        End If
        If TypeOf e.Item Is IGridInsertItem Then
        Else
        End If
Tags
Grid
Asked by
Travis
Top achievements
Rank 1
Answers by
Elliott
Top achievements
Rank 2
Share this question
or