Infragistics Control Chinese tutorial infragistics ASP. Net Control usage Summary

Source: Internet
Author: User

Http://blog.csdn.net/jingshuaizh/archive/2008/07/22/2689440.aspx

 

 

Infragistics series controls are a set of very good, very powerful controls, the company bought a genuine version of Asp.net a few days ago... like a set of more than 800 US Dollars... the latest version
7. 3 .... it feels good .. now you can use it for your own projects .. I found that there is no Chinese tutorial on the Internet, and there are very few Chinese documents .. here I will write down my research experiences...
First
Install it first, and install it step by step.
1. Start after installation-the Program menu contains create
Visual Studio toolbox
Tab. Run the following command to generate the infragistics label in the vs toolbox. Otherwise, the control cannot be found. The menu contains a sample...
Most of them are in it... you can find .... there is a document in the menu .. it contains the 'guide' and 'example' for each control '. APIs and customers
End Script API...

2. the installer will go to C:/inetpub/wwwroot/aspnet_client/infragistics
Lower
Generate a folder containing resources (including images, CSS, and other files) at runtime. So this folder is very important (if you do not have an appstle )...
3. Then
Package the DLL file in the installation directory. Here I am C:/Program
Files/infragistics/netadvantage for. Net 2007 Vol. 3 CLR 2.0/ASP. NET/bin
-The signed folder. When the website is released, decompress the rarfile to the bin folder. Otherwise, how can I execute the file without a DLL ..
4.
Appstylelist can be used to set the appearance of a space. With this, you don't have to learn how to set complex appearance attributes. very convenient .. and the file mentioned in 2 is used.
Folder is almost useless...
5. When you drag a widget to the page for the first time, a licenses. licx will be generated under the root directory.
Text
File... Do not delete it ..
6. You can run it on the virtual host. You can see articles on the internet saying that you need to manually run IIS virtual paths and the like... you just need to put the relevant files (images and DLL)
You can obtain the relevant appendix of the project ..

The preface is so much... I will talk about the controls later.
Functions, usage, code control methods ..


Original article, reprinted to indicate the source.

 

 

Infragistics ASP. Net Control usage Summary 1,
Ultrawebgrid
Basic usage 1,
How to manually
Step 1: Add a column
Set controlsetting-> displayout-> autogenerate to false to prevent the control from automatically adding columns. Step 2: add the required column: basecolumnname, which is the field you want to set.
Name; key: Specify others for this column to facilitate future search for the value of this column; header-> caption: Header text 2,
Freeze a column this
. Ultrawebgrid1.displaylayout. usefixedheaders
= True
; This
. Ultrawebgrid1.bands [0]. Columns. fromkey ("edit"
). Header. Fixed = true
; 3,
To the table
Add other controls controlsetting-> Columns-> select the columns you want to operate on
-> Editorcontrolid-> select the control name you want to set. 4,
Add Table
Add a button to controlsettings-> Columns-> select to change
Button row-> type-> button 5,
Merge Unit
Grid Control settings-> Columns->
Column name-> header-> rowlayoutcolumninfo; spanx:
Cross-Column
Originx:
Which column starts? // Add an image header foreach (infragistics. webui. ultrawebgrid. ultratedcolumn
C In E. layout. Bands [0]. columns ){
C. header. rowlayoutcolumninfo. originy = 1;} // Add a large header, infragistics. webui. ultrawebgridcolumnheader.
Ch = new infragistics. webui. ultrawebgridcolumnheader (true); Ch. Caption = "Name of the large Header" ch. rowlayoutcolumninfo. originy = 0 ;//
Set
Y axis position Ch. rowlayoutcolumninfo. Spanx = 3;
//
Set the number of columns to span. Ch. image. url
= "./Images/bankingbtn.gif"; // Add the image Ch. image. alternatetext = "employee name
Grouping "; E. layout. Bands [0]. headerlayout. Add (CH );//
Add the preceding settings to this table. 6,
Add one count
Click to accumulate the number. Step 1: Set the control
Webnumericedit-> spinbuttons-> display is set to onright Step 2: Set the type of the column of the control to be customized in ultrawebgrid
Set a read-only column for: Custom *; allupdate = No 7,
Hide the header
The row at the top is displaylayout-> groupbybox-> hidden
= True 8,
Fixed
Header line this
. Ultrawebgrid1.displaylayout. stationarymargins
= Infragistics. webui. ultrawebgrid. stationarymargins
. Header; 9,
Specified column header
Font display Position Control
Settings-> band [0]-> headerstyle-> horizontalalign = center 10
, Specify the font display position in the Table Control
Settings-> band [0]-> rowstyle-> horizontalalign = center
//
All control settings-> Columns->
Column name
-> Cellstyle-> horizontalalign = center // set a column to 11
The entire table does not allow editing control settings-> band [0]-> allupdate = No 12
, Select a row of control
Settings-> band [0]-> cellclickaction = rowselect 13
Add a row of ultrawebgrid. displaylayout. Row. Add (); 14
Confirmation dialog box events specify client events
Files: ultrawebgrid1-> displaylayout-> clientsizeevents->
Clickcellbuttonhandler: cellbuttonclick
Function Definition: function cellbuttonclick (gridname, cellid) {If (cellid. substring (cellid. lastindexof ("_") + 1,
Cellid. lastindexof ("_") + 3) = "8") {return! Confirm ("
Are you sure you want to delete this row of data? ") ;}}15. Paging Processing
Ultrawebgrid1-> displayout-> pager-> allowpaging = true,
And then set pagesize. Pattern
Setting: This template is used to customize the display effect <Table width = 100%> <tr> [Page: 1:
Homepage]
[Currentpageindex] Page [pagecount] [Prev] [next] </TD> <TD
Align = right> [Default] <TD> </tr> </table> 2,
Webcombo
Basic usage 1,
Implementation can be lost
Optional drop-down table editable-> true 2,
Drop-down table
Upload to ultrawebgrid
Ultrawebgrid1.columns [1]. type = columntype
. Dropdownlist;

Ultrawebgrid1.columns [1]. ValueList. webcombo = webcombogood;
Related Article

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.