| <telerik:RadGrid CellSpacing="0" CellPadding="0" OnItemDataBound="rgItemDataBound" Skin="Vista" ShowHeader="true" PagerStyle-Position="TopAndBottom" AllowPaging="true" PageSize="10" AutoGenerateColumns="false" Width="700" ID="RadGrid1" runat="server"> |
| <MasterTableView > |
| <Columns> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <div class="documentRow"> |
| <div class="documentInfo"> |
| <h3> <%# Eval("Subject").ToString() %></h3> |
| <p class="postDate"><strong>Added:</strong> <%# Eval("PostDate", "{0:dd MMM yyyy}")%> | <strong>Views:</strong> <%# Eval("TotalViews").ToString() %></p> |
| <p class="documentBody"> <%# Eval("Body").ToString() %> <%# Eval("PostID", "<a href='/media/p/{0}.aspx'>View document</a>") %></p> |
| </div> |
| </div> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
<telerik:RadToolTip ID="reportInfoTip" runat="server" Animation="Fade" ContentScrolling="Auto"
Position="MiddleRight" RelativeTo="Element" TargetControlID="ddlSiteLogReport"
ShowEvent="FromCode" OffsetX="32" OffsetY="12" ShowCallout="false" EnableViewState="true"
Sticky="true" Width="580px" Height="98px" ManualClose="true" />
| <%@ Page Language="C#" MasterPageFile="~/Office/Office.Master" StylesheetTheme="OfficeSkin" |
| AutoEventWireup="true" ValidateRequest="false" Codebehind="WebMeetingScheduler.aspx.cs" |
| Inherits="MeetingPointOffice.Office.WebMeetingScheduler" meta:resourcekey="PageResource1" UICulture="auto" |
| Culture="auto" %> |
| <telerik:RadScheduler ID="scheduler" runat="server" |
| CustomAttributeNames="MeetingID,MeetingStateID,UserID,Subject,Description" |
| Skin="Outlook" |
| OnFormCreated="scheduler_FormCreated" |
| OnClientAppointmentMoveStart="OnClientAppointmenMoveStartHandler" |
| OnClientAppointmentResizeStart="OnClientAppointmentResizeStartHandler" |
| OnFormCreating="scheduler_FormCreating" |
| OnAppointmentDelete="scheduler_AppointmentDelete" |
| OnAppointmentDataBound="scheduler_AppointmentDataBound" |
| Culture="Portuguese (Portugal)" |
| meta:resourcekey="schedulerResource1" > |
protected
void RadGridFinancials_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
RadGrid1.DataSource = ds.Tables[
"NEWXML"];
// OR should I use
//RadGrid1.MasterTableView.DataSource = ds.Tables["NEWXML"]; But this also does not update mastertableview
// HierarchyLoadMode = "ServerOnDemand"
}
protected void RadGridFinancials_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
{
e.DetailTableView.DataSource = ds.Tables["NEWXML"];
}
But after these calls only detailtableview gets updated and not mastertableview.
So How can I update mastertableview columns after update in row of detailtableview ?
This is required because few columns in mastertable view is valued as sum of a particular column in detailtableview. So an update in row of childtable needs to update parent tableview row.