ASP.NET - how can we update parent row in hierarchal telerik radgrid when updating child row

Asked By Arvind Singh on 11-Jun-09 03:40 AM

hi,

how can we update parent row in hierarchal telerik radgrid when updating child row? As per now, it is only updating the child row [detailtableview] when child row is updated. But as per my requirement, once child row is updated, depending upon the updation, 2 columns in parent row also needs to be updated and this is not happening as RadGrid.Rebind() function is not working as expected in my case.

Please help if someone have used radgrid for such requirements. Thanks in advance



Alice J replied to Arvind Singh on 11-Jun-09 05:41 AM

These are a couple of good links that would guide you through updating parent row in hierarchial telerik radgrid when updating child row

http://www.telerik.com/community/forums/winforms/gridview/iterating-the-child-rows-of-each-parent-row-in-hierarchical-grid.aspx

http://mono.telerik.com/Grid/Examples/Programming/DetailTableDataBind/DefaultCS.aspx

eliza sahoo replied to Arvind Singh on 11-May-10 03:23 AM

By default RadGrid has a Property to add New Records. It's style depends upon the inbuilt Skin you apply in your RadGrid. Sometimes you may want to diaplay Custom image instad of the default one. Following code helps you to add Custom image. Here i added a Custom image for "Add New Records" in RadGrid.

 

<

 <

    <CommandItemTemplate>         <asp:ImageButton ID ="imgInsert" runat = "server" ImageUrl="~/Image/icons_add.jpg" CommandName = "InitInsert" ToolTip ="Insert New Record" />


</CommandItemTemplate>MasterTableView>

</

http://www.mindfiresolutions.com/How-to-add-custom-image-in-radgrid-585.php