Hi
i have a radgrid populated with data in double click i launch a rad window manager with texbox that need to fill with the data selected on the radgrid. i fail to get the value of the row. i can only get the index of the selected item.
this is my grid aspx:
and my JS:
and fianlly mi VB:
Thank you
i have a radgrid populated with data in double click i launch a rad window manager with texbox that need to fill with the data selected on the radgrid. i fail to get the value of the row. i can only get the index of the selected item.
this is my grid aspx:
<telerik:RadGrid ID="rgBuscar" runat="server" CellSpacing="0" Culture="es-ES" GridLines="None" Height="469px" Skin="Hay" Width="944px"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <MasterTableView> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="True" /> <ClientEvents OnRowDblClick="RowDblClick"/> </ClientSettings> <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle> <FilterMenu EnableImageSprites="False"></FilterMenu></telerik:RadGrid>and my JS:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function RowDblClick(sender, args) { var index = args.get_itemIndexHierarchical(); sender.get_masterTableView().fireCommand("RowDblClick", index); } </script></telerik:RadCodeBlock>and fianlly mi VB:
Protected Sub rgBuscar_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgBuscar.ItemCommand If e.CommandName = "RowDblClick" Then Dim var As String = e.CommandArgument'here is where i need the value of the cell number 2 of the row 'but im getting the index idValor = e.Item.Cells(2).Text MostrarVentana(idValor) End If End SubPublic Sub MostrarVentana(ByVal IdCampo As Integer) lector = objBd.obtenerConfiguraciones("Cambio Ordenes") While lector.Read rwmCambio.Windows(0).NavigateUrl = lector("OCON_Url") & "?IdCampo=" & IdCampo rwmCambio.Windows(0).Width = Unit.Pixel(lector("OCON_Width")) rwmCambio.Windows(0).Height = Unit.Pixel(lector("OCON_Height")) End While rwmCambio.Windows(0).VisibleOnPageLoad = TrueEnd SubThank you