This question is locked. New answers and comments are not allowed.
Deepak Garla
Top achievements
Rank 1
Deepak Garla
asked on 05 Oct 2009, 07:08 PM
hi,
i have an edit button in a column in a grid...when edit button is clicked i want the corresponding row in the grid to get into edit mode.
i used the data context property of the button to get all the data values in the rows selected. then i have set selected item and current item. then i used the begin edit property.The problem here is which ever row i click by default, the first row is entering into edit mode.
How do i solve this issue.
Regards,
Deepak Garla....
i have an edit button in a column in a grid...when edit button is clicked i want the corresponding row in the grid to get into edit mode.
i used the data context property of the button to get all the data values in the rows selected. then i have set selected item and current item. then i used the begin edit property.The problem here is which ever row i click by default, the first row is entering into edit mode.
How do i solve this issue.
Regards,
Deepak Garla....
5 Answers, 1 is accepted
0
Hi Deepak Garla,
I'm attaching a sample application which demonstrates how you can meat your goals.
Hope this helps.
All the best,
Nedyalko Nikolov
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.
I'm attaching a sample application which demonstrates how you can meat your goals.
Hope this helps.
All the best,
Nedyalko Nikolov
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
Deepak Garla
Top achievements
Rank 1
answered on 07 Oct 2009, 03:30 PM
Hi Nedyalko Nikolov,
Thanks for your response.we have an issue,the dll's we are using belong to this version 2009.2.701.1020.where as the code u have sent uses dll's which belong to 2009.2.1002.1030 version(Telerik.Windows.Controls.Gridview). Hence
"ParentOfType<GridViewRow>().BeginEdit()" cannot be used with our dll's.
Can u suggest if there is any other approach to do the above.
Regards,
Deepak Garla.
Thanks for your response.we have an issue,the dll's we are using belong to this version 2009.2.701.1020.where as the code u have sent uses dll's which belong to 2009.2.1002.1030 version(Telerik.Windows.Controls.Gridview). Hence
"ParentOfType<GridViewRow>().BeginEdit()" cannot be used with our dll's.
Can u suggest if there is any other approach to do the above.
Regards,
Deepak Garla.
0
Hi Deepak Garla,
You should have ParentOfType<GridViewRow>(), but you do not have BeginEdit(). You can change this code into something like this:
This will put second cell of the parent row into edit mode (first cell is the cell with the edit button).
P.S. Be aware that 2009.2.701.1020 version is built on Silverlight 2 and will not be supported anymore.
Greetings,
Nedyalko Nikolov
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.
You should have ParentOfType<GridViewRow>(), but you do not have BeginEdit(). You can change this code into something like this:
GridViewRow parentRow = ParentOfType<GridViewRow>();parentRow.Cells[1].IsCurrent = true;this.radGridView.BeginEdit();This will put second cell of the parent row into edit mode (first cell is the cell with the edit button).
P.S. Be aware that 2009.2.701.1020 version is built on Silverlight 2 and will not be supported anymore.
Greetings,
Nedyalko Nikolov
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
Deepak Garla
Top achievements
Rank 1
answered on 12 Oct 2009, 05:36 PM
Hi Nedyalko Nikolov,
Thanx a lot for the reply.We have started using the latest telerik controls(version 2009.2.812.1030).
I have an other issue,say i have 4 columns,i have modified 4 columns on click of edit button.say i want to cancel the changes made ,on click of a cancel button.This is my requirment. I have used radgrid.canceledit method.The problem here is only the last cell modified is changing to old value. i want all the 4 cells to change its values to old values.Could you please help me with this.
Regards,
Deepak Garla.
Thanx a lot for the reply.We have started using the latest telerik controls(version 2009.2.812.1030).
I have an other issue,say i have 4 columns,i have modified 4 columns on click of edit button.say i want to cancel the changes made ,on click of a cancel button.This is my requirment. I have used radgrid.canceledit method.The problem here is only the last cell modified is changing to old value. i want all the 4 cells to change its values to old values.Could you please help me with this.
Regards,
Deepak Garla.
0
Hi Deepak Garla,
In order to achieve this you have to set ValidationMode property to Row on your RadGridView.
Best wishes,
Nedyalko Nikolov
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.
In order to achieve this you have to set ValidationMode property to Row on your RadGridView.
Best wishes,
Nedyalko Nikolov
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.