Click here to Skip to main content
15,903,012 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Creating Charts/graphs on a webapge Pin
Manas Bhardwaj30-Jun-09 4:23
professionalManas Bhardwaj30-Jun-09 4:23 
GeneralRe: Creating Charts/graphs on a webapge Pin
Sandeep Akhare30-Jun-09 4:54
Sandeep Akhare30-Jun-09 4:54 
AnswerRe: Creating Charts/graphs on a webapge Pin
Jagz W30-Jun-09 8:57
professionalJagz W30-Jun-09 8:57 
AnswerRe: Creating Charts/graphs on a webapge Pin
Reanalyse30-Jun-09 17:58
Reanalyse30-Jun-09 17:58 
QuestionJava Script issue Pin
trilokharry30-Jun-09 3:58
trilokharry30-Jun-09 3:58 
AnswerRe: Java Script issue Pin
Manas Bhardwaj30-Jun-09 4:25
professionalManas Bhardwaj30-Jun-09 4:25 
AnswerRe: Java Script issue Pin
Abhijit Jana30-Jun-09 4:27
professionalAbhijit Jana30-Jun-09 4:27 
QuestionPlease Its Urgent (highlight the selected row in nested gridview? [modified]) Pin
Member 465900130-Jun-09 3:57
Member 465900130-Jun-09 3:57 
I took advantage of some code I found on these forums and have created a form that has a nested gridview. The first gridview is bound using the SqlDataSource and on the OnRowBound event, bind data to the nested gridview. Then using JavaScript i hide the nested gridview until the user clicks on an image. The code I found for the javascript nested grid view is here. I then added code to highlight the selected row in the the first gridview. What i need to know is how would I go about adding code to make it so that I can do the same for the nested gridview?


Sample code
protected void Page_PreRenderComplete(object sender, System.EventArgs e)
{

//GridView nestedGrid = (GridView)GridView1.FindControl("GridView2");
foreach (GridViewRow y in GridView1.Rows)
{
y.Attributes.Add("onclick", "setSelected(this);");
}


}


function setSelected(selRow)
{
// alert(selRow.rowIndex);

var tbl = document.getElementById("GridView1");

for(var i = 1; i < tbl.rows.length; i++)
{

if(selRow.rowIndex == i)
{
selRow.style.fontWeight = "Bold";
selRow.style.backgroundColor = "Yellow";
}

}
}


But once i moved to child grid that time Click event of parent Grid cell does not fired so all highlited row of parent grid gone.

so how to solve it

Raghvendra

modified on Tuesday, June 30, 2009 12:06 PM

QuestionA couple of CSS questions... [modified] Pin
c242330-Jun-09 3:44
c242330-Jun-09 3:44 
AnswerRe: A couple of CSS questions... Pin
Manas Bhardwaj30-Jun-09 4:30
professionalManas Bhardwaj30-Jun-09 4:30 
GeneralRe: A couple of CSS questions... Pin
c242330-Jun-09 5:05
c242330-Jun-09 5:05 
GeneralRe: A couple of CSS questions... Pin
Abhijit Jana30-Jun-09 5:16
professionalAbhijit Jana30-Jun-09 5:16 
GeneralRe: A couple of CSS questions... Pin
c242330-Jun-09 8:47
c242330-Jun-09 8:47 
Questionarabic file name is coming in junk characters while download the file using asp.net Pin
lakshmichawala30-Jun-09 3:41
lakshmichawala30-Jun-09 3:41 
AnswerRe: arabic file name is coming in junk characters while download the file using asp.net Pin
Abhijit Jana30-Jun-09 10:24
professionalAbhijit Jana30-Jun-09 10:24 
AnswerRe: arabic file name is coming in junk characters while download the file using asp.net Pin
Sabrysoft3-May-11 8:29
Sabrysoft3-May-11 8:29 
QuestionMax number of selections from a listbox/other control reset Pin
mjc22530-Jun-09 3:27
mjc22530-Jun-09 3:27 
AnswerRe: Max number of selections from a listbox/other control reset Pin
Abhijit Jana30-Jun-09 10:34
professionalAbhijit Jana30-Jun-09 10:34 
Questioncalling server side function Pin
Amit Patel198530-Jun-09 2:34
Amit Patel198530-Jun-09 2:34 
AnswerRe: calling server side function Pin
Sangeeth Mohan30-Jun-09 2:40
professionalSangeeth Mohan30-Jun-09 2:40 
AnswerRe: calling server side function Pin
K030630-Jun-09 2:42
K030630-Jun-09 2:42 
AnswerRe: calling server side function Pin
Manas Bhardwaj30-Jun-09 2:43
professionalManas Bhardwaj30-Jun-09 2:43 
Question403 Error Pin
#realJSOP30-Jun-09 2:26
professional#realJSOP30-Jun-09 2:26 
AnswerRe: 403 Error Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:33
professionalVimalsoft(Pty) Ltd30-Jun-09 2:33 
AnswerRe: 403 Error Pin
Abhijit Jana30-Jun-09 3:02
professionalAbhijit Jana30-Jun-09 3:02 

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.