Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript jQuery .NET4 , +
Scenario is :
The grid view has paging enabled in it. When a user is making any change in the grid view rows. A popup should come on PageIndexChanging event to save the made changes or not. If user clicks on yes then a server side method should be called and moved to next page else simply moves to next page.
 
I am trying to do this using ModalDialogPopup. And able to create using
<pre lang="cs">function SubmitData() {
    var _html = document.createElement('div');
    _html.innerHTML = $("#divConfirmationModal").html();
 
    var options = {
        title: "Confirm Data Submission",
        width: 400,
        height: 200,
        showClose: false,
        allowMaximize: false,
        autoSize: false,
        html: _html
    };
    SP.UI.ModalDialog.showModalDialog(options);
}
 


 
but not able to bind the server side method in
 
function SubmitDataCallback(dialogResult) {
    if (dialogResult === SP.UI.DialogResult.OK) {
        //SaveToSPList();
    }
 
    if (dialogResult === SP.UI.DialogResult.cancel) {
        //MoveToNextPage();
    }
}
 
I don't know how to do that.
Posted 20-Nov-12 8:05am
Edited 20-Nov-12 20:17pm
v3
Comments
richcb at 20-Nov-12 16:04pm
   
That is not a question. You will need to post the code you have tried and ask a specific question as to where you are stuck for people to be able to help you.
aspnet_regiis -i at 20-Nov-12 22:56pm
   
Nice scenario .. What is the ETA ?
Krunal R at 21-Nov-12 1:42am
   
Hey try to update the data here,
if (dialogResult == SP.UI.DialogResult.OK) {
//SaveToSPList();
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,963
1 OriginalGriff 6,726
2 Peter Leow 4,232
3 Zoltán Zörgő 3,769
4 Richard MacCutchan 2,558


Advertise | Privacy | Mobile
Web02 | 2.8.150123.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100