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

Unable to cast object of type 'ASP.folder_master' to type 'Telerik.Web.UI.GridTableView'

2 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
d-cpt
Top achievements
Rank 2
d-cpt asked on 26 Aug 2008, 02:42 PM
I have a RadGrid with Filter on a web content page. I can sort or navigate page to page w/o any problem. When I use filter, I get this error 'Unable to cast object of type 'ASP.folder_master' to type 'Telerik.Web.UI.GridTableView'. It gives the same error when I try the Grouping function. Please help. Thanks.

Project: VS 2008 runs as Web Site on IIS 7 - .NET 3.5

<telerik:RadGrid ID="radgridUsers" runat="server" AutoGenerateColumns="False" Width=100% Skin="WebBlue" GridLines="None" ShowStatusBar=true ShowFooter=true OnSortCommand="radgridUsers_SortCommand" OnPageIndexChanged="radgridUsers_PageIndexChanged" OnItemCreated="radgridUsers_ItemCreated" OnItemDataBound="radgridUsers_ItemDataBound" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" >
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True" TableLayout="Auto">
<Columns>
<telerik:GridBoundColumn DataField="UserId" UniqueName="columnPersonId" Visible="False" />
<telerik:GridBoundColumn DataField="UserName" HeaderText="Name" UniqueName="columnUserName" SortExpression="UserName" />
</Columns>
<
/MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="false" />
</ClientSettings>
</telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 29 Aug 2008, 11:12 AM
Hi d-cpt,

Unfortunately from the provided information so far I am not able to determine the exact cause for the issue you are facing. It seems that somewhere in your logic there is an attempt to cast the page itself to Telerik.Web.UI.GridTableView.

Can you check whether moving the grid on another page alleviates the abnormality? If this does not help, I will appreciate if you prepare a small working version of your project and send it attached to a standard support ticket. I will test it locally and will get around to you with my findings.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
d-cpt
Top achievements
Rank 2
answered on 29 Aug 2008, 06:47 PM
Hi Stephen,
Thanks for your email. I recreated the project and it works OK now.
Regards,
d-cpt

Tags
Grid
Asked by
d-cpt
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
d-cpt
Top achievements
Rank 2
Share this question
or