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

[Solved] How to open Radwindow on OnRowDblClick event of client settings

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Suvarna
Top achievements
Rank 1
Suvarna asked on 18 Jun 2009, 06:31 AM

Hi ,

I have one content page . In that i have one grid. Grid has one datakeyname Indicator Id . What i want is on OnRowDblClick event of client settings i want to open Rad window & pass the Indicator Id as querystring of selected row to it .I know how to open radwindow by passing id using javascript function . but i cant write javascript function on my page because its a content page.  how will i do this .below is my aspx page for radgrid. Please help me . Thanks in advance.

 

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<rad:RadGrid ID="RadGrid1" runat="server" Width="500px" AutoGenerateColumns="false"

 
Skin="Outlook" AllowSorting="True" GridLines="Both" Height="300px" ShowFooter="false" BackColor="#FFFFFF" BorderStyle="none">
<MasterTableView DataKeyNames="IndicatorId">

 <Columns>

 
<rad:GridBoundColumn HeaderText="IndicatorId" DataField="IndicatorId" Visible="false" UniqueName="IndicatorId">

<HeaderStyle Width="100px" HorizontalAlign="Center"/>

<ItemStyle Width="100px" HorizontalAlign="Center"/>

 </rad:GridBoundColumn>

<rad:GridBoundColumn HeaderText="Gewijzigd door" DataField="UpdatedBy" UniqueName="UpdatedBy">

<HeaderStyle Width="250px" HorizontalAlign="Center"/>  

 
</rad:GridBoundColumn>
 
</Columns>

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px" />

 
</RowIndicatorColumn>

 
<ExpandCollapseColumn Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

 <ExpandCollapseColumn>
</MasterTableView>
<ClientSettings>

 <Selecting AllowRowSelect="True" />

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 
<ClientEvents OnRowDblClick="showVersionDetails()" />

 
</ClientSettings>

</rad:RadGrid>

<radW:RadWindowManager ID="RadWindowManager1" runat="server" UseEmbeddedScripts="false"

VisibleStatusbar="false" SingleNonMinimizedWindow="true" Skin="Default2006" EnableViewState="true"

Modal="true">

 <Windows>

 
<radW:RadWindow ID="VersionDetails" runat="server" UseEmbeddedScripts="false" Title="User Edit"

VisibleTitlebar="false" Height="1050px" Width="600px" Left="50px" Top="23px"

 
ReloadOnShow="false" Modal="true" />

 
</Windows>

</radW:RadWindowManager>

 
</div>

 

asp:Content>

 

Thanks,
Suvarna

 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 19 Jun 2009, 10:14 AM
Hi Suvarna,

If your content page is ajaxified on the master, your javascript in the content page will not be registered properly on the page. You need to place your <scritp> tag inside a RadScriptBlock to solve the issue. Other than that, the value of a cell in RadGrid's RowDblClicked client event in the following way:

args.get_gridDataItem().get_cell("IndicatorId").innerHTML

Kind regards,
Veli
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
Suvarna
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or