StrataFrame Forum

Fire the Binding on all Control

http://forum.strataframe.net/Topic31551.aspx

By Olivier - 11/4/2012

hello

Have you a method to run a code which we can get a DataBind of all the control ?

Cause i use RadtabStrip of telerik (PageFrame) and each page load from WebUserControl.

All the textbox don't fired the bindfield and i would like get a method to DataBind the Controls.


my textbox are store in WebUserControl, the WebUserControl work when i add in a page,

But if i load dynamically  like this , it's doesn't work, the textbox don't bind the Field.
I have my empty value instead of.

  protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
        {
            string userControlName = e.PageView.ID + "CS.ascx";
   
            Control userControl = Page.LoadControl(userControlName);
            userControl.ID = e.PageView.ID + "_userControl";
   
            e.PageView.Controls.Add(userControl);

            this.RadTabStrip1.DataBind();
        }

Thanks
Olivier,