本文介绍了使用javascript将值设置为网格中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网格中有一个文本框 - > RadTextBoxSandi
I have a textbox in my grid -> RadTextBoxSandi
<telerik:RadGrid ID="gridlist" runat="server" AutoGenerateColumns="false" AllowSorting="true" Width="100%" PageSize="50" AllowPaging="true"
OnPageIndexChanged="gridlist_PageIndexChanged" önItemDataBound="gridlist_OnItemDataBound">
<MasterTableView DataKeyNames="ID_DANA_MASUK" AllowPaging="true" AllowSorting="true">
<NoRecordsTemplate>
Data tidak ada...
</NoRecordsTemplate>
<Columns>
<telerik:GridTemplateColumn HeaderText="DANA MASUK">
<HeaderTemplate>
<input type="checkbox" id="ButSelect" name="ButSelect" value="Check All" onclick="CheckAll()">
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkItemSelect" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="ID DANA MASUK">
<ItemTemplate>
<asp:Label runat="server" ID="LBLIDDANAMASUK" Text='<%# Bind("ID_DANA_MASUK") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="REFERENCE NUMBER">
<ItemTemplate>
<asp:Label runat="server" ID="LBLREFERENCE_NUMBER" Text='<%# Bind("REFERENCE_NUMBER") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="TGL_TRANSAKSI" HeaderText="TGL TRANSAKSI"/>
<telerik:GridBoundColumn DataField="NAMA_PEMILIK" HeaderText="NAMA PEMILIK"/>
<telerik:GridBoundColumn DataField="NO_REK" HeaderText="NO REK"/>
<telerik:GridBoundColumn DataField="VALUTA_TRANSFER" HeaderText="VALUTA TRANSFER"/>
<telerik:GridBoundColumn DataField="NOMINAL_TRANSFER" HeaderText="NOMINAL TRANSFER"/>
<telerik:GridBoundColumn DataField="VALUTA_DITERIMA" HeaderText="VALUTA DITERIMA"/>
<telerik:GridBoundColumn DataField="NOMINAL_DITERIMA" HeaderText="NOMINAL DITERIMA"/>
<telerik:GridBoundColumn DataField="NAMA_PENGIRIM" HeaderText="NAMA PENGIRIM"/>
<telerik:GridBoundColumn DataField="NAMA_BANK_PENGIRIM" HeaderText="NAMA BANK PENGIRIM"/>
<telerik:GridBoundColumn DataField="BERITA" HeaderText="BERITA"/>
<telerik:GridTemplateColumn HeaderText="PEMBAYARAN">
<ItemTemplate>
<asp:Label ID="LBLPEMBAYARAN" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="SANDI KETERANGAN">
<ItemTemplate>
<telerik:RadTextBox ID="RadTextBoxSandi" runat="server" önclick="openWin();
return false;"></telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
</telerik:RadGrid>
我想在关闭时从我的radwindow参数中设置该文本框的值
and i want to set value that textbox from my radwindow argument when it closed
function OnClientClose(oWnd, args) {
var arg = args.get_argument();
var grid = document.getElementById("<%=gridlist.ClientID %>");
if (arg) {
// grid.textContent = arg.Kode;
}
那么,如何用javascript在gridlist中设置RadTextBoxSandi?谢谢
so, how to set that RadTextBoxSandi in gridlist with javascript? thanks before
推荐答案
function FindElement()
{
var grid =
您可以看到所有与telerik相关的问题 [] 。
这篇关于使用javascript将值设置为网格中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!