Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - genk_pqgrid

Pages: [1]
1
This is a part of a very large project, so hard to share.
However I at least found the reason and workaround:
- it's caused by "saveEditCell" method.
- when I'm editing a field in the grid and I click on UP/DOWN button the button event fires before any event for the grid row, including the "quiteditcell" event.
- so if I simply follow UP/DOWN processing logic, my cell remains in "limbo" and editing is unfinished.
- so I tried to intercept this with the following piece of code:
    if ($("#" + pGridId).pqGrid("getEditCell") != null) {
        $("#" + pGridId).pqGrid("saveEditCell");
    }
- this actually works - but still leaves the cell in some weird state that makes the data setter to work backwards.
- as soon as I commented this code everything works OK.
- of course I still have the problem of unfinished editing - so I have to ask the user to use TAB or click outside the cell to complete cell editing before using UP/DOWN or close buttons.

Any comments on this would be welcome  :)




force

2
Hello
My grid is a part of a jq Dialog popup which is shown on top of another grid - main page.
In the popup I basically show detailed info for the current line of the main page. using UPD/DOWn buttons I move between rows and show detailed data. All works fine if I don't modify fields on the detail grid in popup.
If I do modify any field:
- I must copy the values into the model of the main grid and then move to next record
- Then I use values from the next record to build data for the popup
- I'm using this line to set the data for my grid:
        $("#grid_array_pe_text").pqGrid("option", "dataModel.data", m_TextGridData);
- The object m_TextGridData is built from the new current row of the main grid's data.
The problem:
- after execution of the above line instead of filling the grid with data from the object - the object is filled from data. The result is as if the changes from one detail screen are propagated to the next.

Sorry for the long explanation, I spent already a few hours on it and cannot figure it out.
Any help would be greatly appreciated.

3
Great, thanks for your help!
Really appreciate your quick turnaround  :)

Thanks,
Gene

4
Hello, again
I found what is breaking the alignment: in my markup I have style="text-align: center" in the DIV enclosing the grid. This can be the actual DIV of the grid or another higher-level DIV enclosing the grid. I made a change in the example provided by you and the alignment is broken. Please see: http://jsfiddle.net/LAgZx/203/.

This maybe not such a big issue. On the other hand, it may be required to have the grid inside another DIV which needs the center alignment.

5
Thanks, I'll try to use it in isolation, then inside the ASP.NET app. I'll respond to you when get more info.

6
Hello, again
I created a fiddle for this:

http://jsfiddle.net/genk_jsfiddle/fRCLz/13/

The behavior is actually happening even on the local system when viewed in FF.
To reproduce in fiddle:
- click button "TEST PQ My Code"
- click button "NEXT ROWS"
- observe 2 grid columns PhotoType and Photo Type - the grid lines of header are not aligned with data rows.

Thanks


7
Thanks. I'll try to reproduce on an isolated page - application made up of only one page with the grid. Then I'll add to this post.

8
I have paramquery grid in my ASP.NET website in 2 pages. Both work fine when served from the local ASP.NET dev. server (part of the Visual Studio 2008). However when served from IIS dev. server the grid header is malformed and not aligned with the data rows. I have hidden a column for each of the drop-down editing column - to store the IDs of selected items. Some of these hidden columns are showing and overlaying the corresponding drop-down columns. In the 2nd screenshot the Photo Type column is overlayed by its corresponding ID column - which is not visible in the 1st screenshot.

Any help on this would be greatly appreciated.
I'll provide the source code if needed and any other details.

9
Hello,
I need to add a few buttons to the TOP section of paramquery grid - e.g. ADD/DELETE/UPDATE etc.
Can it be done using the API?

Thanks
Gene

Pages: [1]