Hi,
I have a RadComboBox inside the FilterTemplate with OnClientSelectedIndexChanged="NameFilterIndexChanged". I am making radgrid's AllowFilteringByColumn="Flase" when no data is available and AllowFilteringByColumn="true" when data is available.
I am getting error like "0*800a1391 - JavaScript runtime error: 'NameFilterIndexChanged' is undefined" when AllowFilteringByColumn="true". Please help me on this.
Regards,
Venkatesh.
I have a RadDatePicker rdp1 and a Radgrid with 1 RadDatePicker rdp2 in GridTemplateColumn in RadGrid with BatchEdit mode. I want that each time i choose date in rdp1 ( E.g: 20/10/2015 - dd/mm/yyyy ), rdp2 will auto set new value in all row ( E.g: 10/15 - mm/yy ). That all what i want to do.
Any help appreciated,
Thanks,
Hiep
Hi guys,
I am having a RadHTMLChart which it shown in my attached file. I was wondering how do go about displaying number and the percentage base on each stacked column. Currently I am using the code snippet which is shown below:
DataTable source = getData();
// getting my data soruce
ColumnSeries colOnTime =
new
ColumnSeries();
colOnTime.Name =
"WO on Time"
;
colOnTime.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.BarColumnLabelsPosition.Center;
colOnTime.Stacked =
true
;
colOnTime.Appearance.FillStyle.BackgroundColor = System.Drawing.ColorTranslator.FromHtml(
"#33CC33"
);
colOnTime.LabelsAppearance.ClientTemplate =
"#if (value > 0) {# #=value# #} else {# #} #"
;
ColumnSeries colLate =
new
ColumnSeries();
colLate.Name =
"WO less than "
+ ConfigurationManager.AppSettings[
"KPIThreshold"
] +
" days overdued"
;
colLate.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.BarColumnLabelsPosition.Center;
colLate.Stacked =
true
;
colLate.LabelsAppearance.ClientTemplate =
"#if (value > 0) {# #=value# #} else {# #} #"
;
ColumnSeries colVeryLate =
new
ColumnSeries();
colVeryLate.Name =
"WO more than "
+ ConfigurationManager.AppSettings[
"KPIThreshold"
] +
" days overdued"
;
colVeryLate.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.BarColumnLabelsPosition.Center;
colVeryLate.Appearance.FillStyle.BackgroundColor = System.Drawing.ColorTranslator.FromHtml(
"#B80000"
);
colVeryLate.Stacked =
true
;
colVeryLate.LabelsAppearance.ClientTemplate =
"#if (value > 0) {# #=value# #} else {# #} #"
;
ColumnSeries grandTotal =
new
ColumnSeries();
grandTotal.Stacked =
true
;
grandTotal.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.BarColumnLabelsPosition.OutsideEnd;
grandTotal.Appearance.FillStyle.BackgroundColor = System.Drawing.Color.Transparent;
grandTotal.LabelsAppearance.ClientTemplate =
"#if (value > 0) {# #=value# #} else {# #} #"
;
foreach
(DataRow row
in
source.Rows)
{
int
? wo = Convert.ToInt32(row[
"onTime"
]);
colOnTime.SeriesItems.Add(wo);
wo = Convert.ToInt32(row[
"late"
]);
colLate.SeriesItems.Add(wo);
wo = Convert.ToInt32(row[
"verylate"
]);
colVeryLate.SeriesItems.Add(wo);
}
chrtKPI.PlotArea.Series.Add(colOnTime);
chrtKPI.PlotArea.Series.Add(colLate);
chrtKPI.PlotArea.Series.Add(colVeryLate);
chrtKPI.PlotArea.YAxis.LabelsAppearance.TextStyle.Padding =
"5px"
;
chrtKPI.DataBind();
Hi
I design radgrid with advanced databinding.I want to show label message when radgrid is empty and is working perfectly fine but problem is that its also showing in the page load .radgrid bind with button click event if no data found then message will be display. ..by default radgrid shows message but its "No records to display "but its also visible on page load and radgrid dispersal on each post back ...i am working in user control in DNN here..Please suggest anyone how hide my label text in page load ...Thanx in advanced here my code
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
billingRadGrid.Visible = true;
}
BindComboBox();
//lblMessage.Text = string.Empty;
lblMessage.Visible = true;
}
protected void billingRadGrid_OnNeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
billingRadGrid.DataSource = GetGridTable();
}
public DataTable GetGridTable()
{
Decimal amount_from;
if (!Decimal.TryParse(amountFromTb.Text, out amount_from))
{
amount_from = 0;
}
Decimal amount_to;
if (!Decimal.TryParse(amountToTb.Text, out amount_to))
{
amount_to = 0;
}
Decimal duration_from;
if (!Decimal.TryParse(durationFromTb.Text, out duration_from))
{
duration_from = 0;
}
Decimal duration_to;
if (!Decimal.TryParse(durationToTb.Text, out duration_to))
{
duration_to = 0;
}
string dateFrom = DateFromTb.Text;
DateTime dateF = DateTime.ParseExact(dateFrom, "yyyy-MM-dd", null);
string dateTo = DateToTb.Text;
DateTime dateT = DateTime.ParseExact(dateTo, "yyyy-MM-dd", null);
DataController dc = new DataController();
BillingDetail bill = new BillingDetail();
bill.accountNumber = "12004572";
bill.fromDate = dateF;
bill.toDate = dateT;
bill.amountFrom = Convert.ToDecimal(amount_from);
bill.amountTo = Convert.ToDecimal(amount_to);
bill.durationFrom = Convert.ToDecimal(duration_from);
bill.durationTo = Convert.ToDecimal(duration_to);
bill.traficType = trafictypeCombo.SelectedItem.Text;
bill.terminateState = stateNameTb.Text;
bill.number = bTNComboBox.SelectedValue;
bill.lineType = lineTypeComboBox.SelectedItem.Text;
bill.dialedNum = Convert.ToString(dialedNumber.Text);
DataTable dtBill = dc.GetUsageDetail_bill(bill);
if (dtBill.Rows.Count > 0)
{
billingRadGrid.Visible = true;
lblMessage.Text = string.Empty;
lblMessage.Visible = false;
}
else
{
lblMessage.Visible = true;
billingRadGrid.Visible = false;
lblMessage.Text = "No Records To Display";
lblMessage.ForeColor = Color.Red;
}
return dtBill;
}
How to turn off 'Enable Track Changes Override' by default? I want want it to be ON only whne it is clicked.
I am using Telerik version v2014.3.1209.35
Hi,
I have below two questions:
1. Can we increase the chart area as the number of SeriesItem increases the chart messes up. PFA image.
2. Can I have any example or demo of RadpivotGrid inegration with PieChart, currently I am having integration with BarSeries and ColumnSeries(which are working fine) but pie chart is not working.
Dear Telerik Forum:
I began testing your product for possible purchase yesterday. I hope to use Css with your controls. As of yet, I have not been able to get any of these three RadButton properties working: CssClass, HoveredCssClasss, and PressCssClass.
I reviewed all 21 RadButton demos you include within Telerik’s Live Demo’s. I looked at the Properties of every single RadButton on all 21 of those pages; hundreds of examples. Surprisingly I found that there is not a single example on any of these pages where Telerik used any of these three properties - CssClass, HoveredCssClasss, and PressCssClass - for anything. Not even once were any of them used.
I decided to write you at the Forum, because I would think that other “Newbies” would benefit seeing the experience of one like themselves without any experience with your product upon which to draw from. Obviously, I am doing something wrong, and amhoping you can correct my code:
I began with RadButton because I think this would likely be your simplest control. Here are the steps I took to add it to my test page, “TelerikButtonTest.aspx”. First, within my test ASP.Net website that does have MasterPages, I created a new page, “TelerikButtonTest.aspx”. I attempted to then drag and drop a Telerik RadButton to this otherwise blank page. Your Telerik system then complained that I should first drag and drop a RadScriptManager onto the page first. I complied. However, I wonder why there should have to be a RadScriptManager on this page, when I had already added a RadScriptManager to the sites MasterPage. Since the MasterPage is treated by VS as part of webpages include it, why couldn’t Telerik system use the RadScriptManager already available for its use. Does this mean that a RadScriptManager has to be copied to every single webpage and component in the website that uses Telerik controls? Why?
I then create a new “.Css” page, “TestSyleSheet.css”, and added three classes to it as follows:
.RadButtonDefault
{
background-color: Yellow;
}
.RadButtonHover:hover
{
background-color: Orange;
}
.PressCssClick
{
background-color: Red;
}
Returning to the “TelerikButtonTest.aspx” page, I then added these three classes – “RadButtonDefault”, “RadButtonHover”, and “PressCssClick” – to their waiting properties as follows:
<telerik:RadButton ID="RadButton1" runat="server" CssClass="RadButtonDefault" ResolvedRenderMode="Classic" Text="RadButton"
HoveredCssClass="RadButtonHover" onclick="RadButton1_Click" PressedCssClass="PressCssClick"></telerik:RadButton>
I then right clicked on the Designer for this TelerikButtonTest.aspx page and selected “View in Browser”. I had hoped that when the page displayed in the browser, that I would see “Yellow” as the background for the RadButton. I did not see that, but instead only the gray of a the RadControl bear. I ran my mouse over the top of the running RadButton control, expecting then to see the control in Orange. No Orange was seen, but the RadControl remained gray. Lastly, I clicked the running RadButton control expecting to see Red now covering the button. Again I was disappointed because for the third time the control remained gray. As trivial as this test was, I must be doing something wrong. Please advise what is wrong with this code.
I am attaching the source as I described here. Please advise what is wrong, and how then to get these three properties working. I've tried to phrase my question as simply as possible. Please advise what is wrong within my code.
Your attention to this matter is appreciated.
Sincerely,
Pastor Burt
I am Exporting RadGrid with aprox 40000 records to excel. But only 100 records are showing in Excel file. which is record of first 10 Pages in RadGrid. Here's my code.
protected void ImageButton_Click(object sender, ImageClickEventArgs e)
{
RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
RadGrid1.ExportSettings.IgnorePaging = true;
RadGrid1.DataBind();
RadGrid1.ExportSettings.ExportOnlyData = true;
//RadGrid1.ExportSettings.OpenInNewWindow = true;
RadGrid1.MasterTableView.ExportToExcel();
}
RadGrid :
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="10" GridLines="None" >
<ClientSettings>
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
<Virtualization EnableVirtualization="true" />
</ClientSettings>
</telerik:RadGrid>
The demo page for the ASP.NET control - it has a navigation bar and the hamburger icon on the left side. If you click on that icon it will display a menu that occupy the left hand side.
Can this be replicated using Telerik control? A simple sample would be nice.
Thanks.