Hi everyone,
I want to create a popup for a button.When I click the button the popup will open having some checkbox which is created in server dynamically.I am able to create the checkbox and popup.But the popup is visible in between i click the left click and click release.Can any one tell me how i will show the popup after the click event.
with regards
bibhu.
I want to create a popup for a button.When I click the button the popup will open having some checkbox which is created in server dynamically.I am able to create the checkbox and popup.But the popup is visible in between i click the left click and click release.Can any one tell me how i will show the popup after the click event.
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { create_Items(); } } protected void RadButton1_Click(object sender, EventArgs e) { create_Items(); } private void create_Items() { panel1.Controls.Clear(); int i; for (i = 0; i < 5; i++) { CheckBox cb = new CheckBox(); cb.ID = "cb" + i.ToString(); cb.Text = "Checkbox" + i.ToString(); popcontrol1.TargetControlID = "RadButton1"; popcontrol1.PopupControlID = "panel1"; popcontrol1.Position = AjaxControlToolkit.PopupControlPopupPosition.Bottom; panel1.Controls.Add(cb); } }<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID = "ScriptManager1" runat = "server"></asp:ScriptManager> <div> </div> <telerik:RadButton ID="RadButton1" runat="server" onclick="RadButton1_Click" Text="RadButton"> </telerik:RadButton> <cc1:PopupControlExtender ID="popcontrol1" runat="server" TargetControlID="RadButton1" PopupControlID="panel1" Position="Bottom" /> <asp:Panel ID="panel1" runat="server" BackColor="#ccffff" Height="182px" Width="211px"> </asp:Panel> <telerik:RadButton ID="RadButton3" runat="server" Text="RadButton"> </telerik:RadButton> </form></body></html>with regards
bibhu.