|
Rank: Newbie Groups: Member
Joined: 6/1/2009 Posts: 7
|
Hi,
I know that it is possible to set conditional cell based formatting on a column by applying a StyleField. We want to apply conditional formatting on a cell containing totals, which are calculated real time with clientside scripting. When this total value changes for a specific row, can the conditional formatting also be re-evaluated real time with clientside scripting? How can it be done?
Regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The most flexible option is to provide an additional setStyle method on the client side GridCell object. This way the Grid cell will take initial style from StyleField, but you will then be able to modify it to whatever you would like with JavaScript. Please let us know if this will work for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/1/2009 Posts: 7
|
eo_support wrote:Hi,
The most flexible option is to provide an additional setStyle method on the client side GridCell object. This way the Grid cell will take initial style from StyleField, but you will then be able to modify it to whatever you would like with JavaScript. Please let us know if this will work for you.
Thanks! Hello, Setting initial StyleField is working fine. The problem is that I cannot find any client-side method (i.e. something like SetStyle) in the client API reference. The only methods mentioned are: getColIndex getColumn getGrid getItem getItemIndex getValue setValue If there is a way to (workaround?) to re-evaluate the conditional formatting on the client side? Could you provide an example? Having the conditional formatting in our applications is a key requirement from our customer.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
ms wrote:Setting initial StyleField is working fine. The problem is that I cannot find any client-side method (i.e. something like SetStyle) in the client API reference. Hi, setStyle is not there yet. That is what we are planning to add. Once we add that function, you will be able to call it to change the Grid cell style whenever you want. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/1/2009 Posts: 7
|
eo_support wrote: Hi,
setStyle is not there yet. That is what we are planning to add. Once we add that function, you will be able to call it to change the Grid cell style whenever you want.
Thanks!
Could you give an indication of when this function could be available? My compliments for the (speedy) good support. I am glad to have purchased a license for your products yesterday. Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Thank you very much for your business! I would expect this feature to be added in one or two weeks. However since it has not been implemented yet, it is possible that we will hit some hard road block while implementing it. So nothing is carved into the stone yet. In any case, we do understand the importance of this feature so we will do our best to roll it out as soon as possible.
Thanks!
|
|