I have a 3-tier hierarchical grid that looks like this:
Areas
Attributes
Details
In the Attributes detail table, there are three columns: Description, Grade and Comments. I am performing in-place editing and have chosen to use a GridDropDownColumn tied to a LinqDataSource to bring back a simple english-value pair list that fills the Grade column. This is causing a problem on the client that apparently stops the RadAjaxManager from working. If I take the dropdown out and put a regular bound control back in, all is well. Other custom columns seem to work ok.
Another problem I've run into is that the Description field is supposed to be a read-only field and is marked as such. There are times when hitting Update or Cancel that the grid forgets it's a read-only field and presents a textbox instead.
A third problem I'm having is that when I perform an action that fills the grid I run the following code to turn on edit mode by default in the Attributes detail table:
| Protected Sub grdRatingDetail_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdRatingDetail.PreRender |
| For Each nestedViewItem As GridNestedViewItem In grdRatingDetail.MasterTableView.GetItems(GridItemType.NestedView) |
| For Each newnest As GridTableView In nestedViewItem.NestedTableViews |
| For Each row As GridDataItem In newnest.Items |
| row.Edit = True |
| Next |
| Next |
| Next |
| End Sub |
This code works great every time except the first time the grid is shown - in that case, all the rows' backgrounds are yellow indicating they're in edit mode, but no controls show and the Edit column still shows "Edit" instead of "Update/Cancel."
Rob