Slider autopostback not working properly

3 posts, 0 answers
  1. Mohammed Ahmed
    Mohammed Ahmed avatar
    13 posts
    Member since:
    Jul 2007

    Posted 16 Oct 2008 Link to this post

    Here is the problem:
    when I refresh my page the radsplider render at the last control in the page.
    when I change the value using ajax manager to make autopostback and right the value in the label as demostrated in this example (the first example) 
    it delays to make a postback and write the value in the label. if  i slide again and again I will get this error:

    Error: [Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

    I have created a sample project and it does work with out any problem but when I take it to the main project it does not work I have updated every thing the same as my sample project.
    here the slider code in my code:



    asp:Label ID="labelslider" runat="server"></asp:Label>% Complete:<span



    class="required">*</span> </td><td class="dataOne" colspan="4">



    <telerik:RadSlider ID="RadSlider1" runat="server" AutoPostBack="true" OnValueChanged="RadSlider1_ValueChanged" Skin="WebBlue" />



    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">






    <telerik:AjaxSetting AjaxControlID="RadSlider1">






    <telerik:AjaxUpdatedControl ControlID="RadSlider1" />



    <telerik:AjaxUpdatedControl ControlID="labelslider" />
















    void RadSlider1_ValueChanged(object sender, EventArgs e)



    labelslider.Text = RadSlider1.Value.ToString();


  2. Mohammed Ahmed
    Mohammed Ahmed avatar
    13 posts
    Member since:
    Jul 2007

    Posted 17 Oct 2008 Link to this post

    I am not able to reproduce in the sample project, but I have the problem in my pre-production code, but I see some trnge behavior forexample when I set AutoEventWireUp="false" the control works with out any problem but all the other dropdown is not binding data to the database.

    The reason I tried this is in your online example it uses AutoEventWireup="false". in my case I can't use AutoEventWireup="false"
    because all the other controls are not binding data.

    I do appreciate for your help.
  3. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 20 Oct 2008 Link to this post

    Hello Mohammed Ahmed,
    I just answered your support ticket. For your convenience, I will give the information here as well:

    Thank you for the additional information. However, as you yourself could not reproduce the problem in a separate project, I could not reproduce it on my side as well. I played with the AutoEventWireup and the OnValueChanged, I tried different versions of the RadControls suite, but the result was the same - no problem. I have attached my test page for your reference. 

    That is why I suppose the problem is not in the AutoEventWireup setting, but in something specific in your setup. As we have not had such a problem so far, in order to help, we really need to reproduce the problem locally so that we can work on it. For the time being, all I can suggest is that you test your project with the Futures version that we release last week (with version number 2008.3.1016). In case the problem persists, please send us a working project, with which we can reproduce the problem, together with detailed steps we need to follow in order to reproduce it.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top