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

[Solved] Grid always in edit mode

3 Answers 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Veshala
Top achievements
Rank 1
Veshala asked on 17 Nov 2009, 09:24 PM
Hi,

I have a grid with couple of columns, but only column with check box is editable. I want that editable column in edit mode all the time.

With the following code, whenever the page postbacks, editable column turns into non-editable.
protected void grdAnnouncements_PreRender(object sender, System.EventArgs e) 
        { 
            foreach (GridItem item in grdAnnouncements.MasterTableView.Items) 
            { 
                item.Edit = true;                
            }                         
        } 
 
 

Any help is appreciated.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Nov 2009, 09:59 PM
Hello Veshala,

Please examine the following links and choose the approach that suits your scenario best:
Default edit mode for grid items on initial load
Put all items in edit mode without additional rebind

Let me know whether you need more information

EDIT: I edited the post because I submitted it prematurely

Kind regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Veshala
Top achievements
Rank 1
answered on 17 Nov 2009, 10:01 PM
Sorry, I didn't find any links.
Please post again.

Thanks
0
Veshala
Top achievements
Rank 1
answered on 17 Nov 2009, 10:56 PM
Thanks for the solution.

Tags
Grid
Asked by
Veshala
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Veshala
Top achievements
Rank 1
Share this question
or