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

[Solved] All Event Handler fired On every request

3 Answers 112 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
alsi
Top achievements
Rank 1
alsi asked on 29 May 2008, 06:15 AM
Dear All!

I have a question. I am using RadAjax Manager, but maybe in other way this can happen.
For example: I have 5 TextBoxes and every textbox has TextChange Events:
TextBox1_TextChange...
TextBox2_TextChange...
etc.

And AutoPostback = "true" for every box.

At first when I chage TextBox1 text and loose focus, TextBox1_TextChange fired (this is ok), but when I Change text in Textbox3, every textbox's event handler fired which have Text.
Is it normal? How can I do just the Actual Textbox's event fired?

many thanks!

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 29 May 2008, 07:24 AM
Hi alsi,

Can you share how is our ajax control involved in this scenario so we can investigate and advise you accordingly?

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
alsi
Top achievements
Rank 1
answered on 29 May 2008, 02:20 PM
<telerik:RadAjaxManager ID="regAjaxManager" runat="server" EnablePageHeadUpdate="False" >
    <AjaxSettings>
 <telerik:AjaxSetting AjaxControlID="CD_txtName">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="CD_imgExpansionStatus" />
                <telerik:AjaxUpdatedControl ControlID="CD_txtName" />
                <telerik:AjaxUpdatedControl ControlID="imgRegistrationFinalStatus" />
                <telerik:AjaxUpdatedControl ControlID="btnRegistrationSend" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="CD_txtAddress">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="CD_imgExpansionStatus" />
                <telerik:AjaxUpdatedControl ControlID="CD_txtAddress" />
                <telerik:AjaxUpdatedControl ControlID="imgRegistrationFinalStatus" />
                <telerik:AjaxUpdatedControl ControlID="btnRegistrationSend" />
            </UpdatedControls>
        </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

this is the RadAjaxManager setting. All the TextBoxes are on a Panel
it this code enough or should I give more detail?
BTW I tried without ajax and same working..I don't understand. I'm using master page

thanks
0
alsi
Top achievements
Rank 1
answered on 29 May 2008, 04:17 PM
Ok, the problem was with my individual expandable panel control. ViewState enabled and now ok.

sorry for the post!
Tags
Ajax
Asked by
alsi
Top achievements
Rank 1
Answers by
Steve
Telerik team
alsi
Top achievements
Rank 1
Share this question
or