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
295
Problem with Grouping. While updating checkbox giving error.
posted

 Hi all!

I have a lil problem with the grouped grid. In my grid I have a checkbox column, which I use to get the checked rows from the grid. It works fine with the normal grid. But when I group the rows against any column the checking a checkbox gives a javascript error "'Element.id' is null or not an object".  This error is coming in the javascript function "igtbl_cellClickDown". So I am not able to get the checked row from the grid.

Any idea whats goin wrong here?

 

Thanks,

Charuk 

Parents
No Data
Reply
  • 485
    posted

    I have faced same problem but in other context.

    I am using Ultra WebGrid Version 7.3.

    In my WebGrid, I have used a checkbox column. I have written following javascript function to provide select all functionality on a button click using javascript -

    var objGrid = igtbl_getGridById(gridID);

    if(objGrid.Rows.length > 0)

    {

    for(i=0;i<objGrid.Rows.length ;i++)

    {

    var cellObject = objGrid.Rows.getRow(i).getCell(colIndex);

    //Check for Checkbox Column Type

    if(cellObject != null && cellObject.Column.ColumnType == 3)

    {

    cellObject.setValue(
    true);

    }//if

    }//for

    }//if

    It working fine if there is no grouping applied for columns. but once i have applied the grouping , objGrid.Rows.getRow(i).getCell(colIndex) always return null. it didn't get cell object at all.

    Any Idea ?

    Thanks

Children
No Data