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

Radpivot Filtering Window Not Opened Asynchronously

1 Answer 43 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Achuthan
Top achievements
Rank 1
Achuthan asked on 08 Aug 2013, 03:29 PM
Hi,


I am developing  a sharepoint webpart  i want to load controls asynchronously within sharepoint webpart. One of the controls I use is ASP.net AJAX RADPivotgrid.

i Achieved this by using of  Partial Updatepanel Library.i followed this link to load controls asynchronously.(link:http://www.51aspx.com/CodeFile/PartialUpdatePanel,6051/Control/PanelHostPage.cs.html)

But now i click Filter icon in pivotgrid it gets a  postback and filter window is not opened.

When i click filter icon i want to open the Filter window asynchronously.

Code:

 private void ProcessPostBackControls(Control control)
        {
            if (control is RadComboBox)
            {
                if ((control as RadComboBox).OnClientSelectedIndexChanged.Equals("Telerik.Web.UI.Grid.ChangePageSizeComboHandler"))
                {
                    (control as RadComboBox).OnClientSelectedIndexChanged = "sppds_gridPageSizeChanged";
                }
            }
            else if (control is Button)
            {
                    if (!(((Button)control).CssClass.Equals("rgFilter")) && !(((Button)control).CssClass.Equals("rpgFilter")))
                    {
                        ((Button)control).OnClientClick = GetPostBackReference(control.ClientID.Replace('_', '$'), "null", true);
                        ((Button)control).OnClientClick += "return false;";
                    }
            }
            else if (control is ImageButton)
            {
                    ((ImageButton)control).OnClientClick = GetPostBackReference(control.ClientID.Replace('_', '$'), "null", true);
                    ((ImageButton)control).OnClientClick += "return false;";
            }

            foreach (Control child in control.Controls)
                ProcessPostBackControls(child);
        }

The above code works fine for radgrid Filtering and paging but does not work for Pivotgrid Filtering.


Am i missing anything here?
please help me to resolve this issue.

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 13 Aug 2013, 02:53 PM
Hello Acutha,

Please, refer to my answer in the formal support ticket.
 
Regards,
Tsvetoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
PivotGrid
Asked by
Achuthan
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or