The replacement for the retiring ultrawebtoolbar is the webdatamenu but I can't find any samples or examples or any information about how to achieve this. I have a very simple toolbar with two dropdownlists and a button. Do you have any suggestions as to how I can create a menu with these controls embedded and be able to access the controls in the code behind. I tried creating templates but then couldn't see them in the code behind. I don't know whether the templates need to be created using a class (as in the webdatagrid templated columns) or whether to access the control using findcontrol (as in the webexplorer). Is there any migration documentation to indicate how this can be achieved?
Thanks
Andy
BTW I love the term 'sunset policy'...
I finally got my answer here: http://forums.infragistics.com/forums/p/69142/350694.aspx#350694
I also am having trouble trying to use WebDataMenu as a toolbar. I just want a simple toolbar with ONLY image buttons (with no text on the buttons). Anyone have a sample of how to do this? It was possible with the old WebToolbar. This should be simple, correct? What am I doing wrong? Please help!!!
I can not even find an example of how to do this on the on the Samples page (http://samples.infragistics.com/aspnet/Samples/WebDataMenu/Display/VerticalMenu/Default.aspx?cn=data-menu&sid=1b19ba76-eb5b-41e7-b757-716fdb9fbc35).
Is this the same issue as IntegraXP, that is the dropdownlist cannot get focus? This is a critical issue for us now as the toolbars are used in many pages and there is no alternative but to use the webdatamenu..
Sorry lost some fomatting on last post:
I define the dropdownlist controls in the aspx.
<ig:WebDataMenu ID="WebDataMenu1" runat="server" StyleSetName="Claymation" Width="100%" EnableScrolling="False"> <GroupSettings Orientation="Horizontal" /> <Items> <ig:DataMenuItem TemplateId="tmpContact" Text="Root Item"> </ig:DataMenuItem> <ig:DataMenuItem Key="Refresh" ImageUrl="./images/webtoolbar/NewRisk.gif" Text="Refresh"> </ig:DataMenuItem> </Items> <Templates> <ig:ItemTemplate ID="itmpContact" runat="server" TemplateID="tmpContact"> <Template> <asp:DropDownList ID="ddlContact" runat="server" CssClass="dropdownlist" DataTextField="Name" DataValueField="Code" Width="400px"> </asp:DropDownList> </Template> </ig:ItemTemplate> </Templates> </ig:WebDataMenu>
I use code from your example above to get the reference to the templated control. I have tried this in Page_Load and Page_InitComplete. The reference is set and I add a handler to the control.
ddlContact = CType(GetTemplatedControl(WebDataMenu1, "ddlContact"), DropDownList) AddHandler ddlContact.SelectedIndexChanged, AddressOf ddlContact_SelectedIndexChanged
But when I click on the dropdownlist it drops down and immediately disappears. The server event WebDataMenu1_ItemClick is fired and it never fires the ddlContact_SelectedIndexChanged handler.
Any idea why this is happening? If I switch off the autopostback on the menu it still happens.Any examples of how to implement dropdownlists as templates inside a webdatamenu?
But when I click on the dropdownlist it drops down and immediately disappears. The server event
WebDataMenu1_ItemClick
is fired and it never fires the ddlContact_SelectedIndexChanged handler.
Any idea why this is happening? If I switch off the autopostback on the menu it still happens.
Any examples of how to implement dropdownlists as templates inside a webdatamenu?