Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
189 views
I have a very simple ASP.net web form with a couple of data pickers, a button and a radGrid. When I initially load the page the grid is not populated and is dependant on both date pickers having selected values. When I click the "Refresh" button to set the radGrid datasource (the result of a stored procedure with two parameters), I noticed that none of the grid filters worked. Upon further investigation I see that there are a couple of uncaught errors (see the attached image).

I am using version 2020.3.1021 of the ASP.net controls so there isn't any outstanding updates. Other grids work as expected.

Can you advise?
Peter Milchev
Telerik team
 answered on 04 Jan 2021
6 answers
487 views

We're using a telerik:RadEditor and have just updated to .Net 4.7.2.

When we click on some of the controls, e.g. the "strip formatting" control, then we sometimes (not always) get the following error shown in the Browser's console "Cannot read property 'trim' of undefined".

We're running version 2014.1.403.35 of the Telerik.Web.UI.  We know that there are newer versions available but don't want to have to upgrade if this is not required.

Two errors are as follows:

---------------------------------------------------

Uncaught TypeError: Cannot read property 'trim' of undefined
    at Telerik.Web.UI.Editor.CommandList.FormatStripper (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:5286)
    at b.RadEditor.fire (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:9190)
    at Telerik.Web.UI.Editor.CommandList.StripAll.StripCss.StripFont.StripSpan.StripWord (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:5262)
    at b.RadEditor.fire (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:9190)
    at b.RadEditor._onToolClick (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:8636)
    at Array.<anonymous> (ScriptResource.axd?d=GZuwEaVOvbbWdhIPYEW2iXV706kRPa3GiaJu8HXrFo-6Dkpyvpw_mc90yZMYw-u19XjJoYxNmUJxy6oyY2r1Ei7PfTXYHJ_D_R5WJpvn6PEq4pTmFNPLO0gBhSW1K50hKayJPStEM8zP2Z1lo6eP3CkFkDQ1&t=ffffffff9a9577e8:5)
    at ScriptResource.axd?d=GZuwEaVOvbbWdhIPYEW2iXV706kRPa3GiaJu8HXrFo-6Dkpyvpw_mc90yZMYw-u19XjJoYxNmUJxy6oyY2r1Ei7PfTXYHJ_D_R5WJpvn6PEq4pTmFNPLO0gBhSW1K50hKayJPStEM8zP2Z1lo6eP3CkFkDQ1&t=ffffffff9a9577e8:5
    at Telerik.Web.UI.Editor.DefaultToolAdapter._raiseEditorEvent (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:3852)
    at Telerik.Web.UI.Editor.DefaultToolAdapter._onDropDownValueSelected (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:3816)
    at Array.<anonymous> (ScriptResource.axd?d=GZuwEaVOvbbWdhIPYEW2iXV706kRPa3GiaJu8HXrFo-6Dkpyvpw_mc90yZMYw-u19XjJoYxNmUJxy6oyY2r1Ei7PfTXYHJ_D_R5WJpvn6PEq4pTmFNPLO0gBhSW1K50hKayJPStEM8zP2Z1lo6eP3CkFkDQ1&t=ffffffff9a9577e8:5)

---------------------------------------------------

and

---------------------------------------------------

ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:237 Uncaught Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: y
Actual value was 268.81817626953125.
    at Function.Error$create [as create] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:237:15)
    at Function.Error$argumentOutOfRange [as argumentOutOfRange] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:302:21)
    at Function$_validateParameterType [as _validateParameterType] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:217:23)
    at Function$_validateParameter [as _validateParameter] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:130:18)
    at Function$_validateParams [as _validateParams] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:84:22)
    at Function.Sys$UI$DomElement$setLocation [as setLocation] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:4491:22)
    at Object.setLocation (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=bpIFcPnUkcYyn1Oas7QeqJT2ya_kbb63D72Bvn5GgMu2P5dJjlApzeU-Cms3QV1qxgTNoEFW6gf9_J5bEnRWID1R9NCGrOOZQVlvu5Ej0TkezzRaH_xo98ADcu_uoOpquFyKrg2&t=192abde7:314:47)
    at Telerik.Web.PopupBehavior._fixPositionInBounds (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=Z7NoM4_95v06tABtjkksmY5r-cIQNEuvG5B2q9ugNqnIEIgbVLxL5jY2pnajFDvWmGj4RqkhB8FXtuAJ8iEM--RmejtyD8ygNS-3I1Cr-x_FKyYqOdpmISxVMylcSvMa2jdqIOrTSPuRFiFR2g1tjk82Rt01&t=192abde7:347:10)
    at Telerik.Web.PopupBehavior.show (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=Z7NoM4_95v06tABtjkksmY5r-cIQNEuvG5B2q9ugNqnIEIgbVLxL5jY2pnajFDvWmGj4RqkhB8FXtuAJ8iEM--RmejtyD8ygNS-3I1Cr-x_FKyYqOdpmISxVMylcSvMa2jdqIOrTSPuRFiFR2g1tjk82Rt01&t=192abde7:304:12)
    at Telerik.Web.UI.EditorToolStrip._show (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:2545:21)

 

Rumen
Telerik team
 answered on 04 Jan 2021
