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

Paging & Editing

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 28 Jul 2008, 12:47 PM
I have a grid that allows all cells to be edited. Once I implement paging and change a page I lose the editing capabilities ... the column editors go away.

I haven't been able to find a good example that shows all cells editable with paging used, and I am not sure what it is I am missing.


I am receiving no errors, I just lose the column editors on a page change.
 
  • ASP.NET version: 2
  • OS: Win2k3
  • exact browser version: 7.0.5730.13
  • exact version of the Telerik product: 2008.1.515.20
  • preferred programming language (VB.NET or C#): C#
     

My Grid Code:
                <mcpsia:StyledRadGrid ID="gridScore" runat="server" Height="500px" Width="650px" GridLines="None" CellPadding="0">  
                    <MasterTableView GridLines="Both" EditMode="InPlace" PagerStyle-AlwaysVisible="true" PageSize="10" AllowPaging="true">  
                        <EditFormSettings> 
                            <PopUpSettings ScrollBars="None" /> 
                        </EditFormSettings> 
                        <ExpandCollapseColumn Resizable="False" Visible="False">  
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <RowIndicatorColumn Visible="False">  
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                        <HeaderStyle HorizontalAlign="Center" Width="50px" Wrap="False" /> 
                    </MasterTableView> 
                    <ClientSettings> 
                        <Scrolling AllowScroll="True" FrozenColumnsCount="1" UseStaticHeaders="True" /> 
                    </ClientSettings> 
                    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
                        Font-Underline="False" Wrap="True" /> 
                </mcpsia:StyledRadGrid> 


I am adding EditIndexs for all rows (items) in the grid to get editing in all rows.


Any ideas or examples?

Jay

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Jul 2008, 06:56 AM
Hi Jay,

You can try the following code snippet to put the entire Grid in edit mode.

CS:
protected void Page_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridDataItem item in RadGrid1.Items) 
        { 
            item.Edit = true
        } 
        RadGrid1.Rebind(); 
    } 
 

You can also refer the following code library submission and see whether it helps.
Excel-like RadGrid

Thanks
Shinu.
Tags
Grid
Asked by
Jay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or