Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 15, 2012 06:59 PM by RameshRajendran
Member
1 Points
1 Post
Dec 15, 2012 06:21 PM|LINK
I make Jquery popup on button click....and make asp tree hard code in popup body ....
Code:
<div id="divSimplePopup" class="popup" style="display: none; width: 450px;"> <div class="container"> <div class="headerpopup"> <asp:Label ID="lblPopupHeader" runat="server" CssClass="msg" Text="Select Fields" /> <asp:LinkButton ID="lbtnHideModal" runat="server" CssClass="close" OnClientClick="$('#divSimplePopup').hideModal(); return false;" /> </div> <div class="bodyAnd"> <div class="body" style="height: 250px; overflow: auto;"> <asp:TreeView ID="someTree" runat="server" ShowCheckBoxes="All" > <Nodes> <asp:TreeNode Text="Root"> <asp:TreeNode Text="Leaf" /> <asp:TreeNode Text="Branch"> <asp:TreeNode Text="Leaf" /> <asp:TreeNode Text="Leaf" /> </asp:TreeNode> </asp:TreeNode> <asp:TreeNode Text="Root"> <asp:TreeNode Text="Leaf" /> <asp:TreeNode Text="Leaf" /> <asp:TreeNode Text="Leaf" /> <asp:TreeNode Text="Leaf" /> </asp:TreeNode> </Nodes> </asp:TreeView> <%-- <div id="dialog-form" > <asp:TreeView ID="TreeViewPop" runat="server" ShowLines="True" ClientIDMode="Static" HoverNodeStyle-CssClass="treeview"> <Nodes> <asp:TreeNode Text="Root" Value="Root"> <asp:TreeNode ShowCheckBox="true" Text="Child1" Value="Child1"> <asp:TreeNode Text="Child1.1" Value="Child1.1" ShowCheckBox="true"/> <asp:TreeNode ShowCheckBox="true" Text="Child1.2" Value="Child1.2" /> </asp:TreeNode> <asp:TreeNode Text="Child2" Value="Child2"> <asp:TreeNode Text="Child2.1" Value="Child2.1" /> <asp:TreeNode Text="Child2.2" Value="Child2.2" /> </asp:TreeNode> </asp:TreeNode> </Nodes> </asp:TreeView> <div class="foot"> <div class="footerpopup"> <asp:Button ID="btnOK" runat="server" Text="OK" Width="40px" CssClass="add-but" OnClientClick="treeClick();" /> <asp:Button ID="btnCncl" runat="server" Text="Cancel" CssClass="add-but" OnClientClick="$('#divSimplePopup').hideModal(); return false;" /> </div> </div> </div>
Popup look like that.....
I want Check box value on codebehind and server side ....any idea how i got check box value on OK button???
Star
7983 Points
2099 Posts
Dec 15, 2012 06:59 PM|LINK
http://forums.asp.net/t/1511899.aspx/1
http://forums.asp.net/t/1489695.aspx/1
faizifaby
Member
1 Points
1 Post
how get checkbox treeview checked value
Dec 15, 2012 06:21 PM|LINK
I make Jquery popup on button click....and make asp tree hard code in popup body ....
Code:
<div id="divSimplePopup" class="popup" style="display: none; width: 450px;">
<div class="container">
<div class="headerpopup">
<asp:Label ID="lblPopupHeader" runat="server" CssClass="msg" Text="Select Fields" />
<asp:LinkButton ID="lbtnHideModal" runat="server" CssClass="close"
OnClientClick="$('#divSimplePopup').hideModal(); return false;" />
</div>
<div class="bodyAnd">
<div class="body" style="height: 250px; overflow: auto;">
<asp:TreeView ID="someTree" runat="server" ShowCheckBoxes="All" >
<Nodes>
<asp:TreeNode Text="Root">
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Branch">
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Root">
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
</asp:TreeNode>
</Nodes>
</asp:TreeView>
<%-- <div id="dialog-form" >
<asp:TreeView ID="TreeViewPop" runat="server" ShowLines="True"
ClientIDMode="Static" HoverNodeStyle-CssClass="treeview">
<Nodes>
<asp:TreeNode Text="Root" Value="Root">
<asp:TreeNode ShowCheckBox="true" Text="Child1" Value="Child1">
<asp:TreeNode Text="Child1.1" Value="Child1.1" ShowCheckBox="true"/>
<asp:TreeNode ShowCheckBox="true" Text="Child1.2" Value="Child1.2" />
</asp:TreeNode>
<asp:TreeNode Text="Child2" Value="Child2">
<asp:TreeNode Text="Child2.1" Value="Child2.1" />
<asp:TreeNode Text="Child2.2" Value="Child2.2" />
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
<div class="foot">
<div class="footerpopup">
<asp:Button ID="btnOK" runat="server" Text="OK" Width="40px" CssClass="add-but" OnClientClick="treeClick();" />
<asp:Button ID="btnCncl" runat="server" Text="Cancel" CssClass="add-but"
OnClientClick="$('#divSimplePopup').hideModal(); return false;" />
</div>
</div>
</div>
Popup look like that.....
I want Check box value on codebehind and server side ....any idea how i got check box value on OK button???
RameshRajend...
Star
7983 Points
2099 Posts
Re: how get checkbox treeview checked value
Dec 15, 2012 06:59 PM|LINK
http://forums.asp.net/t/1511899.aspx/1
http://forums.asp.net/t/1489695.aspx/1