I have followed most of the following thread:
http://www.telerik.com/community/forums/aspnet-ajax/grid/custom-insertcommand.aspx
However I can't get the radwindow to show. If I run the code from a button click event it opens and displays fine if I run it from the
Added information. It seems that it's an issue with Ajax. I removed the asp.update panel and it works fine but with a postback I added a
and again it does not show. Is there a way to have the best of both worlds? Ajax and also a custom window when the add new record is clicked?
http://www.telerik.com/community/forums/aspnet-ajax/grid/custom-insertcommand.aspx
However I can't get the radwindow to show. If I run the code from a button click event it opens and displays fine if I run it from the
RadGrid1_ItemCommand then it does not show. I know that event is firing since I have a trace log file within the process.
If e.CommandName = RadGrid.InitInsertCommandName Then
e.Canceled = True
Dim newwindow As Telerik.Web.UI.RadWindow = New Telerik.Web.UI.RadWindow()
newwindow.ID = "RadWindow1"
newwindow.NavigateUrl = "/portals/0/NewEducation.aspx?RecID=0"
newwindow.OnClientClose = "OnClientClose"
newwindow.Width = New Unit(650)
newwindow.Height = New Unit(580)
newwindow.VisibleOnPageLoad = True
newwindow.Modal = True
RadWindowManager1.Windows.Clear()
RadWindowManager1.Controls.Add(newwindow)
End If
Please help. Thanks
Added information. It seems that it's an issue with Ajax. I removed the asp.update panel and it works fine but with a postback I added a
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>