PDA

View Full Version : [CLOSED]Microsoft JScript runtime error: Object doesn't support this property or method Ext.Msg.getDialog().setPosition(440,440)



velusoft
Nov 28, 2014, 5:54 AM
I am getting the below exception.
Microsoft JScript runtime error: Object doesn't support this property or method
Ext.Msg.getDialog().setPosition(440,440)

i am working on Ext.Net Version 2.5.X.

Since our release date is nearing, please help on this ASAP.
Same code is working without any issue with Ext.net V1.7

Code for your reference:



public void DeleteHighlightsRecords_Click(object sender, DirectEventArgs e)
{
RowSelectionModel rowSelectedRecords = this.GrdHighlightsAchievements.SelectionModel.Prim ary as RowSelectionModel;
if (rowSelectedRecords.SelectedRows.Count < 1)
{
Helper.ShowMessage(ErrorType.ValidationAlert.ToStr ing(), WebResource.StatusTitle_Error, WebResource.GeneralMsg_PleaseSelect);
return;
}
else
{
X.Msg.Confirm(WebResource.GeneralMsg_HA_Confirmati on
, WebResource.GeneralMsg_Delete + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
, new JFunction("EXTJS.ConfirmMessageResultForHighlightAchivements( result);", "result")).Show();
}

SetPopUpPositionFor4Up();
}

private void SetPopUpPositionFor4Up()
{
if (HdnIsPagePopup.Text == "1")
X.MessageBox.Call("getDialog().setPosition", new object[] { 440, 350 });
else
X.MessageBox.Call("getDialog().setPosition", new object[] { 440, 440 });
}

Daniil
Dec 18, 2014, 7:49 AM
Hi @velusoft,

Please try to replace

X.MessageBox.Call("getDialog().setPosition", new object[] { 440, 350 });
with

X.MessageBox.Call("setPosition", new object[] { 440, 350 });

velusoft
Dec 18, 2014, 9:52 AM
Thanks. it is working.