Hi
In the FormTemplate of my RadGrid there's an ajax postback taking place. It just gets some data and fills it into a RadEditor - which works fine.
Further I added another control - a button - beneath the RadEditor, with no functionality so far. The weird thing is: After such an ajax request is done and I click this button, an IndexOutOfBounds exception occurs. Unfortunately the error is not popping up in my (self-written) code, but in an earlier stage.
I searched the forums, still, before flooding you with code and stuff I'd like to know if this is a common issue and if there's already a solution?
Fyi, I will not be able to answer before next wednesday 'cause I'm away :)
Thanks in advance for some help!
Best
Roman
In the FormTemplate of my RadGrid there's an ajax postback taking place. It just gets some data and fills it into a RadEditor - which works fine.
Further I added another control - a button - beneath the RadEditor, with no functionality so far. The weird thing is: After such an ajax request is done and I click this button, an IndexOutOfBounds exception occurs. Unfortunately the error is not popping up in my (self-written) code, but in an earlier stage.
I searched the forums, still, before flooding you with code and stuff I'd like to know if this is a common issue and if there's already a solution?
Fyi, I will not be able to answer before next wednesday 'cause I'm away :)
Thanks in advance for some help!
Best
Roman
5 Answers, 1 is accepted
0
Roman
Top achievements
Rank 1
answered on 25 Nov 2009, 08:13 AM
0
Roman
Top achievements
Rank 1
answered on 25 Nov 2009, 08:46 AM
Here some further details:
The code is a button event + call of an empty function
Firebug displays the problem: First AJAX call works fine, second one and all after it do not work.
Further mentionable: None of my functions are called before the error occurs.
Last but not least, here the stacktrace.
Tell me if you need any further details.
Thanks in advance
Best
Roman
EDIT: I could reproduce the problem. Please download it here.
If you move the two items to the left, select one of them, then the ajax request starts. Do it again, and it fails.
The code is a button event + call of an empty function
protected void RadListBoxLeft_SelectedIndexChanged(object sender, EventArgs e) |
{ |
UpdateContactDescription(sender); |
} |
/// <summary> |
/// Displays the contact description for the currently selected Item in RadListBoxLeft |
/// </summary> |
/// <param name="sender"></param> |
private void UpdateContactDescription(object sender) |
{ |
} |
Firebug displays the problem: First AJAX call works fine, second one and all after it do not work.
Further mentionable: None of my functions are called before the error occurs.
Last but not least, here the stacktrace.
Tell me if you need any further details.
Thanks in advance
Best
Roman
EDIT: I could reproduce the problem. Please download it here.
If you move the two items to the left, select one of them, then the ajax request starts. Do it again, and it fails.
0
Accepted
Hi Roman,
I suspect that the behavior you are experiencing is due to incorrect ajax settings. Can you please modify the RadAjaxManagerProxy's settings to the following and see if there is a change in the behavior.
Best wishes,
Rosen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I suspect that the behavior you are experiencing is due to incorrect ajax settings. Can you please modify the RadAjaxManagerProxy's settings to the following and see if there is a change in the behavior.
<
telerik:RadAjaxManagerProxy
ID
=
"RadAjaxManagerProxy1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadListBoxLeft"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"ContactDescPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadListBoxLeft"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadListBoxRight"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
Best wishes,
Rosen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Roman
Top achievements
Rank 1
answered on 26 Nov 2009, 08:03 AM
Hello Rosen
True, that solved the problem!
Still, I'm wondering why I had to take in the right ListBox while I only access the left one? I'm kinda confused. Is it because the item's origin is from the right one?
Many thanks
Roman
True, that solved the problem!
Still, I'm wondering why I had to take in the right ListBox while I only access the left one? I'm kinda confused. Is it because the item's origin is from the right one?
Many thanks
Roman
0
Hello Roman,
Indeed the right ListBox should be updated too in order to reflect changes made to it state.
Regards,
Rosen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Indeed the right ListBox should be updated too in order to reflect changes made to it state.
Regards,
Rosen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.