Welcome Guest Search | Active Topics | Sign In | Register

Conditional formatting clientside Options
ms
Posted: Monday, June 1, 2009 6:22:56 PM
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
eo_support
Posted: Monday, June 1, 2009 6:31:42 PM
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!
ms
Posted: Thursday, June 4, 2009 3:37:58 PM
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.


eo_support
Posted: Thursday, June 4, 2009 3:41:22 PM
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!
ms
Posted: Thursday, June 4, 2009 4:31:34 PM
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
eo_support
Posted: Thursday, June 4, 2009 4:35:21 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.