--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
---
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to intersystems-z...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To post to this group, send email to InterSy...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-...@googlegroups.com
No, I’m suggesting not to use a %ZEN.Component.tablePane. But instead to make a Roberto.Component.panelessTable J If you are already using jQuery and you have to go and manually add a bunch of ids to the table? Why not just render a simple HTML or JSON output from your query (e.g. use the JSONProvider) and let a jQuery widget render this as a table. Doing this will avoid all the concurrency issues possible, and give you a much lighter weight page that is not burdened by being backward compatible with every version of IE 6 and Zen 2007.1 (though the jQuery widget based design might itself work on IE 6 and 2007.1); tablePane has to go to a great deal of effort to remain backward compatible with Non-Standards mode browsers – I don’t see any reason to make it go through all that effort if what you really want is a table widget that is controlled by jQuery.
~Derek
To post to this group, send email to
InterSys...@googlegroups.com
To unsubscribe from this group, send email to
InterSystems-Z...@googlegroups.com
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
Vlado, responding to you gave me an idea to modify the plugin.
I looked for the part where the plugin returns control to Zen and there is a "return false" there.
I changed that to "return true", it now highlights the row, but the plugin no longer work.
I had the idea of putting in a row number manually for each row myself. It works great (runs the plugin and highlights the row), but when a user clicks on the column header to sort, the row numbering changes and this breaks the highlighting. It doesn't highlight the correct row.
-Roberto
On Sunday, May 5, 2013 10:54:15 PM UTC-4, Roberto wrote:
Hello Vlado,
Thank you for the response.
We are not using a Zen modal group for this part.
T
We need to display a JPG when a user clicks on a link. We want that JPG to be displayed in a modal, and also we need the user to be able to manipulate the JPG - enlarge, shrink, rotate.
We are using a jQuery plug in for this.
The plug in is working fine. It looks like the plug in is doing a "prevent default" type of action and not sending the appropriate message down the pipe.
It looks like that I can put an onclick event on the icon within the column, but to select a row I need to run the clickHandler() for that component.
The clickHandler() needs the row parameter. I have been looking at the tablePane/simpleTablePane classes and there is no information about the row that I can utilize.
This could be a WRC request.
-Roberto
On Friday, May 3, 2013 10:57:04 PM UTC-4, Roberto wrote:Hello everybody.
I'm wondering if anybody has a solution for this. This could be a WRC issue.
We created an OnDrawCell for one of our columns in a tablePane.
In the OnDrawCell we displayed an icon, and on the onclick event of the image, we open up a modal that displays a JPG based on the row they selected.
The problem is that if another row is selected (highlighted with the default yellow), and they click an icon in another row, that row that you just clicked on will not get highlighted.
Has anybody run into this problem? And if so, how did you find a solution for this?
I examined the DOM and there really is no ID that I can utilize. I was able to simulate it by creating my own id within that row and using DOM/jQuery, I was able to select the proper row.
But if a user sorts the tablePane by clicking on one of the headers, then this technique does not work.
Thanks for any response.
-Roberto
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
To post to this group, send email to InterSy...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-...@googlegroups.com