When I run this app and click on a node, a prompt asks me if I want to continue. If I click on 'Cancel', the POSTBACK stops as intended. If I click on 'OK', the POSTBACK continues as it should. However, once if I click on any nodes and I try cancelling the POSTBACK by clicking on 'Cancel', the POSTBACK continues!! Why? What am I doing wrong in this app?? Thanks for your help.
See app below:
<%
<!
<
<script type="text/javascript">
);
else
}
{
//true cancels postback
</script >
</ head >
<asp:ScriptManager ID="ScriptManager1" runat ="server"> </asp:ScriptManager >
</div >
div id="splitterDIV" style ="width: 100%; height: 750px;">
<ignav:UltraWebTree ID="tvwDevices" runat="server" DefaultImage="" HoverClass="" Indentation="5" Width ="140px">
NodeDropped="False" NodeExpanded="False" />
</Nodes >
</Template >
</iframe >
</Panes >
</ig:WebSplitter >
</div>
</form >
</
Hi mrjdavilla,
I know it has been a while since your post but in case you are still in need of assistance I would be glad to help.
I investigated your scenario but was unable to spot any issues with your implementation. Here is the slightly modified javascript function I used:
function tvwDevices_BeforeNodeSelectionChange() { var changesMade = 'true' ; if (changesMade == 'true' ) {var confirmLeave = window.confirm("You have unsaved changes. \n \n Are you sure you want to continue?"); } if (confirmLeave) { return false; } return true;}
Please do not hesitate to contact me if you have any questions.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support