PDA

View Full Version : Blinking Grid Row.



bevara.siva
6 May 2014, 5:44 AM
Hi,

I wan to blink grid row on some condition.

So I am trying the change the row background color in the getRowClass() function.
This function is called only once. I wanted to call this method recursively and wanted to change the back ground timely using setInterval.

How can I call getRowClass() recursively.

Please help!!

Regards,
SivaPrasad.B

damo
6 May 2014, 6:53 AM
This doesn't use getRowClass() but should give you an idea.

5kj

bevara.siva
7 May 2014, 5:10 AM
Thank you for the response.
Its working on the Item Click event.
But I wanted this in the Refresh. I have added the Refresh handler for the panel and wanted to add the Blinking to the tree node based on the condition. This Code is not working on the node.
Even I tried to apply CSSClass on the refresh which is also not working.
Can anyone please help me in adding the CSSClass in the refresh event.

Following is the code I am using to add the CSSClass



type: 'refresh',
tooltip: 'Refresh',
handler: function (event, toolEl, panelHeader) {


var tree = Ext.getCmp('menupanel');
var store = Ext.getStore('SampleTreeStore');

tree.getRootNode().cascadeBy(function (node) {
var p = node.getData();
if (p.Client === "Siva") {
// Code for Blinking
Ext.fly(node).highlight('#ff4400', {
duration: 2000
});

// Code for adding the CSSClass
tree.getView().addRowCls(node,"bg_TreeNodeBlue");

}


});

}



Regards,
SivaPrasad.B

damo
7 May 2014, 10:30 AM
Here's a tree node blinking example

5le

jsakalos
7 May 2014, 12:07 PM
This can be helpful too: http://extjs.eu/examples/#grid-styling-rows