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

Get radajaxpanel ref. in one loaded uc

1 Answer 63 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 05 Mar 2010, 01:31 PM
Hi,

I have one page that contains radAjaxPanel needing custom client settings from the UC loaded. Exist some way to get the RadAjaxPanel from the loded usercontrol similar to RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page) to register from the UC events like ClientEvents-OnRequestStart and prevent ajax troubles using RadUploader.

Romi

1 Answer, 1 is accepted

Sort by
0
Pierre
Top achievements
Rank 1
answered on 05 Mar 2010, 06:09 PM
Hi,

Ok I have fixed this point but having always problems to upload my files in one RadTab multipage ajaxified. I load one usercontrol that implement RadUpload in the pageView. I have read in doc that i need to stop the ajax call to perform the uploading from the UC. I use this solution

 protected void Page_Load(object sender, EventArgs e) 
   bool isOnClickAttached = false
   IEnumerator keys = this.button1.Attributes.Keys.GetEnumerator(); 
   while(keys.MoveNext()) 
   { 
        if(keys.Current.Equals("onClick")) 
       { 
           isOnClickAttached = true
           break; 
       } 
   } 
   if(!isOnClickAttached) 
       this.CheckBox1.Attributes.Add( "onClick", string.Format("realPostBack(\"{0}\", \"\"); return false;", this.button1.UniqueID)); 
}  
resulting button1 onclick event is
realPostBack('ctl00$Content$ctl00$ImagenesuserControl$LoadExt$buttonSubmit', ''); return false;__doPostBack('ctl00$Content$ctl00$ImagenesuserControl$LoadExt$buttonSubmit','')



The button1 is performing the realPostBack but is not downloading any files files.?
Thanks.

Tags
Ajax
Asked by
Pierre
Top achievements
Rank 1
Answers by
Pierre
Top achievements
Rank 1
Share this question
or