Ask a Question related to ASP.NET General, Design and Development.
-
miqbal #1
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
miqbal Guest
-
Intersoft WebGrid - Hierarchical display problems
Hi, I apologize for asking this question here, but I didn't see a NG for third party controls... If anyone has experience working with... -
Persisting collection data of a webcontrol when leaving the collection editor in VS2005
Hi folks, I'm developing a WebControl, that has got a property that's supposed to return a collection of data. Whenever I try to populate the... -
Adding to collection from controlDesigner only produces end tag for the collection.
I have a customDesigner that adds to a collection in my control. For some reason on the closing tag is added to the HTML view. My control is... -
How to bing a collection with sub-collection to grid
I have a collection of objects (say Customers for example). Each Customer Object has a collection of orders. When I bind such complex type to... -
Only one column allowed for DataKey collection
Maybe I am missing something, but I rarely use a simple ID field as my primary key when a "natural" PK exists. For example, I have a table that... -
Anatoly #2
Re: Infragistic webgrid Column collection
Wrong forum.
Look at
[url]http://www.infragistics.com/support/newsgroups.asp[/url]
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" <miqbal@abacusoft.com> wrote in message
news:OTt2uCCTDHA.1664@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
>
>
Anatoly Guest



Reply With Quote

