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

Errors with hierarchal grid

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nate Pinchot
Top achievements
Rank 1
Nate Pinchot asked on 03 Jan 2008, 04:19 PM
Hello,
As instructed (please reference this post http://www.telerik.com/community/forums/thread/b311D-bbddmm.aspx) I am attempting to use the RadGrid from Prometheus however it seems there is a bug in it with heirarchal grids. I have added the Prometheus Grid to my page (and removed the old ASP .NET one and the references to those controls) and I get an error when attempting to add columns to my DetailTable. If I select my grid, expand MasterTableView in the properties, click on the DetailTables collection, click the Add button, click on the Columns collection (in misc), then click the Add button I get the message "Cannot create an instance of Telerik.Web.UI.GridColumn because it is an abstract class." If I am doing something wrong please let me know.

I also tried bypassing the GUI and converting my old RadGrid code to Prometheus by simply changing the prefix of everything from radG to telerik however then when I try to load the page I get an error message of "Destination array is not long enough to copy all the items in the collection. Check array index and length."

I have included my Prometheus Grid code below in case I have done something wrong, however please be aware that all this code was generated through GUI options /selections (not hand made). I realize this is not a hierarchal grid in the code below, because I can't make one because of errors in the GUI.

<telerik:RadGrid ID="rgCurrentOrders" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" PageSize="20" Skin="Telerik">
    <ExportSettings>
        <Pdf FontType="Subset" PaperSize="Letter" />
        <Excel Format="Html" />
    </ExportSettings>
    <ClientSettings>
        <ClientEvents OnRowClick="RowClicked" OnRowMouseOver="RowMouseOver" />
    </ClientSettings>
    <PagerStyle Mode="NextPrevAndNumeric" Font-Size="10pt" PageButtonCount="20" />
    <MasterTableView CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst"
        Dir="LTR" Frame="Border" TableLayout="Auto">
        <Columns>
            <telerik:GridBoundColumn DataField="order_id" HeaderText="Seq #" UniqueName="order_id" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="cust_facility" HeaderText="Facility" UniqueName="cust_facility" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="address_description" HeaderText="Company" UniqueName="address_description" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="company_name" HeaderText="Company" UniqueName="company_name" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="date_entered" HeaderText="Date Entered" UniqueName="date_entered" DataFormatString="{0:d}" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="work_order_number" HeaderText="WO #" UniqueName="work_order_number" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="equipment_number" HeaderText="Asset Id" UniqueName="equipment_number" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="requestor_name" HeaderText="Requestor" UniqueName="requestor_name" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None"></telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
            </EditColumn>
        </EditFormSettings>
        <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
            Resizable="False" Visible="False">
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
            Visible="False">
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
    </MasterTableView>
</telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 07 Jan 2008, 02:41 PM
Hello Nate,

I have answered your question in the other thread you have opened regarding the same problem:

http://www.telerik.com/community/forums/thread/b311D-bbddmm.aspx


Best regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Nate Pinchot
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or