EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 16, 2024, 08:57:15 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
textbox setText
Pages: [
1
]
« previous
next »
Print
Author
Topic: textbox setText (Read 11644 times)
jaimi
Full Member
Posts: 119
textbox setText
«
on:
March 16, 2015, 02:33:47 AM »
I created a separate textbox which should relate to a datagrid.
$('#oNTY_DES').textbox({
width: 990
,height: 300
,type: 'text'
,multiline: true
,editable: false
,readonly: true
,iconWidth:0
,prompt: 'Beschreibung...'
});
whenever a row within the datagrid is selected, the value of the row should appear in the textbox. I Tried this:
...
,onSelect:function(index,row){
var row = $('#edgFutter').datagrid('getSelected');
if (row){
alert('Item ID:'+row.OLT33A003T_KEY+"\nPrice:"+row.NTY_TYPE);
$('#oNTY_DES').val(row.OLT33A003T_KEY);
}
}
});//edatagrid
the alert works but not nothing appears in the textbox.
thx for help.
Jaimi
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: textbox setText
«
Reply #1 on:
March 16, 2015, 08:08:10 AM »
Please call the textbox's 'setValue' method to set its value.
Code:
$('#oNTY_DES').textbox('setValue',row.OLT33A003T_KEY);
Logged
jaimi
Full Member
Posts: 119
Re: textbox setText
«
Reply #2 on:
March 17, 2015, 12:01:25 AM »
thx
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...