paladin0

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Author
    Replies
  • in reply to: Inline edit with only select boxes #125565
    paladin0
    Participant

    great. I wasnt sure if i could call save and edit row one after the other. But it works and gives me the result i wanted

    in reply to: Inline edit with only select boxes #125551
    paladin0
    Participant

    above is the code for the grid i made.

    So there is no way i can just call saverow and force the grid to save using the edit url? and a change event doesnt seem to work i did give that a try

    in reply to: Inline edit with only select boxes #125550
    paladin0
    Participant
    in reply to: questions on cell editing #125531
    paladin0
    Participant

    Thanks for that will.

    I have got the solution that i want mostly working. However i have run into an interesting problem.

    I have my grid setup with cell edit. and when i select the row it expands a sub row that I then set the HTML for. when i do this it works as expected.

    If i click into cells in the same row it works as expected.

    If i click into cells in the row below it works as expected.

    If i click into any row below the current editable cells row it works fine.

    But if i click into a row above the current editable cells row it tries to post data to the server when nothing has changed.

    and if i look at the ID being posted it is full of the HTML i am setting for the subrow.

    however when i click up in the grid to a row above it posts my html as the ID for the row.

    I really am stumped.

    I have tried commenting out all of my code for the html and inputs. I still get the error.

    <div id="jqGridDetails_3" class="tablediv"></div>

    in reply to: questions on cell editing #125522
    paladin0
    Participant

    thanks for that. the first part worked a treat.

    as for the second bit about removing the edit box. It works. Problem is i still need the cell to post on clicking another cell. restore or save works but it will post on save but not on clicking into the next cell.

    I just somehow need to remove the input box without changing anything else

    in reply to: On cell select open subgrid possible? #125500
    paladin0
    Participant

    thanks for that i used that demo to help me build the layout i wanted.

    I also have these custom inputs feeding back into the hidden columns so that saving the data should be easy.

    Only problem is that i cant figure out how to trigger the editurlpost.

    Is there a way to make jqgrid think that i have used inline edit and trigger a post with all current data in the grid? I dont want to use a save button

    in reply to: Reloading each detail grid after save #125397
    paladin0
    Participant

    Have have made some small progress.
    I have this in
    employee_id is set outside of the function by the master grid.

    successfunc: function (employee_id){alert(employee_id); jQuery("#skills_grid").jqGrid('setGridParam',{url: site['uri']['public'] + '/data/Skills/'+employee_id,datatype: 'json'}); jQuery("#skills_grid").trigger("reloadGrid");
    However in the post data i am seeing employee_id replaced with

    [object%20Object]?_search=false&nd=1467720982505&rows=200&page=1&sidx=&sord=asc

    any ideas?

    in reply to: Reloading each detail grid after save #125394
    paladin0
    Participant

    thats the master code.

    I tried to use your link for refreshing just the one detail grid. It didnt work. Not sure why

    in reply to: Reloading each detail grid after save #125393
    paladin0
    Participant
    in reply to: Reloading each detail grid after save #125389
    paladin0
    Participant

    Below is the code. Each grid in the page is exactly the same. I just have 5 of them with different names/ functions. so what you see is replicated 5 times with different names.

    I have tried the reload grid code from the link and it does not reload. the row will vanish. However when i reselect the row in the master grid it appears. so its 1/2 working.

    This is also the same grid code that i am having problems with all 5 being submitted when i press enter (to save) on inline editing

    • This reply was modified 9 years, 11 months ago by paladin0.
    in reply to: Master Detail grid and inline editing #125266
    paladin0
    Participant

    Thanks for that. Here is my code for the options. Im using inline editing and then the add and delete in the nav bar.

    But i cant seem to get it to add the serializeDelData that i have added to the grid.

    maybe i am doing it wrong

    in reply to: Master Detail grid and inline editing #125263
    paladin0
    Participant

    Tony

    thanks so much for your help.

    Everything has worked really well so far. I have 2 more questions. I have tried a few options but no results.

    1. I need to get additional data into the delete post. in the grid i have used

    2. I am using the popup search grid. However i want the search grid to display the name and return the id for the selected row. is this possible?

    thanks so much for your help so far

    • This reply was modified 9 years, 12 months ago by paladin0.
    in reply to: Master Detail grid and inline editing #125227
    paladin0
    Participant

    thanks for that. I have the serialize part working.

    But i cant get the extra param in.

    I have tried.
    editParams: { extraparam: {csrf_token: function() {return $("meta[name=csrf_token]").attr("content");}}},

    extraparam: {csrf_token: function() {return $("meta[name=csrf_token]").attr("content");}},

     

    the below works. But i need the token inside the object

    • This reply was modified 10 years ago by paladin0.
    • This reply was modified 10 years ago by paladin0.
    in reply to: Master Detail grid and inline editing #125206
    paladin0
    Participant

    Tony thanks so much that helped me.

    I have one final question.

    when using inline editing you enter a value and then press enter. this then posts the data.

    I can see in consol that the data is coming in. However i need to add a security token to the end of the post.

    how would i do this. I have searched and tried a number of different methods but cant find one that works.

    so currently it looks like

    <span class=”header-value source-code”>client=200012&Order=1&oper=edit&id=1

    i need

    client=200012&Order=1&oper=edit&id=1&key=kjkzxlkjklj213kl2
    </span>

    in reply to: Master Detail grid and inline editing #125203
    paladin0
    Participant

    great thanks for that. It solved my problem.

    I have two more questions.

    1. Can i change the row height for each grid on the screen? I currently haveĀ <style>.ui-jqgrid tr.jqgrow td{height:40px;}</style> but this changes the row height for all grids on the screen. I want one at 40px and the other to be auto
    2. is it possible to have one of the fields as a lookup? so that it can look into another table with a popup search? ie i have customers-> orders on the same screen but if i add a new order i want to be able to search for the product in a seperate table and return the ID/name
Viewing 15 replies - 1 through 15 (of 16 total)

Stay connected with us in your favorite flavor!