Get radajaxpanel ref. in one loaded uc

2 posts, 0 answers
  1. Pierre
    Pierre avatar
    138 posts
    Member since:
    Feb 2006

    Posted 05 Mar 2010 Link to this post

    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
  2. Pierre
    Pierre avatar
    138 posts
    Member since:
    Feb 2006

    Posted 05 Mar 2010 Link to this post

    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.

Back to Top