Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
757 views
Hi,
      I am using  RadAjaxLoadingPanel  in my application.   In my app i am showing this control while the user click on "Save" button to update some data into database.  sometimes we save a huge amount of data with some business calculation in to database. In that time we get an javascript error  The server request timed out. but the data will be save properly into database, becase the request has been sent to service.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
 
If i don't but AJAX (i.e RadAjaxLoadingPanel )on this "Save"  button i have no issues. No timeout error.

So could you please let me know how to increse display time  or response time of "RadAjaxLoadingPanel "   to wait for the response from service.

Thanks
Anand
Bijoy Mohanta
Top achievements
Rank 1
 answered on 13 Mar 2016
12 answers
939 views
Hi All,

I have RadGrid, with some datas.

In the title bar I have "Add New Record" and "Refresh"

Is there any option to remove this "Refresh"

due to the reason I have done all the Rebind in code behind itself. So no need of the refresh button.

Thanking You

-Anto
Karthikeyan
Top achievements
Rank 2
 answered on 13 Mar 2016
4 answers
222 views

Hi,

I want to change the width of pivot grid column programmatically. Please check the ached file for more details.

Thanks,
Sagar Jaunjalkar

Eyup
Telerik team
 answered on 12 Mar 2016
1 answer
61 views
if i browse like preprod.com,telerik editor toolbars are not appearing but if i browse inhydpram(servername).com then it appears.
we have only one server configured for preprod.com(DNS) . server is win 2012.
i tested with f12 i could see css is there with as image path pointing to webresourse.axd.but images are not visible.still hovering on it shows the tooltip.
Vessy
Telerik team
 answered on 12 Mar 2016
0 answers
60 views

Dear Gurus,

Your urgent support is required my IIS application is caching on production server.

Please reply urgently.
Please do let me know which logs you need to analysis.

I got report from Fiddler but i am unable to read it as i am totally new to Fiddler.

Thanks
Malik Adeel Imtiaz

Malik Adeel
Top achievements
Rank 1
 asked on 12 Mar 2016
1 answer
60 views

Hey..
We are using you Radeditor in our application with localization. But we see that the tab headings of style builder are not localized. I am attaching the screen shot.We need these things to be localized. Please help me how to proceed.

Thanks

Misho
Telerik team
 answered on 12 Mar 2016
7 answers
1.7K+ views
Hi Team,

I have a requirement where I need to hide the Add New Record Button and disable Edit button through criteria at code behind when the grid is bound.

Regards
SS Bhogal
Dan
Top achievements
Rank 1
 answered on 11 Mar 2016
2 answers
119 views

Hello Telerik,

I have been trying to add mobile support for your RadNumericTextBox Control. What I mean by that is when a user using a smartphone focuses on the control, a keyboard with only numbers will appear. This is easily achieved by changing the type of input from "text" to "tel". I also have js code to validate that the control has a valid value. I decided that I would use a WebControlAdapter to change the type. 

Here is that code:

01.using System;
02.using System.IO;
03.using System.Web.UI.Adapters;
04.using System.Web.UI.WebControls;
05.using System.Web.UI;
06.using System.Web.UI.WebControls.Adapters;
07.using System.Reflection;
08.using Telerik.Web.UI;
09. 
10.namespace LogicData.ControlAdapters
11.{
12.    public class RadNumericTextBoxAdapter : WebControlAdapter
13.    {
14.        protected override void RenderContents(HtmlTextWriter writer)
15.        {
16.            HtmlTextWriter w = new HtmlTextWriter(new StringWriter());
17. 
18.            base.RenderContents(w);
19. 
20.            writer.Write(w.InnerWriter.ToString()
21.                .Replace("type=\"text\"", "type=\"tel\""));
22.        }
23.    }
24.}

And here is the browser file:

1.<browsers>
2.  <browser refID="Default">
3.    <controlAdapters>
4.        <adapter controlType="Telerik.Web.UI.RadNumericTextBox"
5.             adapterType="LogicData.ControlAdapters.RadNumericTextBoxAdapter" />
6.    </controlAdapters>
7.  </browser>
8.</browsers>

 

Super simple nothing complicated about it and works perfectly:

HTML Output:

