Hi, I'm having issues executing a RadAjaxManager OnAjaxRequest. I am following the "Window / Edit dialog for Radgrid" Window option demo in order to rebind a RadListView when data is added within the Rad pop up Window. The difference between my layout and the example is I am using a master page architecture. So I have a master page then and aspx page within the content and a user control within that aspx page. My Rad Window is within the user control. Since I have my RadAjaxManager within the master page I am unable to execute a command within my user control to rebind my RadListView within that user control. How would I do this?
----- I am trying to execute the refreshGrid function below called from my RadWindow to rebind a radlist view. My problem is my radajaxmanager is within a master page and my radlistview is in a user control.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadListView1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
function refreshGrid(arg)
{
if (!arg)
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
}
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "Rebind")
{
RadListView1.Rebind();
}
----- I am trying to execute the refreshGrid function below called from my RadWindow to rebind a radlist view. My problem is my radajaxmanager is within a master page and my radlistview is in a user control.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadListView1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
function refreshGrid(arg)
{
if (!arg)
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
}
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "Rebind")
{
RadListView1.Rebind();
}