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

Custom Edit form not loaded on Detail table

2 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kalyan
Top achievements
Rank 1
Kalyan asked on 29 Jun 2011, 10:06 PM
Hi,

When MasterTableView is Set with HierarchyLoadMode="Client" HierarchyDefaultExpanded="true", the custom edit form on DetailsTable does not load. And also all the items within that hierarchy disappear with edit button is clicked.
<MasterTableView GridLines="None" Width="100%" GroupLoadMode="Client" DataKeyNames="Title" AllowMultiColumnSorting="True" HierarchyLoadMode="Client" HierarchyDefaultExpanded="true" ExpandCollapseColumn-ButtonType="ImageButton" ExpandCollapseColumn-CollapseImageUrl="/_layouts/images/minus.gif" ExpandCollapseColumn-ExpandImageUrl="/_layouts/images/plus.gif">

Can you please let me know how to load the edit form (UserControl) on child items with HierarchyLoadMode="Client" HierarchyDefaultExpanded="true" set on master tableview?

Regards,
Kalyan

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Jun 2011, 05:46 AM
Hello Kalyan,

I tried the same scenario and it is working fine in my end. Here is the code that I tried which worked as expected.

aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1">
   <MasterTableView DataKeyNames="Title" EditMode="InPlace" ExpandCollapseColumn-ButtonType="ImageButton"
                HierarchyLoadMode="Client" HierarchyDefaultExpanded="true" GroupsDefaultExpanded="true">
       <Columns>
        . . . .
       </Columns>
          <DetailTables>
              . . . .
             <EditFormSettings UserControlName="UserControl.ascx" EditFormType="WebUserControl">
             </EditFormSettings>
          </DetailTables>
   </MasterTableView>
</telerik:RadGrid>

Thanks,
Princy.
0
Kalyan
Top achievements
Rank 1
answered on 30 Jun 2011, 02:51 PM
Hi Princy,

Thanks for the prompt response. Got it to work, I had to make changes to my NeedDataSource method.

Regards,
Kalyan
Tags
Grid
Asked by
Kalyan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kalyan
Top achievements
Rank 1
Share this question
or