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

[Solved] Hierarchy Grid Forcing Postback

1 Answer 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tim
Top achievements
Rank 1
tim asked on 10 Feb 2010, 07:47 PM
I attempted to follow the hierarchy example at http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx, but am getting a post back when I go to expand a row.

Here's what I have, can you tell me what I'm doing wrong?

Thanks.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="ProjectGrid"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ProjectGrid"  LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
    <telerik:RadSplitter ID="Splitter" runat="server" Orientation="Horizontal" width="100%"
        <telerik:RadPane ID="ProjectPane" runat="server" width="100%"
            <telerik:RadToolBar ID="ProjectToolBar" runat="server" width="100%"
                <Items> 
                    <telerik:RadToolBarButton Text="My Projects" Font-Bold="True" Font-Size="16px" Font-Names="arial" Width="100%" /> 
                </Items> 
            </telerik:RadToolBar> 
            <telerik:radgrid ID="ProjectGrid" width="100%" runat="server" AllowSorting="true" OnNeedDataSource="ProjectGrid_NeedDataSource" AutoGenerateColumns="false" OnDetailTableDataBind="ProjectGrid_DetailTableDataBind" ShowStatusBar="True" AllowMultiRowSelect="false"
                <Clientsettings enablepostbackonrowclick="true"
                    <Selecting AllowRowSelect="true" /> 
                </Clientsettings> 
                <MasterTableView width="100%" DataKeyNames="projectnumber" HierarchyLoadMode="ServerOnDemand"
                    <DetailTables> 
                        <telerik:GridTableView DataKeyNames="projectnumber" Name="ProjectDetails" width="100%"
                            <Columns> 
                                <telerik:GridBoundColumn HeaderText="Tasks" HeaderButtonType="TextButton" DataField="taskdesc" /> 
                            </Columns> 
                        </telerik:GridTableView> 
                    </DetailTables> 
                    <Columns> 
                        <telerik:GridBoundColumn HeaderText="Project Number" DataField="projectnumber"></telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="Description" DataField="projectdesc"></telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="Printer Date" DataField="toprinterdate"></telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="CSR" DataField="fname" /> 
                    </Columns> 
                   </MasterTableView>  
            </telerik:radgrid> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Feb 2010, 10:43 AM
Hi Tim,

I followed your scenario in order to replicate the issue, but to no avail. Please find attached a simple working application which is working as expected. Give it a try and let me know if it works for you or if I am leaving something out.

Greetings,
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
tim
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or