PDA

View Full Version : How to increase tree node reload time



sachin sachdeva
29 Aug 2011, 1:56 AM
Hi...All

I am unsing a tree and my problem is when ever i try to check in new file into tree node it checks in succesfully into server but when i execute reload() it reloads for 1 or 2 sec then go away..... I want to increase its reloading time or wants to reload it until it gets response from server side.....
My code is


<%
if (result != null)
{
%>

<script type="text/javascript">

Ext.Msg.show({
title:'Check-in Group',
msg: "Group successfully Created.",
buttons: Ext.Msg.OK,
modal:true,
fn: function(but, text){
//parent.tree.root.reload();

//parent.tree.selModel.selNode.parentNode.reload();
parent.tree.selModel.selNode.reload(); //---Node is refreshing but for small ineterval of time...thus data is not displayed....but when we reload page again data is there
parent.mainTabPanel.remove(parent.assetwindow);

},
icon: Ext.MessageBox.INFO
});


</script>
<script type="text/javascript">

</script>
<%
}
else
{
%>



Please help me as soon as possible...