This article summarizes some problems in infragistics. webui. ultrawebtab. v4.3 and records the following for future reference.
This post is being updated over time.
How to call webcontrol In the tab?
When using webtab, you may need to place a self-developed webcontrol In the tab. When you click the tab, You need to activate a specific webcontrol method, such as initialization.
At the beginning, I directly used the control reference for calling, and the result always reported"
You have not set the object reference to the instance of the object.. Later I had a lot of experience: D thought of the usage METHOD OF THE DataGrid. Try it and get it done.
It should have been
Use the tab. findcontrol () method to obtain reference to the control.. Similar to this:
Private Void Ultrawebtab1_tabclick ( Object Sender, infragistics. webui. ultrawebtab. webtabevent E)
{
Switch (E. Tab. Text)
{
Case " User Management " :
Mydomainusers = (Login users) E. Tab. findcontrol ( " Mydomainusers " );
My‑users. initdata ();
Break ;
Case " User Group Management " :
Mydomainusergroups = (LOGIN usergroups) E. Tab. findcontrol ( " Mydomainusergroups " );
Mydomainusergroups. initdata ();
Break ;
Case " Data role management " :
Mydomaindataroles = (Cfgdataroles) E. Tab. findcontrol ( " Mydomaindataroles " );
Mydomaindataroles. initdata ();
Break ;
Case " Dictionary management " :
Mycfgdictionary = (Cfgdictionary) E. Tab. findcontrol ( " Mycfgdictionary " );
Mycfgdictionary. initdata ();
Break ;
Case " Log Management " :
Mydomainlog = (Audit log) E. Tab. findcontrol ( " Mydomainlog " );
Mydomainlog. initdata ();
Break ;
}
}
Of course, if you want to use the tabclick event,Don't forget to set webtab autopostback to true.;)