PDA

View Full Version : [CLOSED] GridView - override doStripeRows



thchuong
Jan 12, 2015, 8:31 AM
Hi there,

Could you tell me how to override doStripeRows for 2 cases?

override for view instance (replacement)
override for view class


Thanks in advance.

Daniil
Jan 13, 2015, 5:35 AM
Hi @thchuong,


1. override for view instance (replacement)

Example 1

<ext:GridView runat="server">
<CustomConfig>
<ext:ConfigItem Name="doStripeRows" Value="myDoStripeRows" Mode="Raw" />
</CustomConfig>
</ext:GridView>


var myDoStripeRows = function (startRow, endRow) {
alert("myDoStripeRows");
};


2. override for view class

Example 2

Ext.view.Table.override({
doStripeRows: function (startRow, endRow) {
alert("doStripeRows");
}
});

thchuong
Jan 13, 2015, 7:28 AM
Thank you. You can close the topic.