This is a migrated thread and some comments may be shown as answers.

Radwindow is not working for radgrid paging

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sirisha
Top achievements
Rank 1
sirisha asked on 16 Sep 2008, 06:38 AM
Hi,
   im using a radgrid in my page with "edit" item template column.  when i click edit a radwindow will be opened to edit that particular row information. when i click update the radwindow  will be closed and the parent page will be refreshed. it is working fine for the first page. But if im trying the same for the next pages it is giving error "Microsoft JScript runtime error: 'this._windows.length' is null or not an object" .

can you please tell me the solution for this.

The code for my parent page is: CreateGroup.aspx

<script language="javascript" type="text/javascript">

//show the window

function showDialog() {

//Force reload in order to guarantee that the onload event handler of the dialog which configures it executes on every show.

var oWnd = window.radopen(null, "DialogWindow");

oWnd.setUrl(oWnd.get_navigateUrl());

if (oWnd != null) {

oWnd.setUrl(oWnd.get_navigateUrl());

}

}

//dialog for Edit Group

function openRadEditWindow(Group_Id, Group_Name, Group_Desc) {

var oWnd = radopen("EditGroupDialog.aspx?Group_Id=" + Group_Id + "&Group_Name=" + Group_Name + "&Group_Desc=" + Group_Desc, "EditWindow");

oWnd.center();

}

// Called when a window is being closed.

function OnClientclose(radWindow) {

//to refresh the parent window

document.location.href=document.location.href;

}

</script>


Code for radwindow dialog page is:

<

script type="text/javascript">

//This code is used to provide a reference to the radwindow "wrapper"

function GetRadWindow() {

var oWindow = null;

if (window.radWindow) oWindow = window.radWindow;

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

return oWindow;

}

function ConfigureDialog() {

//Get a reference to the radWindow wrapper

var oWindow = GetRadWindow();

}

function Cancel_Clicked()

{

var oWindow = GetRadWindow();

oWindow.close();

}

</script>

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 18 Sep 2008, 11:37 AM
Hi sirisha,

Please review the following resources on how to implement RadGrid editing with RadWindow:
http://demos.telerik.com/ASPNET/Prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid
http://www.telerik.com/support/kb/article/b454K-gmb-b454T-bmk-b454c-bmk.aspx

Let us know if you need further assistance.

Regards,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
sirisha
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or