This is a migrated thread and some comments may be shown as answers.

aal rows in edit mode en grouping

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
glenn
Top achievements
Rank 1
glenn asked on 06 Aug 2008, 01:01 PM
hi,
When i put all rows in edit mode and i group on a column, the collpase button does'n work anymore.

I put all rows in edit mode as described in the manual:
protected void PreRenderEventHandler(object sender, EventArgs e) 
        { 
            foreach (GridItem item in MasterTableView.Items) 
            { 
                if (item is GridEditableItem) 
                { 
                    GridEditableItem editableItem = item as GridDataItem; 
                    editableItem.Edit = true
                } 
            } 
            Rebind(); 
         } 

The collapse button works if i put the for loop and the rebind call in !IsPostback. But then if a postback happens, all my rows are not in edit mode anymore
Can someone help me?
Thx in advance

1 Answer, 1 is accepted

Sort by
0
glenn
Top achievements
Rank 1
answered on 06 Aug 2008, 02:09 PM
I solved this by grouping client side
Tags
Grid
Asked by
glenn
Top achievements
Rank 1
Answers by
glenn
Top achievements
Rank 1
Share this question
or