Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Getting Started
surendarmx
Button inside a grid column..!!!
in
Getting Started
•
11 years ago
Hi,
I want to put a button inside a grid column, can any one help me out...
I am using Struts jQuery Grid showcase tag.
Thanks
1
Replies(6)
charlietfl
Re: Button inside a grid column..!!!
11 years ago
without a much more detailed explanation of what you need the best you'll get is:
$('td').append('<button>Test</button')
this would put a button in every TD on your page
Leave a comment on charlietfl's reply
surendarmx
Re: Button inside a grid column..!!!
11 years ago
Thanks,
But i didnt use TD in my grid..
Its a Struts jQuery Grid...
Code is:
<sjg:grid
id="vmGrid"
caption="VM List"
dataType="text"
href="%{remoteurl}"
pager="true"
rowList="5,10,15"
rowNum="10"
loadonce="true"
rownumbers="true"
gridModel="listvm"
>
<sjg:gridColumn name="VMName" index="vmName" title="VM Name" cssClass="vmName" width="180" />
<sjg:gridColumn name="IPAddress" index="ipAddress" title="IP Address" align="center" width="270" resizable="true"/>
<sjg:gridColumn name="OS" index="os" title="OS" width="240" align="left" />
<sjg:gridColumn name="status._value_" index="status" title="Status" width="120" align="center" />
</sjg:grid>
I need to put button inside the last column "Status"
Thanks in advance
Leave a comment on surendarmx's reply
charlietfl
Re: Button inside a grid column..!!!
11 years ago
and the output is not an html table?
Browser doesn't care what server language you are using, it only sees the html that is sent to it
What does the html output look like?
Leave a comment on charlietfl's reply
surendarmx
Re: Button inside a grid column..!!!
11 years ago
http://www.weinfreund.de/struts2-jquery-showcase
Check the GRID in this site. I used the same and output also same like that.
Thanks
Leave a comment on surendarmx's reply
charlietfl
Re: Button inside a grid column..!!!
11 years ago
this will append a button in each row, last cell
$('#
vmGrid
tbody tr').each(function(){
$(this).find('td:last').append('<button>Text</button>')
});
Leave a comment on charlietfl's reply
surendarmx
Re: Button inside a grid column..!!!
11 years ago
Thanks dude..
But i need to append to button inside a same column,
like,
$('#
vmGrid
tbody tr').each(function(){
$(this).find('td:last').append('<button>ON</button>' && '<button>OFF</button>')
});
How to make this one... above code is not working.
Thanks in advance
Leave a comment on surendarmx's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to surendarmx's question
Top
Reply
{"z7466671":[14737000002747207,14737000002750814,14737000002750990,14737000002751424],"z1411412":[14737000002748454,14737000002748635,14737000002748662]}
Statistics
6
Replies
5290
Views
0
Followers
Tags
No tags available for this topic.
Cancel
Actions
Permalink