4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 27 Oct 2010, 05:25 AM
Hi Arash,
The documentation shows how to put all rows in editmode when page loads.
Put all items in edit mode without additional rebind
Also you can access particular row and set the Edit property to True.
-Shinu.
The documentation shows how to put all rows in editmode when page loads.
Put all items in edit mode without additional rebind
Also you can access particular row and set the Edit property to True.
protected
void
RadGrid1_PreRender(
object
sender, EventArgs e)
{
RadGrid1.MasterTableView.Items[0].Edit =
true
;
RadGrid1.MasterTableView.Rebind();
}
-Shinu.
0
0
Shinu
Top achievements
Rank 2
answered on 01 Nov 2010, 06:15 AM
Hello Arash,
You could check for whether page is loaded initially or postback occurred using "IsPostBack" condition.
C#:
-Shinu.
You could check for whether page is loaded initially or postback occurred using "IsPostBack" condition.
C#:
protected
void
RadGrid1_PreRender(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
RadGrid1.MasterTableView.Items[0].Edit =
true
;
RadGrid1.MasterTableView.Rebind();
}
}
-Shinu.
0
Arash
Top achievements
Rank 1
answered on 01 Nov 2010, 06:57 AM
Hi
I tried but in my case this does not work.
This might be because I have some other controls that make the PostBack occoured.
I really have to solve this problem please...
I tried but in my case this does not work.
This might be because I have some other controls that make the PostBack occoured.
I really have to solve this problem please...