admin

Forum Replies Created

Viewing 15 replies - 571 through 585 (of 635 total)
  • Author
    Replies
  • in reply to: JSON Post Format? #88162
    admin
    Keymaster

    If you're going to be posting JSON you're probably better of using a custom data function like this..

    setup your grid with the datatype option set as

    datatype : function(pdata) { getData(pdata); }

    and here is the function…. note the params object which is what i send JSONified to my webservice… which can be anything you want… and in my case the data that gets sent is…

    {"page":1,"pageSize":25,"sortIndex":"id","sortDirection":"desc"}

    see how they match my “params” object …

    in reply to: Column Order #88161
    admin
    Keymaster

    I dont want to have to define the order of the columns in the data service. I think that it is better that the grid determines the order of columns. Because I cannot seem to figure out how to get jqGrid to do this I have decided to use the 'postData' attribute to pass back a list of columns in the order that I want. The service then uses this list to sort the columns. Its not the optimum way to do it but its better than hardcoding the column order in the service itself.

    If there is some other way to achieve this I would like to know.

    in reply to: Column Order #88153
    admin
    Keymaster

    Well I would change the order of the items in the colModel.

    in reply to: Hidden column value saved as html string in line edit mode #88149
    admin
    Keymaster

    Dear Tony,

    It's OK to save the existing value (e.g. “0″ in the sample). However the grid tries to save the whole html text string into my boolean field.

    Best regards,

    Rayson

    in reply to: Table To Grid Sorting problem #88106
    admin
    Keymaster

    Hi..

    admin
    Keymaster

    ok, i got it working with the samples from riverguardian. but i have a problem with the id…..i have table column with the name id too and this column is shown as “ID” in the grid….when i load the data via json everything is fine. the row with the id 3 is shown as first row in the grid with value 3 in id cell. when i edit the data id=1 is send to the edit.php, so its saving to the wrong row. how can i send the correct identifier to the edit.php?

    in reply to: I get error sometimes when loading jqGrid sometimes not #88102
    admin
    Keymaster

    Coming form the C# and Java world and being new to Javascript I am amazed at the richness of fucntionality and good looks of the grid. Everything works great for me, except one problem, exactly the same as reported here. For me this happens only in IE and only on a first load after the browser stratup. Subseqent loads work fine.

    in reply to: Inconsistent display in Add Row dialog #88095
    admin
    Keymaster

    As you requested, I posted the code at

    http://jsbin.com/owire.

    But there are so many include files that it's impossible to actually view the document.

    in reply to: scroll into view #88091
    admin
    Keymaster

    Hi,

    I have the same problem too.

    I ture on the scrollrows and use setSelection.

    the row was

    in reply to: Caption / Hide Grid #88087
    admin
    Keymaster

    redsuitee said:

    maybe u can try this one:

    hiddengrid:true


    Hey there

    If you don't include the Caption parameter in the decleration of the grid there won't be a Caption bar…

    in reply to: Label not changed in add Form #88085
    admin
    Keymaster

    Dear Tony,

    I tried modify setLabel in grid.base.js (line 1793) by changing

    in reply to: Scroll option causs horz scroll bar to appear #88083
    admin
    Keymaster

    Dear Tony,

    You are right, the DOCTYPE definition really fixed it. Thanks a lot!

    Best regards,

    Rayson

    in reply to: Automatic escape for cells content #88082
    admin
    Keymaster

    I read about that options, but it is for posting data to the server. What I mean in my previous post is the ability to include unescaped content in a cell. For example, suppose that your server side script returns a string like alert('hello world'), when your jqgrid is rendered the script is executed.

    At this time, the only way to prevent such similar xss is to escape datas server side, or using a custom formatter, but this would mean that you can not use any other formatter for that cell.

    Bye.

    P.S. I'm trying to extend standard formatters by writing some other functions. I'd like to make something like extending that object, in this way I simply have to include my file and use my formatter in the same way of the bultin ones. One problem, I'm not very skilled with javascript, can somone help me with a link to some doc?

    in reply to: When row width is bigger then width of grid #88079
    admin
    Keymaster

    Thanks for help 🙂

    This plugin is one of the best that I found

    One more question, it is an option to export data displayed to csv or xls in PHP?

    in reply to: Cell changed indicator on addRowData #88078
    admin
    Keymaster

    CryRojoba:

    Could You please put an example of what do you do for put ther dirty-class

    Thanks

    rojoba said:

    Hi Tony

    Thanks. Yes I inspected the html at the time and I ended up playing with the classes to do what I needed for a new row. Also, the

    had to have an “edited” class (i think) for the getChangedCells('all') method to pick up the new row id.

    Thanks again for the response.

    Kind regards,

    Roger


Viewing 15 replies - 571 through 585 (of 635 total)

Stay connected with us in your favorite flavor!