or
| <telerik:GridTemplateColumn HeaderText="Cage Code" SortExpression="CageCode" UniqueName="CageCodeTemplate" > |
| <ItemTemplate> |
| <asp:Label runat="server" ID="lblCageCode" Text='<%# Eval("CageCode") %>' /> |
| </ItemTemplate> |
| <EditItemTemplate > |
| <asp:TextBox runat="server" CausesValidation="true" ID="tbCageCode" Text='<%# Bind("CageCode") %>' /> |
| <span style="color: Red">*</span><asp:RequiredFieldValidator ID="rvalCageCode" ControlToValidate="tbCageCode" |
| ErrorMessage="Required Field!" runat="server"></asp:RequiredFieldValidator> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| protected void RadGridCageCodeLookup_ItemCommand(object source, GridCommandEventArgs e) |
| { |
| //objectDatasource is stateless, must change the selectMethod to manufacturer code and add parameter of static mfg id. |
| if (e.CommandName.Contains("Insert")) |
| { |
| //FOR INSERTS, make cage code writable since the user is adding a CAGE code |
| //FOR insert, hide manufacturer id b/c they are in the manufacturer entity-can not change |
| ((GridBoundColumn)RadGridCageCode.Columns.FindByUniqueName("ManufacturerID")).ReadOnly = true; |
| ((GridBoundColumn)RadGridCageCode.Columns.FindByUniqueName("ManufacturerID")).Visible = false; |
| } |
| } |
RadTreeView1_ContextMenuItemClick event to perform the operations on the server.
Is it possible to get the content menu items to Ajax?
Cheers
Matt

