PDA

View Full Version : [Grid] Hide Column and recalculate



Spongerusher
2 Dec 2009, 11:38 AM
Hi !

Here's the story: I have a grid whose columns and store are created dynamically.

Let's say i have 4 columns. The first one (C1) is fixed and the 2 other ones (C2/C3...) can be set hidden or not by the user.
The last column (C4) is the result of an operation of C2 and C3 values.

Id like to dynamically calculate the new values of C4 according to C2 and C3 hidden state.

At the moment I use the hiddenchange event AND modify the grid store AND reconfigure the grid but the operation is way too long !

I'd just like to get the C2-C3-C4 values and set new C4 values with an innerHTML or something like that.

But i dont really know how to do... :s