Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 8-Aug-13 7:46am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900