Hey there,
I am new with Rad controls.I am using a rad grid in which i want to add,Edit and delete items on button clicks outside the grid.Such that the selected row data comes sliding under the grid on clicking Edit after selecting a row.
Could someone help!!
Thanks
Amit.
I am new with Rad controls.I am using a rad grid in which i want to add,Edit and delete items on button clicks outside the grid.Such that the selected row data comes sliding under the grid on clicking Edit after selecting a row.
Could someone help!!
Thanks
Amit.
5 Answers, 1 is accepted
0
Accepted
Princy
Top achievements
Rank 2
answered on 30 Sep 2010, 01:31 PM
Hello,
The following demo will help you in editing grid using external form.
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid
Thanks,
Princy.
The following demo will help you in editing grid using external form.
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid
Thanks,
Princy.
0
Amit
Top achievements
Rank 1
answered on 30 Sep 2010, 01:39 PM
In my case i have to select a row than click an edit button which is outside grid,and get the row values under grid as shown in example in the link you gave.I want to edit the row selected in same way as in example but button is outside grid which will work on only selected row.
0
Accepted
Shinu
Top achievements
Rank 2
answered on 30 Sep 2010, 03:30 PM
Hello Amit,
This behavior, you can achieve in a much easier way.
Here is the server side method.
Also client side code for same functionality.
-Shinu.
This behavior, you can achieve in a much easier way.
Here is the server side method.
protected
void
Button2_Click(
object
sender, EventArgs e)
{
RadGrid1.SelectedItems[0].Edit =
true
;
RadGrid1.Rebind();
}
Also client side code for same functionality.
function
editSelected() {
var
textbox = $find(
'<%=RadGrid1.ClientID %>'
);
textbox.get_masterTableView().editSelectedItems();
}
-Shinu.
0
Amit
Top achievements
Rank 1
answered on 01 Oct 2010, 05:04 AM
Is it mandatory to use ascx(User Control) file like done in the example shown in the link above for my example.Cant all the code Be handled in single code behind file of the form?...
0
Accepted
Shinu
Top achievements
Rank 2
answered on 01 Oct 2010, 08:14 AM
Hello Amit,
It is not mandatory to use UserControl for this purpose. Its all based on your the requirement and use (by making a set of controls with functionalities as user control standalone object).
By using above code, you can simply open the autogenareted editform of RadGrid and perform automatic operation as described in the following demo.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
-Shinu.
It is not mandatory to use UserControl for this purpose. Its all based on your the requirement and use (by making a set of controls with functionalities as user control standalone object).
By using above code, you can simply open the autogenareted editform of RadGrid and perform automatic operation as described in the following demo.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
-Shinu.