or
function
DeleteRow() {
EstimateWebService.DeleteEstimateItems(rowId.Id, OnDeleteRowSucess)
}
function
OnDeleteRowSucess() {
$find(
"<%= RadAjaxManager1.ClientID %>"
).ajaxRequest(
"Rebind"
);
}
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
EnableViewState
=
"false"
onajaxrequest
=
"RadAjaxManager1_AjaxRequest"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnAddNewRow"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"grdEstimateItems"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadAjaxManager1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"grdEstimateItems"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"grdEstimateItems"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"grdEstimateItems"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
protected
void
RadAjaxManager1_AjaxRequest(
object
sender, AjaxRequestEventArgs e)
{
if
(e.Argument ==
"Rebind"
)
{
//RadGrid1.MasterTableView.SortExpressions.Clear();
//RadGrid1.MasterTableView.GroupByExpressions.Clear();
grdEstimateItems.Rebind();
}
}
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="display:none;" Behavior="Close" InitialBehavior="None" Left="" Top="" Modal="true" >
<Windows>
<telerik:RadWindow ID="MyWindow" runat="server" Title="Buy Tickets" Height="600px"
Width="700px" ReloadOnShow="False" Modal="True" Skin="Web20" VisibleStatusbar="False"
Behaviors="Close" style="display:none;" Behavior="Close" InitialBehavior="None" Left="" NavigateUrl="" Top="" ShowContentDuringLoad="False" />
</Windows>
</telerik:RadWindowManager>
this page contains an ascx
the ascx conatains a nested repeater
the nested repeater contains dynamic hyperlink controls.
i want the navigateURL property to open a radwindow and I cannot get this to work.
I tried the following function in the parent page:
function ShowWindow()
{
window.radopen('http://www.google.com', 'MyWindow');
}
and dynamically setting the navigateurl property of the hyperlinks to call that function as follows:
"javascript: ShowWindow();"
;
thanks for your help...jim
protected
void
Page_Init(
object
sender, EventArgs e)
{
this
.ID =
"MyFormId"
;
}