This is a migrated thread and some comments may be shown as answers.

Double click cell event in telerik:RadPivotGrid

5 Answers 109 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Mohan
Top achievements
Rank 1
Mohan asked on 09 Aug 2018, 01:32 PM

Hello Team,

 

How do we capture cell double click event in telerik:RadPivotGrid.

My code looks like this:

 <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server"  TotalsSettings-RowsSubTotalsPosition="None" TotalsSettings-ColumnsSubTotalsPosition="None" AllowSorting="true" PageSize="20"
            EnableConfigurationPanel="true" ConfigurationPanelSettings-Position="Left" Width="600px"
            ShowFilterHeaderZone="false" AllowPaging="true" Skin="Metro" OnCellDataBound="RadPivotGrid1_CellDataBound" 
            OnNeedDataSource="RadPivotGrid1_NeedDataSource"
             >
            <Fields>
                 <telerik:PivotGridRowField DataField="Description"></telerik:PivotGridRowField>
                <telerik:PivotGridRowField DataField="Category"></telerik:PivotGridRowField>
                <telerik:PivotGridColumnField DataField="EndDate" ></telerik:PivotGridColumnField>                
                <telerik:PivotGridAggregateField DataField="Amount" DataFormatString="{0:C}"></telerik:PivotGridAggregateField>
             </Fields>
        </telerik:RadPivotGrid>

 

Looking to hear from you.

 

Thanks,

Mohan Pal

 

 

 

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 14 Aug 2018, 05:47 AM
Hi Mohan,

RadPivotGrid does not expose a double click event, but you can attach a double click handler to the data cells via thejQuery on() method:
$telerik.$(".rpgDataCell").on('dblclick', function(e) {
    //your logic here
});

The other option is to attach a double click handler in the server-side CellDataBound event of the control. Such approach is demonstrated here:
https://www.telerik.com/blogs/how-to-implement-drill-down-functionality-in-telerik-s-pivotgrid-for-asp.net-ajax-part-2

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mohan
Top achievements
Rank 1
answered on 14 Aug 2018, 10:22 AM

Hello Vessy,

 

I looked into link shared by you. that's great but just one follow up query. The issue with the shared like is that whenever i click on any of the cell to pull sub-level details. it is reloading whole page, it would have been great if it can only execute the method which is pulling sub level details.

Could you let me know hwz that possible.

 

 

 

0
Mohan
Top achievements
Rank 1
answered on 14 Aug 2018, 10:22 AM

Hello Vessy,

 

I looked into link shared by you. that's great but just one follow up query. The issue with the shared like is that whenever i click on any of the cell to pull sub-level details. it is reloading whole page, it would have been great if it can only execute the method which is pulling sub level details.

Could you let me know hwz that possible.

 

 

 

0
Mohan
Top achievements
Rank 1
answered on 14 Aug 2018, 10:23 AM

Hello Vessy,

 

I looked into link shared by you. that's great but just one follow up query. The issue with the shared like is that whenever i click on any of the cell to pull sub-level details. it is reloading whole page, it would have been great if it can only execute the method which is pulling sub level details.

Could you let me know hwz that possible.

 

 

 

0
Vessy
Telerik team
answered on 17 Aug 2018, 11:39 AM
Hi Mohan,

I am afraid that currently RadGrid does not provide such built-in option. Even if the data in the Grid is loaded on demand, the whоle Grid has to be rebound when loading the new data.

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PivotGrid
Asked by
Mohan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Mohan
Top achievements
Rank 1
Share this question
or