Hi,
I have an issue.
In my project, when I mouse the Cursor to Teachers Columns then the Count of their Personal, Vacation and Sick leave should be shown.
I have already bind the data to some hidden columns.
Now the MouseOver Function is like this:
function uwgApprover_MouseOverHandler(gridName, id, objectType) {
var cell1 = igtbl_getElementById(id);
var cell = igtbl_getCellById(id);
if (!cell) return;
var str = id.split('_');
var column = cell.Column;
var actRowWork = igtbl_getActiveRow(gridName);
if (str[3] == 8 || str[3] == 7) {
cell1.style.cursor = 'hand';
}
if (str[3] == 4) {
var row = cell.getRow();
var Personal = row.getCellFromKey("CPersonal").getValue();
var Vacation = row.getCellFromKey("CVacation").getValue();
var Sick = row.getCellFromKey("CSick").getValue();
var Total = 'Personal:' + Personal + ', Vacation:' + Vacation + ', Sick:' + Sick;
return Total;
In the above code I am returning the all values, But I am getting the TeacherName instead of the concatenated Absences Values.
Please do the needful ASAP.
Thanks,
Moulika.
Hello moulika,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I see the total returns concatenated values when I hover over "name" column
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Thanks for you mail.
But the MouseOver function is working for cursor style change from pointer to Hand, it not returning the value.
Its an important task the client needs.
Please do the needful.
I think, my code page will help you to work on the issue.
Hi Surya
In runtime the grid contains lots of rows, If I use the alert box clients need to click on 'OK'.
I need the text at the end of the cursor, for example: IF you use abbrevations in HTML tags, by placing the move over the word the full form will be show without any alert.
Can you suggest me with any such options.
Hello Moulika,
You can achieve this on serverside in the intializerow event like below
protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e)
{ // Automatically generate a title for cells in the job column
e.Row.Cells.FromKey("Name").TitleMode = CellTitleMode.Always;
// Create a custom title for cells in the name column based on the
// value of cell in a hidden column
string Personal = e.Row.Cells.FromKey("Personal").Value.ToString();
string Sick = e.Row.Cells.FromKey("Personal").Value.ToString();
string Vacation = e.Row.Cells.FromKey("Personal").Value.ToString();
e.Row.Cells.FromKey("Name").Title ="Personal: "+ Personal + " "+ "Sick: "+Sick+ " " + "Vacation: "+Vacation+"";