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,
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+"";
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.
Can you briefly explain me what you are looking for? This sample I have provided demonstrates displays the total value when you hover over name column in a message box. Are you looking for a tooltip to display when you hover over a column?
I think, my code page will help you to work on the issue.
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.