Hi
I have code :
in code behind I have :
After I call :
findCompanyBox = (RadComboBox)GridAdvert.FindControl("findCompanyBox");
... I get > findCompanyBox = null
My question is . How can I find RadComboBox control in Girid FormTemplate ???
Regards
Krzysztof
I have code :
| <telerik:RadGrid ID="GridAdvert" runat="server" > |
| <MasterTableView DataKeyNames="id" > |
| <EditFormSettings EditFormType="Template" > |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| <FormTemplate> |
| <telerik:RadComboBox ID="findCompanyBox" runat="server" Skin="Inox" |
| AllowCustomText="True" ShowToggleImage="True" ShowMoreResultsBox="true" |
| EnableLoadOnDemand="True" EnableVirtualScrolling="true" |
| Width="200px" Height="200px" |
| ZIndex="10000" OnItemsRequested="findCompanyBox_ItemsRequested" > |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| <asp:Button ID="UpdateButton" OnClientClick="Save(this, event);" Text="Save" |
| runat="server" /> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
in code behind I have :
| protected void findCompanyBox_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e) |
| { |
| RadComboBox findCompanyBox = new RadComboBox(); |
| findCompanyBox = (RadComboBox)GridAdvert.FindControl("findCompanyBox"); |
| } |
After I call :
findCompanyBox = (RadComboBox)GridAdvert.FindControl("findCompanyBox");
... I get > findCompanyBox = null
My question is . How can I find RadComboBox control in Girid FormTemplate ???
Regards
Krzysztof