Click here to Skip to main content
15,915,324 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Customizing Coloumns in DataGridView in VS 2008 Pin
Dave Kreskowiak6-May-08 8:20
mveDave Kreskowiak6-May-08 8:20 
GeneralGenerate table and add rows dynamically using JSON [modified] Pin
visala4-May-08 23:41
visala4-May-08 23:41 
GeneralRe: Generate table and add rows dynamically using JSON Pin
Christian Graus5-May-08 0:23
protectorChristian Graus5-May-08 0:23 
GeneralRe: Generate table and add rows dynamically using JSON Pin
visala5-May-08 0:43
visala5-May-08 0:43 
GeneralRe: Generate table and add rows dynamically using JSON Pin
Brady Kelly5-May-08 1:49
Brady Kelly5-May-08 1:49 
GeneralRe: Generate table and add rows dynamically using JSON Pin
visala5-May-08 2:22
visala5-May-08 2:22 
GeneralRe: Generate table and add rows dynamically using JSON Pin
Brady Kelly5-May-08 2:43
Brady Kelly5-May-08 2:43 
GeneralRe: Generate table and add rows dynamically using JSON Pin
visala5-May-08 3:38
visala5-May-08 3:38 
I created table dynamically, but I am not getting the right click option even I use setcapture() and it is not displayed like a popup.

The function, which I have written to generate the table is as follows. If you find anything to do, please let me know


function createDynTable(row, col)
{
oContextMenu.innerHTML="";
//oContextObject=oTarget;
iMenuItems=0;
oContextMenu.setCapture();
// get the reference for the body
var mybody = document.getElementsByTagName("body")[0];
var mydiv = document.createElement("div");

// creates a <table> element and a <tbody> element
mytable = document.createElement("table");
mytablebody = document.createElement("tbody");

// creating all cells
for(var j = 0; j < row; j++) {
// creates a <tr> element
mycurrent_row = document.createElement("tr");
for(var i = 0; i < col; i++) {
// creates a <td> element
mycurrent_cell = document.createElement("td");

// add edit cell;
mycurrent_cell.ondblclick = function (evt) { editCell(this);};
// creates a text node
currenttext = document.createTextNode("cell is row "+j+", column "+i);
// appends the text node we created into the cell <td>
mycurrent_cell.appendChild(currenttext);
// appends the cell <td> into the row <tr>
mycurrent_row.appendChild(mycurrent_cell);
}
// appends the row <tr> into <tbody>
mytablebody.appendChild(mycurrent_row);

}
// appends <tbody> into <table>
mytable.appendChild(mytablebody);
mydiv.appendChild(mytable);
// appends <table> into <body>
mybody.appendChild(mytable);
// sets the border attribute of mytable to 2;
mytable.setAttribute("border", "2");

//return mytable;
oContextMenu.innerHTML=mytable;
iMenuItems++;
}

Thanks,
Visala Smile | :)
GeneralRe: Generate table and add rows dynamically using JSON Pin
Pete O'Hanlon5-May-08 8:58
mvePete O'Hanlon5-May-08 8:58 
QuestionNo of COM ports supported or connected... Pin
Member 36373454-May-08 22:38
Member 36373454-May-08 22:38 
Question.net framework 2.0 requirements Pin
Member 36373454-May-08 19:02
Member 36373454-May-08 19:02 
AnswerRe: .net framework 2.0 requirements Pin
Christian Graus4-May-08 19:28
protectorChristian Graus4-May-08 19:28 
AnswerRe: .net framework 2.0 requirements Pin
CodeItWell6-May-08 6:00
CodeItWell6-May-08 6:00 
QuestionQuestions on windows installer Pin
alias00184-May-08 16:55
alias00184-May-08 16:55 
QuestionDoes any one now how to work with primavera integration API??? Pin
Ahmad Nassar3-May-08 20:33
Ahmad Nassar3-May-08 20:33 
AnswerRe: Does any one now how to work with primavera integration API??? Pin
Christian Graus4-May-08 17:03
protectorChristian Graus4-May-08 17:03 
GeneralRe: Does any one now how to work with primavera integration API??? Pin
Ahmad Nassar4-May-08 19:26
Ahmad Nassar4-May-08 19:26 
GeneralRe: Does any one now how to work with primavera integration API??? Pin
Christian Graus4-May-08 19:30
protectorChristian Graus4-May-08 19:30 
QuestionHow to develop virtual environment online using C# with Managed DirectX? in 3D Pin
katelva3-May-08 8:22
katelva3-May-08 8:22 
QuestionWhat is being Jitted? Pin
Ray Kinsella2-May-08 23:06
Ray Kinsella2-May-08 23:06 
AnswerRe: What is being Jitted? Pin
Mike Dimmick3-May-08 1:08
Mike Dimmick3-May-08 1:08 
GeneralRe: What is being Jitted? Pin
Ray Kinsella3-May-08 4:02
Ray Kinsella3-May-08 4:02 
Questiondotnetfx2 Pin
sas94912-May-08 8:43
sas94912-May-08 8:43 
AnswerRe: dotnetfx2 Pin
Pete O'Hanlon2-May-08 8:55
mvePete O'Hanlon2-May-08 8:55 
GeneralRe: dotnetfx2 Pin
sas94912-May-08 10:57
sas94912-May-08 10:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.