This is a migrated thread and some comments may be shown as answers.
Raise Server RadTextBox_Load by Client Side
2 Answers 18 Views
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 01 Feb 2011, 06:46 PM
Hi,

I Need trigger Server event Load for RadTextbox without page postback, using client side javascript.
I tried sender.raise_load(Sys.EventArgs.Empty); in javascript function from button click event, but not work.
Any help is welcome.

Thanks advanced.

Roberto

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 02 Feb 2011, 08:16 AM
Hello Roberto,

You can make an ajaxRequest on the client Button Click and call the desired function from there.

JavaScript:
function OnClientClick()
  {
      var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
      ajaxManager.ajaxRequest();
  }

C#:
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
   {
       doSomething();
   }
   protected void RadTextBox_Load(object sender, AjaxRequestEventArgs e)
   {
       doSomething();
   }
   public void doSomething()
   {
       // Do something
   }



Thanks,
Shinu.
0
Roberto
Top achievements
Rank 1
answered on 02 Feb 2011, 12:50 PM
thanks very much Shinu, works perfectly for what I need.

Roberto.
Tags
Input
Asked by
Roberto
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Roberto
Top achievements
Rank 1
Share this question
or