richsoe

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • in reply to: How to send additional POST data when deleting a row? #94252
    richsoe
    Participant

    Finally solve it. There was a mistake in the previous code, it should be like the following.

    $(“#del”).click(function(){

    in reply to: How to send additional POST data when deleting a row? #94251
    richsoe
    Participant

    Tim,

    I tried custom buttons, but it's a little different from what you've suggested. I can now delete and add but still having problem with it. Let me explain the situation in detail…

    I'm having a master grid that lists out all book lists. When I click on a book list, it will list out the users who subscribed that book list in another gridvew (detail gridview). I followed the example from the demo page, “Master Detail”, http://www.trirand.com/blog/jqgrid/jqgrid.html.

    What I want to do is to be able to add / delete users from the detail gridview. Literally, I can add / delete users of a book list. The problem now is that when I delete a user of a book list and then I click on another book list and try to delete the user, it doesn't delete that user. I don't see any problem with add.

    in reply to: How to send additional POST data when deleting a row? #94239
    richsoe
    Participant

    I can get the post data working but couldn't get the user_id from the grid

    jQuery(“#tags”).jqGrid({

    in reply to: Can’t Add, Edit, Delete records in Database #92797
    richsoe
    Participant

    This topic was created in the wrong thread. This is discontinued, and the discussion can be found here http://www.trirand.com/blog/?page_id=393/help/cant-add-edit-delete-records-in-database-1/.

    in reply to: Can’t Add, Edit, Delete records in Database #92796
    richsoe
    Participant

    Thanks guys. I finally got it working. There is also one good example (with codes) can be downloaded from this blog http://suddendevelopment.com/?p=38.

    The idea is the same as the sample codes you guys posted above. You will need to write your own CRUD codes. This is somehow different from the commercial version, because it's simpler, the library handles that.

    Anyways, the blog above should help you figure out how the CRUD works.

    Cheers!

    in reply to: Can’t Add, Edit, Delete records in Database #92761
    richsoe
    Participant

    I downloaded the demo files and followed the “navigator” sample but couldn't get add/edit/delete functioning properly. It only updates the gridview but not the DB. After page refresh, the data remains the same as original.

    I'm using the javascript version and this is somehow different from the commercial version. Should we write our own insert/update/delete manually? Or, this is being handled by the library itself? Or, is this possibly another issue I am facing?

    Kinda confused.

Viewing 6 replies - 1 through 6 (of 6 total)

Stay connected with us in your favorite flavor!