Hi there,
I've got a WebDataMenu setup (moving over from ultrawebtoolbar), and I'm having some issues accessing a control (a DropDown List) in my template. My template is defined like this
<ig:ItemTemplate ID="tpDropDown" runat="server" TemplateID="tpDropDown"> <Template> <asp:DropDownList AutoPostBack="true" ID="ddlTBAddNew" runat="server"> <asp:ListItem Value="" Text="Actions.." /> </asp:DropDownList> </Template> </ig:ItemTemplate>
But No matter what I try server-side I cannot acess that ddlTBAddNew
I can get as far as the Template control using mymenu.Templates[0].Template but within that there's no .Controls collection, no .FindControl or any way I can see to access my DropDownList. So how do we access controls in a template please? Calling .FindControl at the Templates[0] level doesn't return anything at all. So I'm at a loss as to what to try next?
If you expect people to upgrade to this control from ultrawebtoolbar, the least you could do is provide some examples & documentation on how to do so!
Thanks in advance
hi bartond31,
I have have created a private support case for you for addressing this issue. Please see your private support case for future updates.
Thank you!
I'm just trying your suggestion out today, one other thing I have noticed though, is if I put a textbox in a template such as this
<ig:DataMenuItem Key="itmQuickFind" Text=" " TemplateId="tmpSearch" ToolTip="Search" Value="*User" CssClass="toolbarText" />
and defined like this
<ig:ItemTemplate ID="tmpSearch" runat="server" TemplateID="tmpSearch"> <Template> <asp:TextBox ID="txtQuickFind" CssClass="toolbarTextBox" runat="server" AutoPostBack="True" /> </Template> </ig:ItemTemplate>
The textbox appears fine on the menu, but it does not seem to keep focus at all, so I can't actually type anything into it?
Hi bartond31,
Please let me know if you need any additional help on this thread.
Thanks!
Take a look at the following post: http://es.infragistics.com/community/forums/t/64134.aspx?PageIndex=1
The referenced thread goes through a few posts. The "answer" id provided by Micheal with the post on Jan 13. Also provided is an example attached to the thread.
Please let me know if you need any additional assistance.
This is an initial update to let you know that I am looking into your inquiry. I will follow-up with you on this issue, on or before Monday.