473,609 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6067
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(bt nEl) {
// 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.l ength;
// iterate the columns of the band
for(c = 0; c < oBand.Columns.l ength; c++) {
var column = oBand.Columns[c];
if(column.Key == "Phone")
column.AllowUpd ate = 2; // AllowUpdate.No
}
}
}HTH
"miqbal" <mi****@abacuso ft.com> wrote in message
news:OT******** ******@TK2MSFTN GP11.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
4828
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 ebergbauerXXX@XXXpssoft-sophia.com Equipe de développement Consolidated Service Desk
0
1710
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
1192
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 C1.Web.C1WebGrid.C1WebGrid" cannot be converted to C1.Web.C1WebGrid.C1WebGrid. I am not knowing what might be the problem. Please let me know if you have any idea. Thnx, Sridhar.
0
1821
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 AspXGrid Telerik RadGrid Infragistic UltraWebgrid .....also, Janus webgrid
3
2322
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 it in update command. but it is showing error like 'Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox'.
14
3041
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 twice and because of this on second time execution i m getting error. Can ayone Help
2
2003
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 Protected Sub webgrid_ItemCreated(ByVal sender As Object, ByVal e As C1.Web.C1WebGrid.C1ItemEventArgs) Handles webgrid.ItemCreated
0
1071
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 AddNew linkbutton,a new row should be created with two textboxes and one Save Button at the footer of the webgrid. I have created the AddNew link button at the footer Now if I click the link 2 textboxes and one save button should be created...
2
7372
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 functionality as we have in GridView when we select a row we have selectedIndexChange event habtler Please Do help me Thanks
0
8130
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8541
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8406
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7002
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2531
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.