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

[Solved] RadGrid EditFormMode Set values to controls Parent Page

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ashwin Deshpande
Top achievements
Rank 1
Ashwin Deshpande asked on 06 Aug 2009, 03:46 PM
I have a textBox and Radgrid on Parentpage....
if i click edit Button inside radgrid i want to set texbo
x(outside radgrid) value to Somevalue.....

I have used following Code in ItemCommand Event

       If e.CommandName = "Edit" Then

            Dim index As Integer = e.Item.ItemIndex

            Dim item As Telerik.Web.UI.GridDataItem = RadGrid1.Items(index)

            Dim nitem As Integer
            nitem = Server.HtmlDecode(item("pnv_id").Text)
            textBox1.text=nitem
        End If

I M using EditPopupForm mode..when i click on edit Button inside grid.Popup Form Appears but .textbox value is Not Changed


Please Suugest a Solution for This.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Aug 2009, 10:53 AM
Hello Ashwin,

The proper approach in this case would be to get a reference to the GridEditFormItem, in the ItemDataBound event handler, or directly. There, you can access the relevant cell, and the nested control(s), and set the value accordingly.
I hope this suggestion helps.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Ashwin Deshpande
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or