This is a migrated thread and some comments may be shown as answers.

How to retrieve value of column in detail table

4 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 25 Apr 2011, 04:09 PM

UPDATE: I was able to get the value of column, but I have another question:

I have the following, how do I open up a link to a new window without getting the "sys.webforms.pagerequestmanagerparsererrorexception: the message received from the server could not be parted" error?  I'm trying to assign a http link.

 

 

protected void gridAdmiral_ItemCommand(object source, GridCommandEventArgs e)

 

 

{

 

 

 

if (e.CommandName == "Open")

 

 

{

 

 

 

 

    string id = ((GridDataItem)e.Item).GetDataKeyValue("ID").ToString();

 

 

 

 

    string url = GetOpenLink(id);

 

 

    Response.Write(

 

"<script>");

 

 

    Response.Write(

 

"window.open('" + url + "','_blank')");

 

 

    Response.Write(

 

"</script>");

 

 

}

 

}

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 27 Apr 2011, 12:20 PM
Hi Michael,

Here is a help article which shows how to loop through the detail tables. Go through it and see whether it helps.
Traversing detail tables/items in Telerik RadGrid

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Michael
Top achievements
Rank 1
answered on 27 Apr 2011, 07:29 PM

Actually, I was able to get the value from the this line of code:

string id = ((GridDataItem)e.Item).GetDataKeyValue("ID").ToString();


What my problem is now, I can't seem to open a new window on the ItemCommand event.  I get the following error:

"sys.webforms.pagerequestmanagerparsererrorexception: the message received from the server could not be parted"

See my code in the original post.

 

Thanks for any help.

0
Michael
Top achievements
Rank 1
answered on 28 Apr 2011, 08:45 PM
0
Pavlina
Telerik team
answered on 02 May 2011, 01:11 PM
Hello Michael,

We are glad that you managed to resolve the problem. Please do not hesitate to contact us if other questions or problems arise.

Greetings,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Michael
Top achievements
Rank 1
Share this question
or