trevrobwhite

Forum Replies Created

Viewing 14 replies - 16 through 29 (of 29 total)
  • Author
    Replies
  • in reply to: Filter Toolbar Multi-Pick #124829
    trevrobwhite
    Participant

    Hi Guriddo,
    Sorry to bother you again, this solution was going really well, but when I started using it against a database which has new records added, when I press the Refresh button to bring in more records the filter isn’t respected and new records outside the filter appears in the grid.

    Is there a way I can call an event to apply the filter after the grid reload from a jQuery call, basically simulate the onclick event of the filter.

    Many thanks.

    in reply to: Time Zone Conversion #124816
    trevrobwhite
    Participant

    Hi Gruddio,
    That works a treat, for users viewing this post I wanted to complete the knowledge. When you do:

    Make sure in your select (for MySQL) you do:

    SELECT …. UNIX_TIMESTAMP(datefield) as datefield, …

    This will convert your datefield into a UNIX (EPOCH) timestamp, however the problem is the column will now be called ‘UNIX_TIMESTAMP(datefield)’ so you need to do ‘as datefield’ to get its name back again so Guriddo can see the field.

    The format I used is:
    "formatoptions"=>array("srcformat"=>"U","newformat"=>"d-M-Y H:i:s T")

    This is quite nice as it removes the confusion between European and US style dates which are opposite to each other and causes problems with the day/month.

    Additionally if you are using the date picker you will need to add/change:

    Hope this helps.

    in reply to: Filter Toolbar Multi-Pick #124759
    trevrobwhite
    Participant

    Many thanks, this works well.
    I did find it a pain naming all the multi selects manually so, modified the jQuery code slightly.

    I’m sure the initial jQuery select can be tidied a bit so it returns an object not a string, but I struggled to get an object back.

    in reply to: Filter Toolbar Multi-Pick #124749
    trevrobwhite
    Participant

    Correct, the grid is constructed, I set the filters, sort etc and hit save, this runs a jQuery to store the sorting/filtering/column widths etc.

    Then the grid is fully loaded, the user presses “Load” and the grid is loaded with there setup.

    However if there is an easier way to achieve the same thing by going a full page refresh that works for me.

    Correct the toolbar is on, below is what is looks like (sorry I had to hide the data), I’m hoping in the action column to have a button or link to do some custom actions (I’m working on that part)

    Layout

    Many thanks.

    • This reply was modified 10 years, 5 months ago by trevrobwhite.
    in reply to: Filter Toolbar Multi-Pick #124747
    trevrobwhite
    Participant

    Is it possible to save and load the filters?

    I’ve tried:

    with:

     

    and also
    var schema = jQuery('#grid').jqGrid('getGridParam','postData');
    with

    But I cannot seem to get the layout to hold for the multi-select, is the data somewhere I can access so I can save the layout and reload it later?

    In the background I stringify the data and store it in the database then reload using jQuery after sending through JSON.parse.

    Many thanks.

    in reply to: Filter Toolbar Multi-Pick #124737
    trevrobwhite
    Participant

    Had a play around, this is looking great, many thanks.

    in reply to: Filter Toolbar Multi-Pick #124733
    trevrobwhite
    Participant

    Many thanks for this, I’m using Guriddo jqGrid PHP can you detail which files need to be replaced in here as there are more files in the jqGrid distribution compared to mine.

    Or is replacing the jquery.jqGrid.min.js enough.

    Again many thanks.

    in reply to: Filter Toolbar Multi-Pick #124709
    trevrobwhite
    Participant

    That looks like exactly what I need, the “all” looks a bit buggy but as you mention it’s work in progress.

    Am I right to think that getGridParam will support the multi-select option when it’s done?

    Thanks again for this effort.

    in reply to: Filter Toolbar Multi-Pick #124702
    trevrobwhite
    Participant

    Many thanks.

    in reply to: 100% or Auto Height Creates a Huge Page #124698
    trevrobwhite
    Participant

    Many thanks for this.

    in reply to: 100% or Auto Height Creates a Huge Page #124695
    trevrobwhite
    Participant

    Many thanks. Do you have a guide anywhere how to pass the JavaScript height variable to the PHP backend script to assist me in this calculation.

     

    Many thanks.

    in reply to: jqForm connected to SQL Database #115367
    trevrobwhite
    Participant

    Thank-you for fixing the code, any ideas on what I’m doing wrong?

    • This reply was modified 11 years, 5 months ago by trevrobwhite.
    in reply to: jqForm connected to SQL Database #115351
    trevrobwhite
    Participant

    I’ve tried and tried and I can’t get your system to accept the code in a good format, even using your code screen.

    in reply to: jqForm connected to SQL Database #115347
    trevrobwhite
    Participant

    Below is the PHP code I used, I can see that the query is being made because Firebug picks it up as POST command as soon as the page is loaded:

    Here is the post (sorry can’t attached as a screen capture), sorry had to block the data:

     

    Interestingly if I use the visual form builder I get the same issue.

     

     

    For the binding part are you able to give me a bit of an example or point me to some documentation so I know what function to call

    • This reply was modified 11 years, 5 months ago by trevrobwhite. Reason: Bad system formatting
    • This reply was modified 11 years, 5 months ago by trevrobwhite.
    • This reply was modified 11 years, 5 months ago by trevrobwhite.
    • This reply was modified 11 years, 5 months ago by admin.
    • This reply was modified 11 years, 5 months ago by tony. Reason: fixing code publishing
    • This reply was modified 11 years, 5 months ago by tony.
    • This reply was modified 11 years, 5 months ago by tony.
    • This reply was modified 11 years, 5 months ago by tony.
    • This reply was modified 11 years, 5 months ago by tony.
    • This reply was modified 11 years, 5 months ago by tony.
Viewing 14 replies - 16 through 29 (of 29 total)

Stay connected with us in your favorite flavor!