Infragistics. webui. ultrawebtab. v4.3 usage remarks

Source: Internet
Author: User
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.;)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.