TreeView asp.net 2.0
-
hi all I developing app use Treeview on VS 2005 I add Node have checkbox on treeview I want when client check to checkbox will postback to server but in this tree view when check dont post back if postback have to click to adjacent link How do i do when check on checkbox will postback to server
-
hi all I developing app use Treeview on VS 2005 I add Node have checkbox on treeview I want when client check to checkbox will postback to server but in this tree view when check dont post back if postback have to click to adjacent link How do i do when check on checkbox will postback to server
extend the treeview class to add onclick attribute to the check box. there is one similar example in codeproject where a guy added a onclick attribute to datarowitem in grid view. http://www.codeproject.com/useritems/GridviewExtender.asp[^] hope that will help regards Saud
saud
-
hi all I developing app use Treeview on VS 2005 I add Node have checkbox on treeview I want when client check to checkbox will postback to server but in this tree view when check dont post back if postback have to click to adjacent link How do i do when check on checkbox will postback to server
Hi, When you are adding a checkbox to a treeview control that checkbox's autopostback property must be set as true.:)
Kiran Kumar.CH (MCP)
-
Hi, When you are adding a checkbox to a treeview control that checkbox's autopostback property must be set as true.:)
Kiran Kumar.CH (MCP)
thanks but i add attribute of treeview TreeNode node = new TreeNode(); node.Text = "demo" node.Value = "demo" node.ShowCheckBox = true; TreeView.Nodes.Add(node); "node.ShowCheckBox" dont checkbox to tree view I add event TreeView_TreeNodeCheckChanged but it only run when i click to link! I want click to checkbox postback to server