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

Hidden input controls

3 Answers 144 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David Johnson
Top achievements
Rank 1
David Johnson asked on 09 Jul 2008, 07:34 AM
Hi,

I have some hidden inputs whose values are updated dynamically with javascript (I am developing an ajax cropping tool). When I use a normal postback, the values are updated, however when I use RadAjax they are not. I have put the inputs in a RadAjaxPanel and wired up the button to this panel, but the values are just coming through empty.

<telerik:radajaxpanel id="ajaxPanelInputs" runat="server">  
<input type="hidden" runat="server" id="x" /> 
<input type="hidden" runat="server" id="y" /> 
</telerik:radajaxpanel> 

I can confirm that the inputs are being updated inside the panel via javascript. Any ideas?

3 Answers, 1 is accepted

Sort by
0
Missing User
answered on 09 Jul 2008, 03:08 PM
Hello Nath,

I tried to reproduce the reported problem with the latest RadControls for ASP.NET AJAX but unfortunately to no avail. Could you please, see the attached project and let me know what I am missing?

Once we are able to reproduce the problem we will do our best to fix it.

Regards,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David Johnson
Top achievements
Rank 1
answered on 09 Jul 2008, 11:43 PM
The problem is my x and y inputs are set when a button is clicked, not on page load - unfortunately it's also this button that triggers the Ajax request - so the ajax event is fired before the event I've written to set the x/y coordinates. I guess there's no way around this right?
0
Missing User
answered on 10 Jul 2008, 10:22 AM
Hello Nath Manley,

We are not able to reproduce the problem. I would suggest you to modify  the project (RadAjax4ASPNET20HiddenElement.zip) from my previous post, so that the issues you experience are reproduced, and send it back to us in a support ticket.

Kind regards,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
David Johnson
Top achievements
Rank 1
Answers by
Missing User
David Johnson
Top achievements
Rank 1
Share this question
or