palobo

Forum Replies Created

Viewing 15 replies - 16 through 30 (of 32 total)
  • Author
    Replies
  • in reply to: Foreign Keys #84374
    palobo
    Participant

    Hi Barry,

    The method I mentioned for Pete was setting a column with the needed id. If you are talking about the problem with the select input (Post returns value as it should but then when we load value, it displays value and not label 🙁 ) I had to do some serverside juggling to display the results correctly.

    Cheers,
    P.

    palobo
    Participant

    Thanks for the quick reply Tony. I will try that out tonight.

    Unfortunately for this current project I'm on a tight deadline and therefore cannot explore as much as I would like, but I have another project waiting and will be hopefully using jqGrid extensively.

    I will post back on that project later with some fun things for newcommers like me. (Just to make the learning cureve less steep 😉 )

    Cheers,
    P.

    in reply to: Get the sum of all values in a column #84359
    palobo
    Participant

    Hi,

    Just off the top of my head (and keep in mind I to am still new to jqGrid) but I think the best way would maybe be with userdata (see docs). You could then do something along the line of $(“#grid_id”).setGridParam(caption:”Output from userdata”,);

    Hopefully some of the real experts will get back to you on this one to 😉

    Cheers,
    P.

    in reply to: Foreign Keys #84358
    palobo
    Participant

    Glad I could help! 😉

    Cheers,
    P.

    in reply to: Dynamically change Form Editing #84357
    palobo
    Participant

    Hi diptendu.

    This is how I got mine to work. I'm sure there may be better ways of doing this but here goes:

    $(“select#emp”).change(function(){

    in reply to: Foreign Keys #84320
    palobo
    Participant

    Hi Pete.

    I'm not quite sure I get what you want to do, but try the following:

    Pass the salesrepid as a colum also, set key:true and hidden:true. Column salesrep should be there also but visible. That way you can reference salesrepid and view salesrep.

    Hopes this helps

    P.

    in reply to: Dynamically change Form Editing #84305
    palobo
    Participant

    Thanks all,

    Got this working finally!

    Cheers,
    P.

    in reply to: Dynamically change Form Editing #84283
    palobo
    Participant

    Hi Tony.

    My code without jqGrid, standard form looks something like this:

    $("#delag").change(function(){

    in reply to: The Forum GUI #84261
    palobo
    Participant

    Same here,

    Linux, FF3.

    Cheers,
    P.

    in reply to: Problem with caption in version 3.3.1 #84258
    palobo
    Participant

    Sorry mates.

    This one was my bad and Iwas way to quick to post. Found the problem. I had removed

    .GridHeader{
    display:none;
    }

    from grid.css by mistake :-$

    Sorry once again for wasting anybodies time…

    in reply to: Elementary problem with jQuery . jqGrid #84257
    palobo
    Participant

    Mike said:

    …

    Other bug detected in my own code : don’t use “echo” or “print” in the PHP program. it destroys the structure of json string awaited by jqgrid.


    Best solution here is to create the desired array and then return the result of json_encode($dataarray). ;)

    Cheers,
    P.

    in reply to: icons with data #84255
    palobo
    Participant

    Hi.

    Credit for this answer goes to Tony for he mentioned it in an earlier thread.

    For waht you want you could possibly use tree grid for folder structure and for the pictures and all else needed, just pass the html source through the server response.

    For example.

    colNames: ['Item','Image','Price'],
    colModel: [ name:"item",index:"item"....},

    in reply to: “Please select row” warning when activating navigator #84254
    palobo
    Participant

    My apologies to all. Apparently I didn't search hard enoughbefore asking for help. I have finally found the answer to this problem in the form.

    Once agin, sorry and thanks to all

    Cheers,
    P.

    P.S.: Just in case a poor soul comes along with the same problem, the solution is here.

    in reply to: Can’t unselect row after activating subgrid #84253
    palobo
    Participant

    Hi guys and gals.

    Back with an update. I've been digging around and found a strangebug that was causing this behaviour.

    This is my colModel:

    colNames : ['N

    in reply to: Dynamically change Form Editing #84250
    palobo
    Participant

    HI.

    This seems to be similar to what I need. I have a few select boxes that need to change dynamically based on the previous selection, example, First choose country, next selct box shows only cities of that country, then choose city, next shows prvinces of that city… and so on.

    Tony, I didn't quite understand what you meant. I have a field in the colum of edittype select say name:country.

    onInitializeForm : function (form_id) {

    $(”select#country”,form_id).change(function() {
    if( $(this).val() == “some_value”)
    {

Viewing 15 replies - 16 through 30 (of 32 total)

Stay connected with us in your favorite flavor!