473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Infragistic webgrid Column collection

How can I loop through the columns collection in client side javascript?
Or how can I get a column by the key, not just by the index in the
collection? in Infragistics webgrid
Thanks
Nov 17 '05 #1
1 6057
Wrong forum.
Look at
http://www.infragistics.com/support/newsgroups.asp
BUT since you asking:

This example counts the columns of each band. For one column, (Phone) the
column is made non-editable.

function CountColumns(btnEl) {
// Count all columns and place the value into the label field
// Use the variable automatically declared for the grid on the page.
var oGrid = oUltraWebGrid1;
// Get the Bands collection
var oBands = oGrid.Bands;
// Get the columns collection for Band 0
var oBand = oBands[0];
var oColumns = oBand.Columns;
// The column count is equal to the length of the Columns array.
var count = oColumns.length;
var total = 0;
// Add up the number of columns in each band.
for(i=0; i<oBands.length; i++) {
oBand = oBands[i];
total += oBand.Columns.length;
// iterate the columns of the band
for(c = 0; c < oBand.Columns.length; c++) {
var column = oBand.Columns[c];
if(column.Key == "Phone")
column.AllowUpdate = 2; // AllowUpdate.No
}
}
}HTH
"miqbal" <mi****@abacusoft.com> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
How can I loop through the columns collection in client side javascript?
Or how can I get a column by the key, not just by the index in the
collection? in Infragistics webgrid
Thanks

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eric B | last post by:
....That's what I did and I'm unable to display tooltips for my buttons (despite they're working fine in the MDI main form menu...). Ever experienced this kind of problem ? -- Eric Bergbauer ...
0
by: Sohan Kamat | last post by:
Hi, I am using a Infragistic webgrid and want to create a row where cell contains a drop down list. Any help regrading this would be helpful. Thanks, Sohan
0
by: Sridhar | last post by:
Hi, I have created a function to which I need to pass Component One WebGrid. But when I am calling that function by passing Component One WebGrid, it is giving the error "Value of type...
0
by: Bruce One | last post by:
There comes a time when we have to take that final decision: What to choose for the best webgrid, I have tested a bunch of grids (free and charged ones) and I have come to these: DevExpress...
3
by: durga2005 | last post by:
hi im using webgrid control and i have used template columns to display the data from the database while editing the data in webgrid, im storing the the new values in two strings for using...
14
by: durga2005 | last post by:
hi i have a webgrid control and i have used template columns to display data from the database in the webgrid. But when i use edit,update,cancel and any buttons inside webgrid ,it is executed...
2
by: durga2005 | last post by:
Hi I m using C1WebGrid Control.in this I m adding two textboxes and one button at the footer.the new data I entered should get added in database. But I m getting error in the insert statement ...
0
by: durga2005 | last post by:
Hi In my webgrid I have three columns namely “Type” and “Category” and “code” .But while inserting new record I will not enter “Code” Value since it is automatically generated. When I click the...
2
by: Ashish101 | last post by:
Hi, I am new with Infragistics WebGrid , Can any one tell me about how to select row in webgrid and to get row index of selected row. what event is fire on row selection. I need the same...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.