bogdanm

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Author
    Replies
  • in reply to: How do I limit the footer formatting to a single grid? #127277
    bogdanm
    Participant

    Thank you. It worked!
    Thread can be marked as SOLVED and closed.

    in reply to: Format row background color based on column value #126876
    bogdanm
    Participant

    Thank you very very very much!

    It worked with the <style> in the <html> section.

    in reply to: Format row background color based on column value #126859
    bogdanm
    Participant

    Thank you for the code. It kind-of works, but not for the property I need. The class gets applied to the correct rows, but the style attribute I wanted to change is the background color, and it doesn’t apply.

    Here is what Firefox’s Inspector shows:

    https://i.imgur.com/cWxSetn.png

    If I use ‘color’ instead of ‘background-color’, the text color does change, but I needed the background to change, not the text. I added !important but it didn’t help.

    I think it gets overridden by that .ui.widget-content class. Is it possible to have the backgroud-color apply without modifying the jqGrid css?

    in reply to: How to use rowid in script after successful Add/Edit (form) #126585
    bogdanm
    Participant

    Thank you.

    At first it didn’t work but I dug deeper into the parameters and figured out what I was doing wrong.

    Here’s my code, in case someone else is trying to do the same thing and finds this thread:

    in reply to: Excel export limited to 1000 rows #125763
    bogdanm
    Participant

    Thank you for the solution.
    Thread can be closed.

    in reply to: Is it possible to run a custom SQL command to set variables? #125691
    bogdanm
    Participant

    I’m thinking there is a third option:
    3. Instead of assigning a long statement to a variable in SQL, use those statements as the first SELECT elements and then reference them in the same SELECT. Those columns can be set as hidden and not editable.

    I’m wondering which would be better from a performance point of view. The first solution would require PHP to query the SQL, which has some overhead. The third would have jqGrid handle the extra columns to be hidden.

    in reply to: How do I update the summaryrow after inline editing? #125611
    bogdanm
    Participant

    I tried the code above and I think it’s missing something. When I double-click on a row the editing starts but there’s no way to end it (either by a save or by a cancel). The buttons for ‘save row’ and ‘cancel row editing’ do not become active, and pressing Enter does not do anything.

    in reply to: How do I update the summaryrow after inline editing? #125608
    bogdanm
    Participant

    OK, you mean something like this?

    Do I need to use setNavEvent to run this function?
    I’m sorry my javascript skills are zero 🙁

    bogdanm
    Participant

    Here is the relevant code:

    The cells in this column look as intended, but the sums are black and have the default formatting (no spaces as thousands separator and has dot as decimal separator).

    bogdanm
    Participant

    I forgot to mention that the summary is not displayed correctly only when using:

    If I don’t use grouping in setGridOptions, the summaries are formatted correctly if used like this:

    bogdanm
    Participant

    Thanks, it worked.

    I tried also to use a summary row, but the values there are not formatted according to the custom function I defined. Is there a way to have the numbers in the summary row shown with comma as decimal separator?

    bogdanm
    Participant

    Aha, what I need to do is something like this?

    How do I create the function that changes just some columns?

    • This reply was modified 3 years, 11 months ago by bogdanm.
    bogdanm
    Participant

    Thank you guys, it worked based on your solution sent over email.

    I’m posting here the relevant lines of code, so anyone faced with this issue and finding this thread can see the proper solution.

    bogdanm
    Participant

    Where can I send you the files?

    bogdanm
    Participant

    As I explained above, my html file has this:

    And in cashron-grid1.php I have:

    So I need to refresh the grid in cashron-grid2.php when I add/edit/delete in cashron-grid1.php, but the above event does not work.

Viewing 15 replies - 1 through 15 (of 24 total)

Stay connected with us in your favorite flavor!