or
if (e.Item is GridEditableItem && e.Item.IsInEditMode) { //for edit mode string selectedCommentIndex = ""; GridEditableItem item = e.Item as GridEditableItem; GridEditManager editMan = item.EditManager; GridDropDownListColumnEditor commenteditor = (GridDropDownListColumnEditor)(editMan.GetColumnEditor("Action")); GridDropDownColumn testing = e.Item.OwnerTableView.Columns.FindByUniqueName("Action") as GridDropDownColumn; var comments = (from c in db.Entered_Comments where c.type_id == 2 select c).ToList(); commenteditor.DataSource = comments; commenteditor.DataTextField = "description"; commenteditor.DataValueField = "comment_id"; commenteditor.DataBind(); commenteditor.Visible = true; commenteditor.ComboBoxControl.SelectedValue = selectedCommentIndex; commenteditor.DropDownListControl.SelectedValue = selectedCommentIndex; commenteditor.ComboBoxControl.AllowCustomText = true; commenteditor.ComboBoxControl.EmptyMessage = Resources.DataEntry_ResultEntryByTestPracticeResource.commenteditorComboBoxControlEmptyMessage; commenteditor.ComboBoxControl.Filter = RadComboBoxFilter.Contains; commenteditor.ComboBoxControl.CssClass = "rcbDropDown"; }An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|

<telerik:RadComboBox ID="rdVacantBu" Skin="Web20Ext" CheckBoxes="true"
CheckedItemsTexts="DisplayAllInInput" EnableCheckAllItemsCheckBox="true" EmptyMessage="Please Select" ForeColor="Black"
Localization-CheckAllString="All" Visible="false" Font-Italic="false" EnableEmbeddedSkins="false"
BackColor="White" runat="server"> </telerik:RadComboBox>