R_A_P

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • R_A_P
    Participant

    have you use hidden:true in the colmodel property

    R_A_P
    Participant

    so that is my mistake. i thought those two are the same. would you kindly tell me what is the difference between “#tr_id” and “#id” in the actual use? what i know, the “tr_” part is just a prefix. but i don't really know that both are actually difference. by the way, thanks for helping me solved this :)

    R_A_P
    Participant

    okay i get the third one. thought it takes so much effort just to understand how to use the afterSubmit. but the second question is still unsolved. by using readonly:'readonly', both the add and edit mode will become readonly/ineditable, while what i want is to make it editable in add mode and ineditable/readonly in edit mode. i've tried that readonly yesterday after i red the doc. but that doesn't really solved the problem

    btw, is there any other documentation about jqgrid besides trirand? cos i found it hard to understand. there are very much that is still unclear in the documentation there. so that makes a newbie user like me couldn't really understand what it meant to be and had to ask even for some simple things

    R_A_P
    Participant

    thanks for the response oleg :)

    i've read your response in stack also. answering your question there, i don't use inline editing or loadonce:true. and i do use reloadAfterSubmit. after your response and read the doc more, i can understand about what you mean with id_g. but i still don't understand where should i put the code which tony gave. is it before i put the custom validation? so i use it like this

    if( $(“#id_g”).val() == “_empty”)

    {
    // custom validation
    }

    but that doesn't work. so i don't know where should i put it.

    about my second question, it is still unsolved. i did successfully hide it when in edit mode by using this code

    beforeShowForm:function(formid)
    {
    $(“#tr_id”,formid).hide();
    }

    R_A_P
    Participant

    first of all, thanks for your response tony. i've been waiting for some answer for this 😀

    1. yes, i am using form editing. well i've found the answer to this one just yesterday even before i see your answer. sorry for asking this simple thing. actually i've been reading the doc even before i post this question but maybe i'm missed it or i'm opening other part there so i couldn't find it in the first place

    2. i had used beforeShowForm yesterday after i red the doc and i succesfully hid the form when it was in edit mode. but i still haven't managed to make it ineditable. because the catch is i had to show the 'id' to user so they know where they are and which data that they change. can you

    3. i'm really lost with what you mean about this one. where should i put the code? and what is '#id_g'? did you mean in my case '#id'?

    PS: it's not a real forum actually :p but i called it forum because it works like a forum imo :p and its called st***ov**fl** :p

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

Stay connected with us in your favorite flavor!