1.<input id="long_id" name="long_name" class="riTextBox riEnabled" onblur="big_function" type="tel">

(I simplified the some of it to make it easier to read)

 

However, my validation no longer worked. I inspected this and I found that the Telerik JS function $find() is no longer finding the control. (See js_output.png) When I compare the DOM Element of the changed control to the original I notice there are a few attributes missing. (See control_original.png and control_modified.png) From what I can tell the browser (Chrome in this case) isn't recognizing it as a "RadNumericTextBox" control anymore. I tried having the WebControlAdapter with nothing in it except an empty constructor and it still removed these attributes.

 

So after all of this explanation and assuming, what I would like to know is:

    1. Why is the WebControlAdapter causing this?

    2. Is the missing attributes the reason the $find() function is returning null for my control?

 

Thank you,

-Chris

 

Chris
Top achievements
Rank 1
 answered on 11 Mar 2016
5 answers
198 views

Hello there,

I'm having some issues to get my RadAjaxManager AjaxRequest work in my project. Below is my source code.

  • RadAjaxManager configuration

01.<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
02.    <AjaxSettings>
03.        <telerik:AjaxSetting AjaxControlID="RadComboBox1">
04.            <UpdatedControls>
05.                <telerik:AjaxUpdatedControl ControlID="RadComboBox2" LoadingPanelID="RadAjaxLoadingPanel1" />
06.                <telerik:AjaxUpdatedControl ControlID="RadComboBox3" LoadingPanelID="RadAjaxLoadingPanel1" />
07.                <telerik:AjaxUpdatedControl ControlID="RadComboBox4" LoadingPanelID="RadAjaxLoadingPanel1" />
08.            </UpdatedControls>
09.        </telerik:AjaxSetting>
10.        <telerik:AjaxSetting AjaxControlID="RadComboBox2">
11.            <UpdatedControls>
12.                <telerik:AjaxUpdatedControl ControlID="RadComboBox4" LoadingPanelID="RadAjaxLoadingPanel1" />
13.            </UpdatedControls>
14.        </telerik:AjaxSetting>
15.    </AjaxSettings>
16.</telerik:RadAjaxManager>
17.<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
18.    Width="75px" >
19.    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
20.        style="border: 0;" />
21.</telerik:RadAjaxLoadingPanel>

  • RadComboBox configuration, same for all of them so I just post one :

1.<telerik:RadComboBox RenderMode="Classic" ID="RadComboBox1" runat="server" CheckBoxes="true"
2.    EnableCheckAllItemsCheckBox="true" DataTextField="name" DataValueField="id" AutoPostBack="true"
3.    OnClientDropDownClosed="ClientCollapsedComboBox">
4.</telerik:RadComboBox>

  • Javascript used for making AjaxRequest with OnClientDropDownClosed event :

1.<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
2.    <script type="text/javascript">
3.        function ClientCollapsedComboBox(sender, eventArgs) {
4.            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
5.            ajaxManager.ajaxRequest();
6.        }
7.    </script>
8.</telerik:RadCodeBlock>

  • And finally my AjaxRequest code behind method :

1.protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
2.{
3.    RadComboBox4.Items.Clear();
4.    RadComboBox4.DataBind();
5.    // doing some work here
6.}

 

On closing dropdown the event is correctly fired. So, here come my questions :

  1. While debugging I enter in RadAjaxManager1_AjaxRequest method but the changes made are not displayed on the page.Is there something wrong in my config ?
  2. Except retrieving the id of the element which fired the event and do some switch/case like job in RadAjaxManager1_AjaxRequest method is there another way to do some work based on the element that fired the event ?

If there is anything unclear with my questions or anything else, please tell me and I'll try to develop.

 

Regards,

Maria Ilieva
Telerik team
 answered on 11 Mar 2016
2 answers
642 views

Hi,

I am using RadNotifications to display success/fail messages for user induced database updates. Is it possible to use RadNotifications when an event occurs in the server due to some timer actions. For e.g., I am checking for inserts and updates in a database table for every 5 minutes and displaying the count in a label. I want to push notify the user on any DB updates in this timer event. Is that possible ?

Subhashini
Top achievements
Rank 1
 answered on 11 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?