Hi
I have been trying for way too long but cannot get this to work. When I click on "edit" in the grid, the edit form pops down and I can update/delete as per usual etc.
However when I click on "edit", I want to put certain value in the RadAutoCompleteBox control. I have tried everything to get a reference to that control, IsInEditMode is always false true.
Please can anyone help? Thanks.
I have been trying for way too long but cannot get this to work. When I click on "edit" in the grid, the edit form pops down and I can update/delete as per usual etc.
However when I click on "edit", I want to put certain value in the RadAutoCompleteBox control. I have tried everything to get a reference to that control, IsInEditMode is always false true.
Please can anyone help? Thanks.
<telerik:RadGrid runat="server" ID="RadGrid1" DataSourceID="DS1" AutoGenerateColumns="false" OnItemCommand="RadGrid1_ItemCommand" OnEditCommand="RadGrid1_EditCommand" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"> <MasterTableView DataKeyNames="Id" DataSourceID="DS1" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" EditMode="EditForms"> <Columns> <telerik:GridBoundColumn HeaderText="Title" DataField="Title" /> <telerik:GridEditCommandColumn ButtonType="LinkButton" UniqueName="EditCommandColumn" /> <telerik:GridButtonColumn ConfirmText="Delete?" ConfirmDialogType="Classic" ConfirmTitle="Delete" ButtonType="LinkButton" CommandName="Delete" Text="Delete" /> </Columns> <EditFormSettings EditFormType="Template"> <FormTemplate> <table> <tr> <th>Search:</th> <td colspan="2"><telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox1" DataSourceID="DS2" Filter="StartsWith" DataTextField="Text" DataValueField="Value" InputType="Token" Width="100%" DropDownWidth="300px" DropDownHeight="200px" /></td> </tr> <tr> <td></td> <td> <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" /> <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> </td> <td></td> </tr> </table> </FormTemplate> </EditFormSettings> </MasterTableView></telerik:RadGrid>