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.