Apr 29, 2015, 6:03 AM
[CLOSED] How to get column index of a gridpanel using javascript.
Hello,
I have gridpanel with 2 columns. On clicking any of the rows I need to populate a different grid. Using the item click event of the Grid view I could achieve the functionality. Below is the code I have used. Now, I want the itemclick event to be fired only when i click on the first column. It should not fire for the second column. Though the below java script I could get only the rowindex. If I get column index then i can restrict it from being fired. How do I get the column index. Please help.
Javascript function:
I have gridpanel with 2 columns. On clicking any of the rows I need to populate a different grid. Using the item click event of the Grid view I could achieve the functionality. Below is the code I have used. Now, I want the itemclick event to be fired only when i click on the first column. It should not fire for the second column. Though the below java script I could get only the rowindex. If I get column index then i can restrict it from being fired. How do I get the column index. Please help.
Javascript function:
var loadTier3 = function(record, item, index, e, eOpts ){
var tier2 = record.store.data.getAt(e).data.Tier2
Ext.net.DirectMethods.check(tier2);
}
This is the Gridview where am calling the above funct:<View>
<ext:GridView ID="GrdViewMetrics" runat="server" MarkDirty="false" StripeRows="false" TrackOver="false">
<Listeners>
<ItemClick Fn="loadTier3">
</ItemClick>
</Listeners>
</ext:GridView>
</View>
Last edited by Daniil; May 05, 2015 at 3:31 PM.
Reason: [CLOSED]