This is a migrated thread and some comments may be shown as answers.

Slider autopostback not working properly

2 Answers 102 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Mohammed Ahmed
Top achievements
Rank 1
Mohammed Ahmed asked on 16 Oct 2008, 04:42 PM

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)
http://demos.telerik.com/aspnet/prometheus/Slider/Examples/ServerSideEvents/DefaultCS.aspx 
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">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadSlider1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadSlider1" />

 

 

<telerik:AjaxUpdatedControl ControlID="labelslider" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

protected

 

void RadSlider1_ValueChanged(object sender, EventArgs e)

 

{

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

}

2 Answers, 1 is accepted

Sort by
0
Mohammed Ahmed
Top achievements
Rank 1
answered on 17 Oct 2008, 06:37 PM

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.
0
Tsvetie
Telerik team
answered on 20 Oct 2008, 04:31 PM
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.
***

Regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Slider
Asked by
Mohammed Ahmed
Top achievements
Rank 1
Answers by
Mohammed Ahmed
Top achievements
Rank 1
Tsvetie
Telerik team
Share this question
or