0

MVVM grid and popup for row/cell level error

asked 2012-09-30 06:33:33 +0800

davout gravatar image davout
1435 3 18

I have a R6.0.2 grid using MVVM to display multiple rows of data. For certain grid cells I display an image to reflect an error, like..

<cell>
   <label value="@load(r.localCost)" visible="@load(!r.priceError)" />
   <image src="/image/icon/calc_error_fx.png" visible="@load(r.priceError)" onClick="priceErrorPopup.open(self); " />
</cell>


What I'd like to have is a popup set for each cell where I could push in cell specific error messages. However, within a templated generated row/cell I can't find a way of linking the image to an individual popup.

So instead - as shown above - I've opted for a single popup set outside of the template - which is linked to the cell by an 'onClick' event. But this has its own limitations as I cant' find a way of passing the cell specific error message to the popup.

Thoughts?

delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-09-30 06:33:33 +0800

Seen: 71 times

Last updated: Sep 30 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More