This is a migrated thread and some comments may be shown as answers.

TreeView with RadWindow

2 Answers 61 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Srikanth
Top achievements
Rank 1
Srikanth asked on 12 Jul 2010, 12:02 PM
Hi,

I want to open Radwindow,when i check the node in RadTreeview. for that i used node_check event().and Radwindow.visibleOnpageLoad=true;  RadWindow is opening with button_click,but not opening with Treeview.node_check event.

protected

 

void RadTreeView1_NodeCheck(object sender, RadTreeNodeEventArgs e)

 

{

 

RadTreeNode node = e.Node;

 

}

 

if (e.Node.Text == "Chief Complaints")

 

{

// not working
RadWindow1.VisibleOnPageLoad =

true;

 

}

 

}

 

protected

 

void b1_Click(object sender, EventArgs e)

 

{
//working

RadWindow1.VisibleOnPageLoad =

true;

 

}

 


Regards,
Srikanth.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Jul 2010, 01:15 PM
Hello Srikanth,


I am not sure about the issue since the code worked as expected for similar scenario in my end. Another suggestion to open window when checking the node, is by using client code. Give a try with following code and see whether it works fine.

Client code:
<script type="text/javascript">
    function OnClientNodeChecked(seder, args) {
 
        var item = args.get_node();
        if (item.get_text() == "A") {
            var oWnd = $find("<%=RadWindow1.ClientID%>");
            oWnd.show();
        }
    }
</script>

 
-Shinu.
0
Srikanth
Top achievements
Rank 1
answered on 13 Jul 2010, 04:35 AM
Hi Shinu,

Thanq very much.its working.

-Srikanth.
Tags
TreeView
Asked by
Srikanth
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Srikanth
Top achievements
Rank 1
Share this question
or