Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Ultrawebgrid Rows selection based on column value
posted

I am new to Infragristics ultrawebgrid, How to select the list of rows which matches a column value in Javascript/ client side.

Is there any predefined methods available to select/return back the rows in client side.

E.g. var myrows = mygrid.Rows.Find("columnName"="abc");

My intention is to disable to cells based on the matched column values.

Any suggestion would help me a lot.

  • 16310
    Offline posted

    Hi,

    The code you have pasted is server side code, which searches for a cell in the row, which value starts with the provides string. You can also use an overloaded example like:

    private void FindInMultiPKey(DataTable myTable){
    DataRow foundRow;
    // Create an array for the key values to find.
    object[]findTheseVals = new object[3];
    // Set the values of the keys to find.
    findTheseVals[0] = "John";
    findTheseVals[1] = "Smith";
    findTheseVals[2] = "5 Main St.";
    foundRow = myTable.Rows.Find(findTheseVals);

    }

    in the client side object model of the grid you can all .find on the grid object in order to locate and select cells with a particular value. The method searches through the grid data for a specific string. Regular expressions are also supported. Here is an example:

    var re = new RegExp("^" + "some value", "gi"); // or any other regular expression
    var oCell = oUltraWebGrid1.find(re, true);

    The Boolean value indicates the direction of the search. If set to truethe serach is performed from bottom to top. If set to false(or omitted) the search is performed from top to bottom.

    Please be aware that the UltraWebGrid is retired and its support has expired, therefore we will not be able to provide support on the UltraWebGrid for your further queries. It is recommended to migrate your project to use the new Aikido controls, and the WebDataGrid in specificity as an alternative for the UltraWebGrid. More information can be found at

    http://es.infragistics.com/community/blogs/taz_abdeali/archive/2011/11/17/asp-net-product-changes-in-2011-volume-2.aspx