private void detail_ItemDataBound(object sender, EventArgs e) { Telerik.Reporting.Processing.DetailSection detailSection = (Telerik.Reporting.Processing.DetailSection)sender; TransportListDocument doc = (TransportListDocument)detailSection.DataObject.RawData; if (doc != null) { if( String.IsNullOrEmpty(doc.Memo)) { txtMemo.Visible = false; captionMemo.Visible = false; } txtType.Value = Translator.Translate("_" + doc.DocumentType); listId = doc.TransportListId; driverId = doc.Driver.Id; customerId = doc.Customer.Id; addressId = doc.Address.Id; } }
private void subCarriers_NeedDataSource(object sender, EventArgs e)
{
Telerik.Reporting.Processing.SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender;
if(listId > 0 && driverId > 0 && customerId > 0 && addressId > 0)
{
AmountOfCarriers
amountOfCarriers =
DataFacade.Transport.DFCarrier.GetAmountOfCarriers(listId, driverId,
CustomerId, addressId, LanguageId, BranchId);
if (amountOfCarriers != null && amountOfCarriers.Count > 0)
{
subTLCarriers1.SetPrivateDataMembers(Translator, LanguageId);
subTLCarriers1.DataSource = amountOfCarriers;
}
}
}
private void groupFooterAddress_ItemDataBound(object sender, EventArgs e) { Telerik.Reporting.Processing.ReportSection addressGroupSection = ((Telerik.Reporting.Processing.ReportSection)sender); Telerik.Reporting.Processing.Group customerGroup = ((Telerik.Reporting.Processing.Group)addressGroupSection.Parent.Parent); Telerik.Reporting.Processing.Group driverGroup = ((Telerik.Reporting.Processing.Group)customerGroup.Parent); TransportListDocuments docs = (TransportListDocuments)addressGroupSection.Report.DataSource; int selectedAddressId = ((Address)addressGroupSection.DataObject["Address"]).Id; int selectedCustomerId = ((ObjectModel.Customer.Customer)(customerGroup.GroupHeader.DataObject["Customer"])).Id; int selectedDriverId = ((Driver)(driverGroup.GroupHeader.DataObject["Driver"])).Id; AmountOfCarriers amountOfCarriers = DataFacade.Transport.DFCarrier.GetAmountOfCarriers(docs[0].TransportListId, selectedAddressId, selectedCustomerId, selectedDriverId, LanguageId, BranchId); if (amountOfCarriers != null && amountOfCarriers.Count > 0) { subTLCarriers1.SetPrivateDataMembers(Translator, LanguageId); subTLCarriers1.DataSource = amountOfCarriers; } }protected void MainRadGrid_PreRender(object sender, EventArgs e) { foreach (GridDataItem dataItem in MainRadGrid.MasterTableView.Items) { int previousItemIndex = dataItem.ItemIndex - 1; if (previousItemIndex >= 0) { if (dataItem["Number"].Text == dataItem.OwnerTableView.Items[previousItemIndex]["Number"].Text) { dataItem.OwnerTableView.Items[previousItemIndex]["Number"].RowSpan = 4; dataItem.OwnerTableView.Items[previousItemIndex]["Number"].BackColor = System.Drawing.Color.FromName("#FAF8BB"); dataItem["Number"].Visible = false; } if (dataItem["Color"].Text == dataItem.OwnerTableView.Items[previousItemIndex]["Color"].Text) { dataItem.OwnerTableView.Items[previousItemIndex]["Color"].RowSpan = 2; dataItem.OwnerTableView.Items[previousItemIndex]["Color"].BackColor = System.Drawing.Color.FromName("#B6F1FA"); dataItem["Color"].Visible = false; } } } }Hello. I use teleric reporting for ASP.NET MVC
I want to make visibility of one report's parameter is depend from value of another report parameter.
If parameter "1" is equal to "Value1" I need to specify report's conditions with parameter "2", but if parameter "1" is equal to "Value2" parameter "2" is lost sense and I want to hidden it. (parameter "1" use AvailableValues mode)
Can I implement this scenario? I didn't found parameter changed value event? Is exist another way
Thank you.
Vladislav
Hello All,
I've got what I believe to be a fairly simple question, but I am relatively new to the Telerik and VB "community", so bare with me PLEASE.
I've written a union statement that will bring back a report that looks something like this:
Name Plan Plan Code
-----------------------------------
Will 1A XYZ
Will 2A ABC
Mary 1A XYZ
Mary 1A XXX
Mary 2A ABC
Sam 1A XYZ
Sam 2A ABC
I'm trying to set up a report to identify duplicates.
I would like to identify Mary because she has 2 plan 1A's with different plan codes. Simply to show both the 1A rows for Mary either bolded or italicized, etc. I don't want to remove it because this is for an auditing process for our database. How can I achieve this?
T.I.A.,
B