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

[Solved] Object doesn't support this property or method

7 Answers 287 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mehmet Tirgil
Top achievements
Rank 1
Mehmet Tirgil asked on 03 Dec 2009, 09:54 AM
Hi,
I use VS.Net 2010 Beta 2 and RadControls_for_ASP.NET_AJAX_2009_3_1103. I try to use radgrid paging with ragajaxmanager. When i change pagesize or try to go second page, firstly radajaxloadinpanel works and then a javascript error occurs. It says "Object doesn't support this property or method" and loading panel never stops.
How can i resolve this problem

7 Answers, 1 is accepted

Sort by
0
Accepted
Pavel
Telerik team
answered on 03 Dec 2009, 11:39 AM
Hello Mehmet,

The problem is most probably related to an issue we've found in RadComboBox when running in .Net 4.0 environment. It is discussed in this forum thread. You can try our latest internal build and let us know if you find any problems with it.

Best wishes,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mehmet Tirgil
Top achievements
Rank 1
answered on 03 Dec 2009, 12:40 PM
Hi,
I downloaded the hotfix and set Page.ClientIDMode = UI.ClientIDMode.AutoID in Page_PreRender then it works.
Thanks very much
0
Mehmet Tirgil
Top achievements
Rank 1
answered on 04 Dec 2009, 12:56 PM
Hi,
After solve my problem of pageindex and pagesize change. Now i tried to draganddrop for rows. Using radajaxmanager, radajaxloadingpanel. But when i drag rows to another rows, loading panel starts and never stops. There is a javascript error occur. Says that "Object reference not set to an instance of an object" Telerik.Web.UI.WebResource.axd
What is it?
0
Pavel
Telerik team
answered on 09 Dec 2009, 08:38 AM
Hi Mehmet,

Could you provide more details about the exact scenario? Does it work if you ajaxify the Grid with MS UpdatePanel or if you disable Ajax?

Greetings,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mehmet Tirgil
Top achievements
Rank 1
answered on 09 Dec 2009, 10:18 AM

Hi,
I have a page with master page. Master page has Telerik RadScriptManager
<telerik:RadScriptManager ID="RadScriptManager1" Runat=server></telerik:RadScriptManager>
And page content like this,

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>

<telerik:RadGrid ID="GVW_ITEMS" runat="server" AllowPaging="True"
AutoGenerateColumns="False" GridLines="None" PageSize="50"
EnableLinqExpressions="False" AllowSorting="True"
AllowFilteringByColumn="True">
<ClientSettings AllowRowsDragDrop="True">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="False" />
<Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>
</ClientSettings>
<MasterTableView DataKeyNames="NewsId,ContentId,ParentContentId" HierarchyLoadMode="Client">
<ExpandCollapseColumn></ExpandCollapseColumn>
<SelfHierarchySettings ParentKeyName="ParentContentId" KeyName="ContentId"></SelfHierarchySettings>
<Columns>
<telerik:GridBoundColumn DataField="ListOrder" HeaderText="ListOrder"
UniqueName="ListOrder" AutoPostBackOnFilter="True" ShowFilterIcon="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ContentHeader" HeaderText="ContentHeader"
UniqueName="ContentHeader" AutoPostBackOnFilter="True"
ShowFilterIcon="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ParentContentId"
HeaderText="ParentContentId" UniqueName="ParentContentId" Visible="False">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="GVW_ITEMS">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="GVW_ITEMS"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
</asp:Content>

Paging, sorting, filtering work properly. But when i draganddrop rows there is javascript error like this

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 9 Dec 2009 10:13:25 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 6
Char: 83792
Code: 0
URI: http://localhost/redcode_panel/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a363aef93-d081-4288-a122-fdd681803f66%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1201.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7956e204-712c-4027-b56b-044e9eafd43c%3a16e4e7cd%3af7645509%3aed16cbdc%3a58366029%3a24ee1bba%3a1e771326%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289

My Telereik.Web.UI.dll versiyon is : 2009.3.1201.35

 

0
Mehmet Tirgil
Top achievements
Rank 1
answered on 16 Dec 2009, 11:38 AM
Hi,
I try to debug my project to solve this problem. I have some code in Radgrid RowDrop event. I put breakpoint the first line in the event. But never comes here. Always this error occurs "Object reference not set to an instance of an object" How can i catch this error. I put break point in every event, but there is no error in my events and then suddenly turn to this error "Object reference not set to an instance of an object"
0
Mehmet Tirgil
Top achievements
Rank 1
answered on 18 Dec 2009, 03:47 PM
yes, at last i solve this problem. i put the code (Page.ClientIDMode = UI.ClientIDMode.AutoID) in Page_Prerender before. And then i decide to set all of component's ClientIDMode = AutoID in aspx side. So everything is ok now. draganddrop works perfectly.
Thanks
Tags
General Discussions
Asked by
Mehmet Tirgil
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Mehmet Tirgil
Top achievements
Rank 1
Share this question
or