or
<
telerik:RadWindowManager
ID
=
"RadWindowManager2"
OnClientShow
=
""
runat
=
"server"
OnClientClose
=
""
ReloadOnShow
=
"false"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"radWindowLocationPopup"
OpenerElementID
=
""
OffsetElementID
=
""
ClientCallBackFunction
=
"CallBackFunctionService"
Behavior
=
"Close"
VisibleTitlebar
=
"false"
Modal
=
"true"
Width
=
"578px"
runat
=
"server"
Height
=
"450px"
NavigateUrl
=
" "
VisibleStatusbar
=
"false"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
function OpenRadWindowLocaltionPopup(externalScheduling) {
var Url = "./Locationpopup.aspx?EnableScheduling=" + externalScheduling;
var oWnd = radopen(Url, "radWindowLocationPopup");
oWnd.SetUrl(oWnd.GetUrl());
return false;
}
function CallBackFunctionService(radWindow, returnvalue) {
try {
if (returnvalue != "") {
var textBoxLocation = document.getElementById("ctl00_ContentPlaceHolder1_textBoxExternalLocation");
var hiddenLocationID = document.getElementById("ctl00_ContentPlaceHolder1_hiddenFieldLocationId");
var hiddenLocationName = document.getElementById("ctl00_ContentPlaceHolder1_hiddenLocationName");
var rtnValue = returnvalue.split("~");
hiddenLocationID.innerText = rtnValue[1];
textBoxLocation.value = rtnValue[0];
hiddenLocationName.value = rtnValue[0];
}
else {
document.getElementById("ctl00_ContentPlaceHolder1_textBoxExternalLocation").value = "";
}
CheckExternalSchedulingEnable();
}
catch (err) {
}
return false;
}
void grid_UpdateCommand(object source, GridCommandEventArgs e)
{
Hashtable newValues = new Hashtable();
GridEditableItem item = e.Item as GridEditableItem;
item.OwnerTableView.ExtractValuesFromItem(newValues, item);
Response.Write("Updated Name: " + newValues["ContactName"].ToString());
}
Hashtable newValues = new Hashtable();
foreach (GridEditableItem Item in grid.MasterTableView.Items)
{
Item.OwnerTableView.ExtractValuesFromItem(newValues, (GridEditableItem)Item);
string str = newValues[0].ToString();
}