Hello,
I'm using a RadListView inside an UpdatePanel. When I click on a LinkButton and, from the code behind, it executes:
this.lstSkills.InsertItemPosition = RadListViewInsertItemPosition.LastItem;
this.btnShowSkillInsert.Visible = false;
function
Confirm(PageChange)
{
var
PageChangeValue=document.getElementById(PageChange).value;
if(PageChangeValue == 1)
{
if(confirm("WARNING: Any unsaved changes will be lost. Do you want to save your work? \n Press OK to stop and save (You must use the save button). \n Press Cancel to continue without saving.")== false)
{
document.getElementById(PageChange).value=0;
}
else
{
return false;
}
}
}
if the confirmation is ok then only it will go to next page.
but when i click on the next page, it fires the clientside script, opens the confirmation dialog box and didnt wait for the confirmation. automatically it goes to the next page.
both clientside and serverside pageindexchanged event fired simultanouesly.
before that in radgrid for asp.net control , this functionality works fine.
how to solve this issue.
thanks,
<img alt="" style="width: 280px; margin-bottom: 8px; float: right; height: 249px; margin-left: 8px;" src="/dbfiles/images/image1.jpg" />