Thanks Tony I'll test it
I think you can do this by using some client persitence strategy like cookies..
Glad to hear that
My english is not so good, too 🙂 but my portuguese is worse
Nao foi nada,
Ate logo
Would you mind to show some code that show what you inted to do ?
Great..!
It more cleaner and better integrated with jqGrid
Thanks
Taken from the sample:
$(“#badata”).click(function(){
I did it using jQuery.getJSON. Here is the code:
When you click the Add Button, and edit a record, it will correctly add to the grid.
Checking the docs for the Add method :
|
1 |
jQuery(<span class="codestring">"#grid_id"</span>).addGridRow( <span class="codestring">"new"</span>, options );<br />The options are the same as those in <a href="http://www.secondpersonplural.ca/jqgriddocs/_2eb0gp5ym.htm" target="_blank" rel="nofollow">Edit row</a>.<br /><br />So you can safely check the edit sample.. |
I see your point, Tony
Thanks!
I already did it! The process is as follows:
1) Enclosed your grid in a div and hides this div using style=”display:none”
2) In the button or image you click to see if the grid could be visible just
Note than i am uisng a flag to hide/show the grid but when I click in the “imgOK” the grid “flashes” and dissapears as the “ghideGrid” variable is created again…
Is there a method to hide/show a grid ? What I want to do is show the grid only if data is found and if not data found show a message..
I enclosed the grid in a div and gives this div a hidden style but when i wnt to show it the grid “flashes” and did not be shown…
TIA
Tony, I add all the columns and now it is working.
In the meantime I think i discover a bug. When you have a selected/unselected grid, select one row and sort for any column then you lose the selected row…
Thanks Tony.
I already use this data in another place in my app and it is shown OK.
The only difference is in this part I just want to select/unselect rows, no CRUD is needed and I do not need to show all the fields that I have in json data…
I think the “New in version 3.2, After Insert Row” sample in the jqGrid Demo page is what you are looking for…
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top