TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
elsit jose
NA
7
2.7k
how will i covert to jquery
Mar 26 2015 7:03 AM
if (e.Row.RowType == DataControlRowType.DataRow)
{
foreach (TableCell cell in e.Row.Cells)
{
string s = cell.Text;
if (cell.Text.Length > 10)
cell.Text = cell.Text.Substring(0, 10) + "....";
cell.ToolTip = s;
this should be converted to jquery and my page is..
<body>
<form id="form1" runat="server">
<div class="limitChar">
<asp:GridView ID="grdStudentList" runat="server" AutoGenerateColumns="false" >
<Columns>
<asp:BoundField DataField="studentID" HeaderText="studentID" ReadOnly="True" />
<asp:BoundField DataField="studentName" HeaderText="studentName" />
<asp:BoundField DataField="Address" HeaderText="Address" />
<asp:BoundField DataField="Country" HeaderText="Country" />
<asp:BoundField DataField="City" HeaderText="City" />
<asp:BoundField DataField="Description" HeaderText="Description" />
<asp:BoundField DataField="Pincode" HeaderText="Pincode" />
</Columns>
</asp:GridView>
</div>
</form>
<script src="script/jquery-1.9.1.js" type="text/javascript"></script>
<script src="script/jquery-ui.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
alert();
$(".limitChar").each(function() {
alert("gjhghj");
$cell.text();
alert($(BoundField).val);
alert(DataField.val.length);
if (BoundField.value.length > 10) {
$(this).text($(this).text().substr(0, 10) + '...');
}
});
});
</script>
how to convert using jquery css tooltip function to limit the character.
Reply
Answers (
1
)
How to deploy a web site having crystal report
How can i test the text on Message Box in unit testing?