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

Error creating template groups

2 Answers 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 19 Oct 2010, 05:48 AM
Hey everyone,

I am getting this error as in attached file,...And also i have another form--aspx
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
                    OnNeedDataSource="RadGrid1_NeedDataSource"AllowPaging="True" AllowSorting="True"
                    GridLines="None" Skin="Office2007" >
                        <MasterTableView>
                            <RowIndicatorColumn>
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn>
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                        </MasterTableView>
                        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                        </ClientSettings>
                    </telerik:RadGrid>
                </telerik:RadAjaxPanel>
cs is--
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            dtValues = new DataTable();
            dtValues.Columns.Add("Items");
            dtValues.Columns.Add("Rate");
            dtValues.Columns.Add("Quantity");
            dtValues.Columns.Add("Amount");
        }
it is not workin.Showing parser error.Don't know why?...plz help me resolve these?

Thanks
Amit

2 Answers, 1 is accepted

Sort by
0
Amit
Top achievements
Rank 1
answered on 19 Oct 2010, 05:58 AM
this is for parser error..
0
Pavlina
Telerik team
answered on 19 Oct 2010, 09:36 AM
Hello Amit,

More information about how to avoid this error is available in the following forum post  :
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/ajax-2-9-q2-release-giving-me-gray-hair.aspx

Additionally, to avoid the parser error you should put interval before AllowPaging property:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" OnNeedDataSource="RadGrid1_NeedDataSource"
        AllowPaging="True" AllowSorting="True" GridLines="None" Skin="Office2007">
        <MasterTableView>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
        </MasterTableView>
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
        </ClientSettings>
    </telerik:RadGrid>
</telerik:RadAjaxPanel>

I hope this helps.

Sincerely yours,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Amit
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or