Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
508 views

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....

 

Ivo
Top achievements
Rank 1
 answered on 02 Jun 2017
6 answers
276 views
How to expand all items in master table in RadGrid using javascript in the hierarchyload mode is client
Eric
Top achievements
Rank 1
 answered on 02 Jun 2017
1 answer
131 views

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>
tito miky
Top achievements
Rank 1
 answered on 02 Jun 2017
0 answers
75 views

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.

 

 

 

shaohua
Top achievements
Rank 1
 asked on 02 Jun 2017
7 answers
772 views
Hi, I am trying to make a filter template with RadTextBox and custom filter button, but it's not working. Please, help.
Here is my code:

<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>
Wendi
Top achievements
Rank 1
 answered on 02 Jun 2017
8 answers
341 views
Hi,

I've found that Virtual Scrolling of a RadComboBox with EnableLoadOnDemand set to true doesn't work properly.
First situation: I have a RadGrid with a GridDropDownColumn. In the ItemDataBound event handler I look for the ComboBox and convert it to ComboBox with LoadOnDemand enabled:
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"
In this case VirtualScrolling works perfectly.

Second situation: I have a form with a RadComboBox on it:
<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> 

So, I use same method to retrieve the data for my ComboBox, but in this case VirtualScrolling doesn't work at all.

I've tried different approaches (like assign properties' values in Page_Init or even create RadComboBox during Init) without any success.
Could you tell me why does it happen and how can I resolve this problem?
Vessy
Telerik team
 answered on 02 Jun 2017
3 answers
177 views

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

Marin Bratanov
Telerik team
 answered on 01 Jun 2017
1 answer
160 views

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!

Sébastien
Top achievements
Rank 1
 answered on 01 Jun 2017
0 answers
690 views

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
章民
Top achievements
Rank 1
 asked on 01 Jun 2017
6 answers
575 views
Hi All

I have two buttons (Export to pdf) and (send email)

I have a radgrid with datas

If I click the export to pdf the datas in the grid is been exported.

I need to do this:

When I click the send email,The pdf should be automatically attached to the outlook.

Is there any option for this.

-Anto
Rhea
Top achievements
Rank 1
 answered on 31 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?