Hello everybody,
I had two RadNumericTextBox TextInicio & TextFin (initial text and final text).
The rule here is:
The value in TextInicio can not be bigger than TextFin and viceversa.
So I created a function to check values entered by the user. If one of these values break this rule then it will be necesary to change its value to correct this situation.
The thing is that set_value() is not working; the value remains unset.
I also debugged it with Firefox Developer Tools.
NOTE: Min and Max values are set on server side at page“s Load method. But they usually goes from 1 to 2000.
Are there any others factors I have to take under consideration?
Any ideas about what could be the cause of this??
Am I doing something wrong? If you need something else please let me know.
Here is the code in my page.
01.
...
02.
03.
<script type=
"text/javascript"
id=
"telerikClientEvents1"
>
04.
//<![CDATA[
05.
06.
function
checkValues(sender, args, isInitial) {
07.
var
txtIni = $find(
"<%=TextInicio.ClientID%>"
);
08.
var
ini = txtIni.get_value();
09.
10.
var
txtFin = $find(
"<%=TextFin.ClientID%>"
);
11.
var
fin = txtFin.get_value();
12.
13.
if
(ini > fin)
// if initial is bigger than final then it is necesary to adjust a value
14.
{
15.
if
(isInitial)
// which value will be set
16.
{
17.
txtIni.set_value(fin);
18.
}
19.
else
20.
{
21.
txtFin.set_value(ini);
22.
}
23.
}
24.
25.
}
// END of checkValues function
26.
27.
//]]>
28.
</script>
29.
30.
...
01.
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
Runat
=
"server"
EnablePageMethods
=
"True"
>
02.
</
telerik:RadScriptManager
>
03.
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
ResolvedRenderMode
=
"Classic"
>
04.
</
telerik:RadWindowManager
>
05.
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
06.
</
telerik:RadAjaxManager
>
07.
...
08.
<
telerik:RadNumericTextBox
ID
=
"TextInicio"
runat
=
"server"
Value
=
"0"
DataType
=
"System.Int32"
MinValue
=
"1"
>
09.
<
NumberFormat
ZeroPattern
=
"n"
DecimalDigits
=
"0"
></
NumberFormat
>
10.
<
ClientEvents
OnValueChanged
=
"function(sender, args){checkValues(sender, args, true);}"
/>
11.
</
telerik:RadNumericTextBox
>
12.
...
13.
14.
<
telerik:RadNumericTextBox
ID
=
"TextFin"
runat
=
"server"
Value
=
"0"
DataType
=
"System.Int32"
MinValue
=
"1"
>
15.
<
NumberFormat
ZeroPattern
=
"n"
DecimalDigits
=
"0"
></
NumberFormat
>
16.
<
ClientEvents
OnValueChanged
=
"function(sender, args){checkValues(sender, args, false);}"
/>
17.
</
telerik:RadNumericTextBox
>
18.
...
Hello,
With version 2017.2.503.45 we different results than with version 2016.3.1027.45 for telerik:RadButton. See attached image.
How can we keep the former design?
Thank you
<
telerik:RadButton
runat
=
"server"
ID
=
"chkUrlType"
ToggleType
=
"Radio"
Text
=
"URL"
meta:resourcekey
=
"URL"
GroupName
=
"IconType"
Value
=
"U"
OnClick
=
"chkUrlType_OnClick"
>
<
Icon
PrimaryIconUrl
=
"/Content/MyHomeInterface/webUrl.png"
/>
</
telerik:RadButton
>
<
telerik:RadButton
runat
=
"server"
ID
=
"chkFormType"
ToggleType
=
"Radio"
Text
=
"Formulario"
meta:resourcekey
=
"Form"
GroupName
=
"IconType"
Value
=
"F"
OnClick
=
"chkFormType_OnClick"
>
<
Icon
PrimaryIconUrl
=
"/Content/MyHomeInterface/forms.png"
/>
</
telerik:RadButton
>
<
telerik:RadButton
runat
=
"server"
ID
=
"chkGalleryType"
ToggleType
=
"Radio"
Text
=
"GalerĆa"
meta:resourcekey
=
"Gallery"
GroupName
=
"IconType"
Value
=
"F"
OnClick
=
"chkGalleryType_OnClick"
>
<
Icon
PrimaryIconUrl
=
"/Content/MyHomeInterface/Gallery.png"
/>
</
telerik:RadButton
>
Hi,
I have an issue with RadSlidingPane title text export to PDF.
Here are two images showing the difference between WebPage text and PDF text.
Could you please take a look?
Thanks.
<
telerik:GridBoundColumn
UniqueName
=
"ItemNumber"
DataField
=
"ItemNumber"
HeaderText
=
"Item Number"
HeaderStyle-Width
=
"150px"
AutoPostBackOnFilter
=
"true"
AllowFiltering
=
"true"
>
<
FilterTemplate
>
<
telerik:RadTextBox
ID
=
"txtItemNumber"
runat
=
"server"
Width
=
"75px"
AutoCompleteType
=
"None"
>
</
telerik:RadTextBox
>
<
asp:ImageButton
ID
=
"btnFilterItemNumber"
runat
=
"server"
Width
=
"24px"
Height
=
"24px"
ImageUrl
=
"~/Images/filter.png"
OnClientClick
=
"FilterItemNumber()"
/>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlockItemNumber"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function FilterItemNumber(sender, args)
{
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
var item = document.getElementById("<%# txtItemNumber.ClientID %>").value;
tableView.filter("ItemNumber", item, "Contains");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
</
telerik:GridBoundColumn
>
cmbUsers.EnableLoadOnDemand = true; |
cmbUsers.ShowMoreResultsBox = true; |
cmbUsers.AppendDataBoundItems = true; |
cmbUsers.MarkFirstMatch = true; |
cmbUsers.ItemRequestTimeout = 1000; |
cmbUsers.EnableVirtualScrolling = true; |
cmbUsers.WebServiceSettings.Method = "GetComboUsers"; |
cmbUsers.WebServiceSettings.Path = "Edit1.aspx"; |
<telerik:RadComboBox runat="server" ID="ddlAttendant" Width="120px" Skin="Default" TabIndex="2" EnableLoadOnDemand="true" |
AppendDataBoundItems="True" DropDownWidth="130px" ShowMoreResultsBox="True" EnableVirtualScrolling="true" |
EmptyMessage="Select the attendant" MarkFirstMatch="True" AllowCustomText="True" ShowDropDownOnTextboxClick="False"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
<WebServiceSettings Method="GetComboUsers" Path="Edit1.aspx" /> |
</telerik:RadComboBox> |
Hello,
I'm attempting to get the x-axis value from the Shared Template section of a HTML chart so that I can pass that value to a JS function for creating the tooltip display. Is there any way of getting this value? You can see the HTML markup below.
<
telerik:RadHtmlChart
ID
=
"lcPayrollBiWeekly"
runat
=
"server"
CssClass
=
"FieldLabel"
EnableViewState
=
"false"
>
<
ClientEvents
OnSeriesHover
=
"seriesHover"
/>
<
ChartTitle
Text
=
"Bi-Weekly Payroll Comparison"
>
<
Appearance
BackgroundColor
=
"White"
Position
=
"Top"
/>
</
ChartTitle
>
<
Legend
>
<
Appearance
BackgroundColor
=
"White"
Position
=
"Bottom"
/>
</
Legend
>
<
PlotArea
>
<
CommonTooltipsAppearance
Shared
=
"true"
>
<
SharedTemplate
>
# for (var i = 0; i <
points.length
; i++) { #
<div>#= formatLabel(points[i].value, points[i].value.x, points[i].series.name) #</
div
>
# } #
</
SharedTemplate
>
</
CommonTooltipsAppearance
>
<
Appearance
FillStyle-BackgroundColor
=
"White"
/>
<
YAxis
>
<
LabelsAppearance
DataFormatString
=
"{0:C}"
RotationAngle
=
"0"
/>
<
TitleAppearance
Text
=
"Amount"
/>
<
MinorGridLines
Visible
=
"false"
/>
</
YAxis
>
<
XAxis
>
<
LabelsAppearance
RotationAngle
=
"0"
/>
<
TitleAppearance
Text
=
"Payroll Period"
/>
<
MinorGridLines
Visible
=
"false"
/>
</
XAxis
>
</
PlotArea
>
</
telerik:RadHtmlChart
>
Thanks,
Johnathan
Hi,
I open a RadWindow with a grid inside. The problem is that the right border does not appear correctly (See attached image).
<
telerik:RadGrid
ID
=
"grdStList"
runat
=
"server"
AutoGenerateColumns
=
"False"
Skin
=
"Bootstrap"
>
<
MasterTableView
NoMasterRecordsText
=
""
DataKeyNames
=
"VA_ARTIKEL"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ANZAHL"
UniqueName
=
"ANZAHL"
>
<
HeaderStyle
HorizontalAlign
=
"Right"
/>
<
ItemStyle
VerticalAlign
=
"Top"
HorizontalAlign
=
"Right"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"VA_ARTIKEL"
UniqueName
=
"VA_ARTIKEL"
>
<
ItemStyle
VerticalAlign
=
"Top"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"BEZEICHNUNG"
>
<
ItemStyle
VerticalAlign
=
"Top"
Wrap
=
"false"
/>
<
ItemTemplate
>
<
span
><%# Eval("BEZEICHNUNG").ToString & " " & Eval("BEZEICHNUNG_ZUSATZ1").ToString & " " & Eval("BEZEICHNUNG_ZUSATZ2").ToString%></
span
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
The last column has the attribute "Wrap='false'". If I remove this attribute, the grid is displayed correctly but then the width is not correct.
How can i avoid the text to wrap and have a grid that displays correctly ?
Thank you!
I use the RadScriptManager to run some javascript to draw some graphics. But I get some timeout about Telerik.
I used the Javascript successfully for another case, but this case has timeout problem.
RadScriptManager.RegisterStartupScript(this, this.GetType(), "TPR_Initial_Command", jsResultInit, true);
I do not know what happens. Does somebody know how to solve this timeout problem?
These are the error message apear in the google chrome's console windowļ¼
"ä¼ŗęåØč¦ę±é¾ę" in English means the Server's request is timeout.
Uncaught Error: Sys.WebForms.PageRequestManagerTimeoutException:
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:6 Uncaught Error: Sys.WebForms.PageRequestManagerTimeoutException: ä¼ŗęåØč¦ę±é¾ęć
at Function.Error.create (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:6)
at Sys.WebForms.PageRequestManager._createPageRequestManagerTimeoutError (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:15)
at Sys.WebForms.PageRequestManager._onFormSubmitCompleted (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:15)
at Array.<anonymous> (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:6)
at Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:6
at Sys.Net.WebRequest.completed (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:6)
at Sys.Net.XMLHttpExecutor._onTimeout (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:6)
at Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScriptsā¦:6