Ungroupping a column from GroupByBox when column is hidden causes Js error

6 replies. Last post: November 15, 2010 12:03 AM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Mike DearmanMember

I have 2 visible columns in the grid and 2 hidden columns.  The grid is groupped by one of those hidden columns.  And the HideColumnsWhenGrouped setting is "No" in case it matters.

If I drag the grouping from the GroupByBox out, it generates a 'null' Javascript error because its trying to get the cellIndex of the WebGridColumn's HTML element (returned from the GetElement method).  But there is no HTML element, because its hidden.

If I right-click on the grouping in the GroupByBox, it generates a different Javascript error "'this.GetElement().cellIndex' is null or not an object" within a call to WebGridColumn.GetViewPosition().

 

So the user can't ungroup the column because of these errors.

Thanks,

Mike

All times are GMT -5. The time now is 2:27 PM.
Previous Next