Double click cell event in telerik:RadPivotGrid

6 posts, 0 answers
  1. Mohan
    Mohan avatar
    9 posts
    Member since:
    Aug 2018

    Posted 09 Aug 2018 Link to this post

    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

     

     

     

  2. Vessy
    Admin
    Vessy avatar
    2010 posts

    Posted 14 Aug 2018 Link to this post

    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.
  3. Mohan
    Mohan avatar
    9 posts
    Member since:
    Aug 2018

    Posted 14 Aug 2018 in reply to Vessy Link to this post

    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.

     

     

     

  4. Mohan
    Mohan avatar
    9 posts
    Member since:
    Aug 2018

    Posted 14 Aug 2018 in reply to Vessy Link to this post

    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.

     

     

     

  5. Mohan
    Mohan avatar
    9 posts
    Member since:
    Aug 2018

    Posted 14 Aug 2018 in reply to Vessy Link to this post

    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.

     

     

     

  6. Vessy
    Admin
    Vessy avatar
    2010 posts

    Posted 17 Aug 2018 Link to this post

    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.
Back to Top