Hello,
When I use async upload with the image manager, the file is correctly uploaded to the folder but when it try to see the image, I have an error : "Unauthorized: Access is denied due to invalid credentials".
My folder has this permission :
IUSR
But the uploaded image has not IUSR in the security tab. If I add IUSR user with read permission, it works.
When I use classic upload, the image is correctly uploaded and I have no error.
And the uploaded image has IUSR in the security tab.
Any idea why I have this bug ?
Hello,
I am creating htmlCharts dynamically from server side and trying to put a tooltip which shows both x and y axis values in the tooltip label.
As everything is dynamic, I can only code from the server side. I tried using
areaSeries.TooltipsAppearance.DataFormatString = "{0}% FCI in {1}Year";
but it looks like that we can't use {1} for areaSeries.
Then I tried using clientTemplate following the demo:
http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/clienttemplates/defaultcs.aspx
but none of these tell how to code purely from server side. I am pasting my concerned code for better insight
//To create chart
RadHtmlChart htmlChartACIOverStudyPeriod = CreateHtmlChart("Year", "FCI", "%");
htmlChartACIOverStudyPeriod.ChartTitle.Text = "FCI Over Study Period";
htmlChartACIOverStudyPeriod.ID = "rhcFCIOverStudyPeriod";
//To clear the plotarea and xaxis for the chart
htmlChartACIOverStudyPeriod.PlotArea.XAxis.Items.Clear();
htmlChartACIOverStudyPeriod.PlotArea.Series.Clear();
//To check if datatable has some value for selected agency and facility
if (dtCurEstTotalOverStudyPeriod.Rows.Count > 0)
{
int rowCount = 0;
ColumnSeries columnSeries = new ColumnSeries();
columnSeries.LabelsAppearance.Visible = false;
// columnSeries.TooltipsAppearance.DataFormatString = "{0}% FCI in {1}Year";
columnSeries.TooltipsAppearance.ClientTemplate = " #=dataItem.CurEstTotal# justForTest";
for (Int32 intCurrent = intFiscalYear; intCurrent <= intMaxYear; intCurrent++)
{
htmlChartACIOverStudyPeriod.PlotArea.XAxis.Items.Add(new AxisItem(intCurrent.ToString()));
decimal ACI = 0;
CategorySeriesItem categorySeriesItem = new CategorySeriesItem();
//to check if row in the table exists
if (rowCount < dtCurEstTotalOverStudyPeriod.Rows.Count)
{
if (dtCurEstTotalOverStudyPeriod.Rows[rowCount]["AnoFiscalYear"].Equals(intCurrent))
{
//To plot the y-axis
ACI = (Convert.ToDecimal(dtCurEstTotalOverStudyPeriod.Rows[rowCount]["CurEstTotal"]) / CurEstReplOverStudyPeriod) * 100;
rowCount++;
}
else
{
ACI = 0;
}
categorySeriesItem.Y = Math.Round(ACI, 3);
columnSeries.SeriesItems.Add(categorySeriesItem);
}
}
htmlChartACIOverStudyPeriod.PlotArea.Series.Add(columnSeries);
}
dockA2.ContentContainer.Controls.Add(htmlChartACIOverStudyPeriod);
this results into attached snapshot. Please help me to get x-axis value in the tooltip of ColumnChart.
Thnaks,
Somya
Hi,
I have a radgrid with a lazy load method to handle the binding. The binding is done via a button's CustomParameter that, when it's clicked, provides the parameters for the query that populates the grid. Problem is: the Grid's NeedDataSource is triggered before the rebind call on the button's click event and messes up the whole thing.
Here is the grid NeedDataSource, where the 'bind' variable is to prevent the call when first accessing the page
protected
void
Quotas_Table_NeedDataSource(
object
sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
if
(bind && Session[
"SessionId"
] !=
null
)
{
Quotas_Table.DataSource = Empresas_DAL.GetQuotasList((
string
)Session[
"TP_QT_"
+ (
string
)Session[
"SessionId"
]],
int
.Parse((
string
)Session[
"PRD_QT_"
+ (
string
)Session[
"SessionId"
]]), DateTime.Now.Year);
}
}
and here is the button's event, where all variables here are strings:
protected
void
Compilar_Click(
object
sender, EventArgs e)
{
LinkButton lnk = sender
as
LinkButton;
string
param = lnk.Attributes[
"CustomParameter"
];
tipo = param.Substring(0, 1);
periodo = param.Substring(1);
Session[
"TP_QT_"
+ (
string
)Session[
"SessionId"
]] = tipo;
Session[
"PRD_QT_"
+ (
string
)Session[
"SessionId"
]] = periodo;
bind =
true
;
Quotas_Table.Rebind();
}
Hi
Is it possible to change in the code behind the order for statically created panels?
The only way I can think of doing it is to create each panel as a user control, and dynamically add them.
Andy
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
VisibleStatusbar
=
"false"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"TaskList"
runat
=
"server"
Title
=
"TaskList"
modal
=
"true"
OnClientClose
=
"OnClientClose"
></
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
//Call a javacript code
<
script
type
=
"text/javascript"
>
function OnClientClose(oWnd, args)
{
oWnd.setUrl("XYZ.aspx");
}
</
script
>
Hello,
I have a bar chart (attached) the labels need to be moved outside the chart on the left so they are not covering the bars.
I have seen this as an issue going back to 2012 in the forums.. Its 2017 so I cant imagine this is still an issue.
If it is still an issue what is the work around? Is there a hack? I looked to see if I could use CSS but it does not seem so.
I tried AxisCrossingValue... it moves the bars so they don't line up with the correct X-Axis Labels... so that does not work.
I really need this to work.
Thanks,
Charles
I have a RadAsyncUpload somewhere on a page and a RadGrid in the same page.The RadGrid has a column for every row that is a LinkButton which executes a grid ItemCommand. The ItemCommand fetches the ID associated to the row and stores it in a session variable. I want the item command to also then bring up the RadAsyncUpload window so the user could select files.
The way I tried to achieve this so far is by calling a javascript function which finds the RadAsyncUpload control and performs a button click. This does not happen after postback, however.
It is crucial to me that each file I upload is associated with a row ID. Is there a way I can achieve this scenario or am I limited by the RadAsyncUpload controls functionality?
I am trying to change the background colors of individual bars to red and green
TryCast(RadHtmlChart1.PlotArea.Series(0), BarSeries).SeriesItems(0).BackgroundColor = System.Drawing.Color.Red.
Chart works great and I am binding to a datatable
RadHtmlChart1.DataSource = DifferenceDT
RadHtmlChart1.DataBind()
The error is on SeriesItems (Out of Range) and count is 0 when I inspect.
Am I doing something wrong?
Here is my .aspx code
<
telerik:RadHtmlChart
ID
=
"RadHtmlChart1"
runat
=
"server"
Style
=
"width: 100%; height: 98%;"
>
<
PlotArea
>
<
Series
>
<
telerik:BarSeries
DataFieldY
=
"Count"
Name
=
"Count"
>
<
LabelsAppearance
>
<
TextStyle
Color
=
"White"
/>
</
LabelsAppearance
>
</
telerik:BarSeries
>
</
Series
>
<
XAxis
DataLabelsField
=
"Name"
>
<
LabelsAppearance
>
<
TextStyle
Color
=
"White"
/>
</
LabelsAppearance
>
<
MinorGridLines
Visible
=
"false"
/>
</
XAxis
>
<
YAxis
AxisCrossingValue
=
"0"
Step
=
"1"
>
<
MinorGridLines
Visible
=
"false"
/>
<
LabelsAppearance
>
<
TextStyle
Color
=
"Blue"
/>
</
LabelsAppearance
>
</
YAxis
>
</
PlotArea
>
</
telerik:RadHtmlChart
>
ValidatorEnable($(
'RequiredFieldValidator4'), value);
But that does not work and returns error "Microsoft JScript runtime error: 'null' is null or not an object"
<
EditFormSettings
EditFormType
=
"Template"
PopUpSettings-Width
=
"900px"
CaptionFormatString
=
"Edit Property: {0}"
CaptionDataField
=
"PropertyName"
InsertCaption
=
"Add New Property"
PopUpSettings-Modal
=
"true"
PopUpSettings-Height
=
"500px"
PopUpSettings-ScrollBars
=
"Vertical"
>
<
FormTemplate
>
ASP:RadTextBox ......
ASP:RadCombobox
ASP:RequiredFieldValidator
ASP:CustomValidator
etc..... (approx 30 other controls)
</
FormTemplate
>