Hi,
I am experiencing an exception Sys.ArgumentNullException: value cannot be null: parameter name: panelsCreated[6].
Not sure what is causing it, but I suspect the exception has something to do with RadWindow since it occurs when I open a RadWindow repeatedly.
Thanks in advance.
The markup for the 2 RadWindows are as follows:
<
telerik:RadWindowManager
ID
=
"Singleton"
runat
=
"server"
Animation
=
"None"
Behaviors
=
"Move"
Width
=
"900px"
>
<
windows
>
<
telerik:RadWindow
ID
=
"rwProtoResponseMediaEdit"
Behaviors
=
"Move, Resize, Maximize"
Skin
=
"Telerik"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"false"
OnClientClose
=
"rwProtoResponseMediaEdit_ClientClose"
BorderWidth
=
"0"
Width
=
"950px"
Modal
=
"true"
runat
=
"server"
Height
=
"530px"
Title
=
"Prototype Media"
NavigateUrl
=
"~/Agency/Authoring/ProtoResponseMediaEdit.aspx"
>
</
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwResource"
runat
=
"server"
Title
=
"Pick a Resource"
VisibleStatusbar
=
"false"
Modal
=
"true"
NavigateUrl
=
"~/Agency/Search/ResourceSearch.aspx"
Width
=
"800"
Height
=
"650"
>
</
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwPatientProfileEdit"
Behaviors
=
"Move, Resize, Maximize"
Skin
=
"Telerik"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"false"
OnClientClose
=
"rwPatientProfileEdit_ClientClose"
BorderWidth
=
"0"
Width
=
"950px"
Modal
=
"true"
runat
=
"server"
Height
=
"530px"
Title
=
"Prototype Patient"
NavigateUrl
=
"~/Agency/Authoring/PatientProfileEditEdit.aspx"
>
</
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwPrototypeMediaEdit"
Behaviors
=
"Move, Resize, Maximize"
Skin
=
"Telerik"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"false"
OnClientClose
=
"rwPrototypeMediaEdit_ClientClose"
BorderWidth
=
"0"
Width
=
"950px"
Modal
=
"true"
runat
=
"server"
Height
=
"530px"
Title
=
"Prototype Media"
NavigateUrl
=
"~/Agency/Authoring/PrototypeMediaEdit.aspx"
>
</
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwPrototypeSummary"
Behaviors
=
"Move, Resize, Maximize"
Skin
=
"Telerik"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"false"
OnClientClose
=
"rwPrototypeSummary_ClientClose"
BorderWidth
=
"0"
Width
=
"950px"
Modal
=
"true"
runat
=
"server"
Height
=
"530px"
Title
=
"Prototype Summary"
NavigateUrl
=
"~/Agency/Authoring/PrototypeSummary.aspx"
>
</
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwPrototypeQuestionTypeChange"
Behaviors
=
"Move, Resize, Maximize"
Skin
=
"Telerik"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"false"
OnClientClose
=
"rwPrototypeQuestionTypeChange_ClientClose"
BorderWidth
=
"0"
Width
=
"950px"
Modal
=
"true"
runat
=
"server"
Height
=
"530px"
Title
=
"Prototype Question Type"
NavigateUrl
=
"~/Agency/Authoring/PrototypeQuestionTypeChange.aspx"
>
</
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwPrototypeBlueprint"
Behaviors
=
"Move, Resize, Maximize"
Skin
=
"Telerik"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"false"
OnClientClose
=
"rwPrototypeBlueprint_ClientClose"
BorderWidth
=
"0"
Width
=
"950px"
Modal
=
"true"
runat
=
"server"
Height
=
"530px"
Title
=
"Prototype Blueprint"
NavigateUrl
=
"~/Agency/Authoring/PrototypeBlueprint.aspx"
>
</
telerik:RadWindow
>
</
windows
>
</
telerik:RadWindowManager
>
The javascript for opening the RadWindows are as follows:
function
OpenProtoResponseMediaEdit(prid, prrrsi)
{
var
url =
'<%= ConvertRelativeUrlToAbsoluteUrl("~/Agency/Authoring/ProtoResponseMediaEdit.aspx") %>'
;
url = url +
"?prid="
+ prid +
"&prrrsi="
+ prrrsi;
logsafe(url);
var
oWnd = $find(
"<%= rwProtoResponseMediaEdit.ClientID %>"
);
//oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
oWnd.show();
oWnd.setSize(950, 800);
oWnd.setUrl(url);
oWnd.minimize();
oWnd.maximize();
oWnd.restore();
oWnd.center();
}
function
rwProtoResponseMediaEdit_ClientClose(sender, args) {
var
arg1 = args.get_argument();
//logsafe("rwProtoResponseMediaEdit_ClientClose");
//logsafe(arg1);
if
(arg1 && arg1.indexOf(
'ok'
) === 0) {
SetNeedToConfirm(
'true'
);
//alert('needToConfirm = true');
}
var
hidAddOptionsMediaAjax = $(
'#'
+
'<%=hidAddOptionsMediaAjax.ClientID%>'
);
var
btnAddOptionsMediaAjax = $(
'#'
+
'<%=btnAddOptionsMediaAjax.ClientID%>'
);
hidAddOptionsMediaAjax.val(arg1);
btnAddOptionsMediaAjax.click();
}
//Get current RadWindow
function
GetRadWindow() {
var
oWindow =
null
;
if
(window.radWindow)
oWindow = window.radWindow;
else
if
(window.frameElement && window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return
oWindow;
}
function
CloseRadWindow(arguments) {
var
wnd = GetRadWindow();
wnd.close(arguments);
}
function
OpenResourcePicker() {
var
oWindow = GetRadWindow();
var
oManager = oWindow.get_windowManager();
setTimeout(
function
() {
var
winResourceSearch = oManager.getWindowByName(
"rwResource"
);
//winResourceSearch.remove_close(rwResource_ClientClose); // Remove the close handler, if exist
winResourceSearch.add_close(rwResource_ClientClose);
// Set the close handler
oManager.open(
null
,
"rwResource"
);
// Open RadWindow via RadWindowManager
}, 0);
}
function
rwResource_ClientClose(sender, args) {
//logsafe('ProtoResponseMediaEdit rwResource_ClientClose');
//logsafe(args.get_argument());
var
arg1 = args.get_argument();
sender.remove_close(rwResource_ClientClose);
// Remove the close handler, if exist
setTimeout(
function
() {
var
hidResourcePickerPostback = $(
'#'
+
'<%=hidResourcePickerPostback.ClientID%>'
);
hidResourcePickerPostback.val(arg1);
var
btnResourcePickerPostback = $(
'#'
+
'<%=btnResourcePickerPostback.ClientID%>'
);
btnResourcePickerPostback.click();
}, 100);
}
We are using telerik control in our app with windows authentication and upload fails in load balancer with ie11. With Compatibility view it doesn't work either.
One of the solution that has been posted in the online is to issue a HEAD or a GET request prior to the POST.
How can this be done with the Telerik control?
Thanks!
We have nested Nested tabstrip/multipage(s) and are using RenderSelectedPageOnly="true". It seems that nested tabstrips and the selected child pages are also rendered before the parent tab item is clicked which means for us about 6 pages are rendered as soon as the user hits the home page, incurring not only web but RDBMS traffic.
It seems this example - http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx
still loads the selectedpage="0" before it is clicked (which in our case for instance would be when the parent tabstrip/multipage is loaded.
Is there a way to avoid this behaviour and only load the child selectedpage when the parent tab containing the child tabstrip/multipage is selected?
Hi,
I have two questions.
1. I need to have a client side event handler be called whenever user interacts with any of the RadEditors that exist on the page. What event I need to use?
2. Also, I can't change the markup or the code behind to add this event handler. So, how will I find all RadEditors on the page and attach this event using javascript?
Any help is greatly appreciated.
Thanks,
Ana
Does Grid support export to excel (xlsx) when groupping is enabled?
I was not able to find any demo?
Hi,
I am a RadGrid newbie and would appreciate help with a few items.
I am using RadGrid in a SharePoint 2010 visual web-part. I am also using server side code.
Skin = office2010blue
Here are my questions:
1. How do I declaratively set the font for the rows (not just the header)?
2. How do I specify the columns and their width?
3. How do I at runtime set the background color of individual cells and for entire row?
4. How do I stop inheriting the font color from twitter bootstrap css?
Hi ,
how can i get target grid cell index or row key when i drag and drop my cell with same grid. I have attached screen shot and sample code below. Any help will be appreciated.
var dragging = false;
var dragContainer = null;
var currentDraggedElement = null;
function onColumnCreated(sender, args) {
// hook to columns mousedown event;
$addHandler(sender.get_element(), "mousedown", onMouseDown);
}
function onGridCreated() {
// hook to columns document's events
$addHandler(document, "mouseup", onMouseUp);
$addHandler(document, "mousemove", onMouseMove);
}
function onMouseMove(e) {
if (dragging && dragContainer) // if in drag mode move the dragged container
{
dragContainer.style.display = "";
dragContainer.style.position = "absolute";
Telerik.Web.UI.Grid.PositionDragElement(dragContainer, e);
}
}
function onMouseDown(e) {
//create the dragged container
dragging = true;
dragContainer = document.createElement("div");
dragContainer.style.position = "absolute";
dragContainer.style.zIndex = 99999;
dragContainer.style.display = "none";
document.body.insertBefore(dragContainer, document.body.firstChild);
var currentElement = Telerik.Web.UI.Grid.GetCurrentElement(e);
//get parent row element then get the OnwerTableView in order to get objects for the column
var row = Telerik.Web.UI.Grid.GetFirstParentByTagName(currentElement, "tr");
if (row.id == "")
return;
var item = $find('<%=grdAvailability.ClientID%>').get_masterTableView()._getRowByIndexOrItemIndexHierarchical(row)
var ownerTableViewId = item.id.split("__")[0];
var ownerTableView = $find(ownerTableViewId);
if (!ownerTableView)
return;
currentDraggedElement = currentElement;//store the current cell as we will need it inside the mouseup event
dragContainer.innerHTML = currentElement.innerHTML;
Telerik.Web.UI.Grid.ClearDocumentEvents();
}
function onMouseUp(e) {
if (dragging) {
// get the element that you are dropping on
var currentElement = Telerik.Web.UI.Grid.GetCurrentElement(e);
if (dragContainer !== null && dragContainer.innerHTML !==null) {
currentElement.value = dragContainer.innerHTML;
currentDraggedElement.isDragged = true;
PageMethods.GetReservationKeyWithDocNo(dragContainer.innerHTML,
function (result) {
if (result !== null) {
url = '../Reservation/Update/NewMoveReservation.aspx?RK=' + result;
ShowRadWindow('Move Folio', url, 650, 530)
}
}, function (e) {
alert(e.get_message);
$telerik.$.unblockUI();
});
}
Telerik.Web.UI.Grid.RestoreDocumentEvents();
document.body.removeChild(dragContainer);
dragContainer = null;
currentDraggedElement = null;
}
dragging = false;
}
function onGridDestroying() {
$removeHandler(document, "mouseup", onMouseUp);
$removeHandler(document, "mousemove", onMouseMove);
}