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

RadGrid Popup

3 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kham
Top achievements
Rank 1
kham asked on 29 Mar 2011, 10:52 AM
dear all,
    I bind my radgrid with Need DataSource in code behind. I want to edit my radgrid when double click the grid row , I want one of the page appear with rowid. can? help me please.?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Mar 2011, 12:06 PM
Hello,


The demo illustrates how to switch a row in edit mode by double-clicking an arbitrary grid item and how to update this row when the user clicks another row in the grid.

Demo:Edit on Double-click

I hope this would help you to get started. Have a nice day.


-Shinu.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 29 Mar 2011, 12:10 PM
Hi kham,

function RowDblClick(sender, eventArgs) {
                //editedRow = eventArgs.get_itemIndexHierarchical();
                // alert(eventArgs.getDataKeyValue("StudentID"));
                window.location.href = "http://www.google.com/?id=" + eventArgs.getDataKeyValue("StudentID");  // open in same window
                     // window.open('http://www.google.com/?id' + eventArgs.getDataKeyValue("StudentID") , 'Test', 'resizable=yes') // open in new window
            }

<telerik:RadGrid ID="RadGrid1" runat="server" >
                    <MasterTableView  DataKeyNames="StudentID" ClientDataKeyNames="StudentID">
                    </MasterTableView>
                    <ClientSettings  EnableRowHoverStyle="true">
                        <ClientEvents OnRowDblClick="RowDblClick" />
                    </ClientSettings>
    </telerik:RadGrid>


Thanks,
Jayesh Goyani
0
kham
Top achievements
Rank 1
answered on 30 Mar 2011, 06:10 AM
Thank you so much! already ok now.
Tags
Grid
Asked by
kham
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jayesh Goyani
Top achievements
Rank 2
kham
Top achievements
Rank 1
Share this question
or