Infragistic webgrid Column collection

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139