6 answers
563 views
Hi, I have a RadAjaxLoadingPanel which has a gif image loaded by GetWebResourceUrl function. When I make an ajax postback the loading panel is displayed (a gray panel covering all the controls in the page) but the gif inside the loading panel is not displayed. This only happens with Internet Explorer 7-8. It works fine with Firefox, Safari and Chrome.

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" BackColor="#E0E0E0" 
        Transparency="20"
        <table style="width: 100%; height: 100%;"
            <tr style="height: 100%;"
                <td style="width: 100%; text-align: center; vertical-align: middle;">                
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
                        style="border-right: 0px; border-left: 0px; border-top: 0px; border-bottom: 0px;" /> 
                </td> 
            </tr> 
        </table> 
    </telerik:RadAjaxLoadingPanel> 
 
    <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel"
     <div style="width:500px; height:500px"
     </div> 
    </telerik:RadAjaxPanel> 


I have all the necessary web.config entries

<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

PS: When I check the telerik web pages (such as http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx) running with RadAjaxLoadingPanel my internet explorer browser successfully shows the gif images. So I think this is not related to internet explorer configuration.

Thank you...










Tema
Top achievements
Rank 1
 answered on 31 Dec 2020
1 answer
724 views

Dear all,

 

is there a way to check if all radcombobox items are check on a button click event?

 

thanks

Doncho
Telerik team
 answered on 31 Dec 2020
2 answers
390 views

Hi, would like to check if Telerik has a control similar to Google Form control for dropdown option list?

something like on page load 1 textbox will be shown, when user entered a value into the textbox, another one will be created below it

Peter Milchev
Telerik team
 answered on 30 Dec 2020
1 answer
186 views

I am having an issue when attempting to export a radgrid to excel after utilizing the filters in the auto filter.

Before applying the filter, it works perfectly and exports the data to excel.  After applying the filter, the export does not work and appears to simply rebind the grid; however this time the filter rows are removed.

The data for the grid is populated using the NeedDataSource event.

Through searching the forums, I have found that I should probably be using the ExcelML, but this yields the same results.

protected void radimgbtnExcelExport_Click(object sender, ImageButtonClickEventArgs e)
        {
            radgridUsageRatio.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
            radgridUsageRatio.ExportSettings.IgnorePaging = true;
            radgridUsageRatio.ExportSettings.ExportOnlyData = true;
            radgridUsageRatio.ExportSettings.OpenInNewWindow = true;
            radgridUsageRatio.MasterTableView.Columns[0].Visible = false; //remove command column
            radgridUsageRatio.MasterTableView.Columns[1].Visible = false; //remove command column
            radgridUsageRatio.MasterTableView.ExportToExcel();
        }

 

Any help anyone can provide would be extremely helpful

Eyup
Telerik team
 answered on 28 Dec 2020
8 answers
349 views
I need to globally set a class on the combobox dropdown arrow

...but there's no public css property to do that right?  There's one for the control, the dropdown list, the input, and the label....but no button.

So I'm looking for a skinnable property, not a workaround to inherit from he control or parse the dom with jquery, or do any codebehind.  There's too many comobs to just go around updating all the code in every page (hoping to just leverage a .skin file)

Yes, no?...could you add one?
Steve
Peter Milchev
Telerik team
 answered on 25 Dec 2020
7 answers
219 views
Hello

Using RadNumericTextBox in a mobile website doesn't pop up numeric keyboard in iPad. We're developing a website where the user has to enter a lot of numeric information and it has to choose the numeric pad each time it enters a new numeric field.

I know that using RadTextBox and Inputtype solves this problem, but I mainly use RadNumericTextBox because it allows to specified validation like min and max values to each field.

Thanks in advanced
Roberto


Eyup
Telerik team
 answered on 24 Dec 2020
1 answer
517 views

So i have a textbox field that needs a few alerts and a confirm when a value is entered and the button in the grid is clicked to save the value of the textbox to the database.  How would this be achieved?

<telerik:GridTemplateColumn HeaderText="New Price" UniqueName="newprice">
<ItemTemplate> <asp:TextBox ID="txtNewPrice" runat="server" ></asp:TextBox> </ItemTemplate
</telerik:GridTemplateColumn
 <telerik:GridTemplateColumn HeaderText="Action" UniqueName="Action"> <ItemTemplate> <asp:Button ID="btnOverride" Text="Override" runat="server" OnClientClick="return Validate();" OnClick="Override_Click"></asp:Button> </ItemTemplate>  </telerik:GridTemplateColumn>
Eyup
Telerik team
 answered on 24 Dec 2020
3 answers
359 views

Hi,

 

When I try to use client side validation on RadMaskedTextbox as follows, the validation still takes place after a postback. is this a bug?

I try to follow your demo https://demos.telerik.com/aspnet-ajax/textbox/functionality/validation/defaultvb.aspx

 

    <asp:TextBox ID="batch" runat="server" Width="60%"></asp:TextBox>
     <asp:RequiredFieldValidator ErrorMessage="Mandatory" ValidationGroup="Contact" Enabled="True" id="batchReq" ControlToValidate="batch" CssClass="text-danger small" display="dynamic" runat=server />
    <br />



      <telerik:RadMaskedTextBox RenderMode="Lightweight" EnableEmbeddedSkins="false" Skin="MetroTouchNeutral" ValidationGroup="Contact" ID="rmt_tijd" visible="true" runat="server" Mask="<0..24>:<0..59>" Width="30%"></telerik:RadMaskedTextBox>




                            <asp:RequiredFieldValidator EnableClientScript="true" ErrorMessage="Mandatory" ValidationGroup="Contact" Enabled="true" InitialValue="00:00"  id="RequiredFieldValidator3" ControlToValidate="rmt_tijd" CssClass="text-danger small" display="dynamic" runat=server />

    <br />
    <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="Contact"  />

 

 

Thanks for your help, stay safe

Marc

Peter Milchev
Telerik team
 answered on 24 Dec 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?