Click here to Skip to main content
15,881,413 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASP.NET Website Template or CMS for Database-driven site? Pin
Member 1214932324-Oct-18 23:10
Member 1214932324-Oct-18 23:10 
AnswerRe: ASP.NET Website Template or CMS for Database-driven site? Pin
Afzaal Ahmad Zeeshan25-Oct-18 2:29
professionalAfzaal Ahmad Zeeshan25-Oct-18 2:29 
AnswerRe: ASP.NET Website Template or CMS for Database-driven site? Pin
sriyanssharma5-Nov-18 21:58
sriyanssharma5-Nov-18 21:58 
QuestionASP.NET Website Template or CMS for Database-driven site? Pin
Member 1214932324-Oct-18 23:10
Member 1214932324-Oct-18 23:10 
AnswerRe: ASP.NET Website Template or CMS for Database-driven site? Pin
Afzaal Ahmad Zeeshan25-Oct-18 2:36
professionalAfzaal Ahmad Zeeshan25-Oct-18 2:36 
GeneralASP.NET MVC dependency injection Pin
Dwayne Barsotta24-Oct-18 19:32
Dwayne Barsotta24-Oct-18 19:32 
GeneralRe: ASP.NET MVC dependency injection Pin
Nathan Minier25-Oct-18 1:21
professionalNathan Minier25-Oct-18 1:21 
QuestionRadGrid hierarchy parentID using command-template Pin
jsegreti9-Oct-18 18:03
jsegreti9-Oct-18 18:03 
I have a radgrid hierarchy structure. When the user navigates to the third level and clicks on the parent tickmark on the grid, the RadGrid1_ItemCommand is fired and I can retrieve the parent "ProgramID".

But I need to pickup the parentID when the user clicks on the command-template button located just on top of the detail rows. I would like to get the value within a client-side function or server-side if that is easier??? (but cannot get that to work well).

Thank you for you help with this request!


Client-Side code:

function openWindowNEW(sender, args) {

var programID= parentItem.OwnerTableView.Items[sender.Item.ItemIndex].GetDataKeyValue("ProgramID"); //...not working

radopen("Storyboard.aspx?carID=programID, "RadWindow2");

}



Server-Side Code:

console.write((string) sender.Item.OwnerTableView.Items[e.Item.ItemIndex].GetDataKeyValue("ProgramID").ToString());


The code works below but it needs it to work from within a client-side function....

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{

if (e.Item.OwnerTableView.DataSourceID == "SqlDataSource3")
{
GridDataItem parentItem = (GridDataItem)(e.Item.OwnerTableView.ParentItem);
if (parentItem != null)
{
//..tier 2 parent
Console.Write(parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["StrategicInitID"]);

//..tier 3 parent
HiddenProgramIDSelected.Value = (string)e.Item.OwnerTableView.Items[e.Item.ItemIndex].GetDataKeyValue("ProgramID").ToString();

}
}
}
AnswerRe: RadGrid hierarchy parentID using command-template Pin
Vincent Maverick Durano11-Oct-18 11:28
professionalVincent Maverick Durano11-Oct-18 11:28 
Questioncreate dynamic textBoxes Pin
Member 933127825-Sep-18 3:30
Member 933127825-Sep-18 3:30 
AnswerRe: create dynamic textBoxes Pin
Dar Brett25-Sep-18 4:55
Dar Brett25-Sep-18 4:55 
AnswerRe: create dynamic textBoxes Pin
F-ES Sitecore26-Sep-18 22:43
professionalF-ES Sitecore26-Sep-18 22:43 
QuestionHow to Complete Angular/Typescript-Based Web Development Workflow in Restricted Environment Pin
Christopher Koeber23-Sep-18 10:36
Christopher Koeber23-Sep-18 10:36 
AnswerRe: How to Complete Angular/Typescript-Based Web Development Workflow in Restricted Environment Pin
jkirkerx25-Sep-18 8:07
professionaljkirkerx25-Sep-18 8:07 
QuestionMessage Closed Pin
23-Sep-18 9:16
Christopher Koeber23-Sep-18 9:16 
AnswerRe: Using Latest Angular/Typescript Web Development Pipeline within Restricted Environment Pin
Nelek23-Sep-18 9:17
protectorNelek23-Sep-18 9:17 
GeneralRe: Using Latest Angular/Typescript Web Development Pipeline within Restricted Environment Pin
Christopher Koeber23-Sep-18 10:23
Christopher Koeber23-Sep-18 10:23 
QuestionTry to dynamic text box Pin
Member 933127821-Sep-18 11:09
Member 933127821-Sep-18 11:09 
AnswerRe: Try to dynamic text box Pin
Richard Deeming21-Sep-18 13:10
mveRichard Deeming21-Sep-18 13:10 
QuestionAccepting application/x-www-urlencode format data Pin
R191119-Sep-18 23:52
R191119-Sep-18 23:52 
AnswerRe: Accepting application/x-www-urlencode format data Pin
Richard Deeming20-Sep-18 0:45
mveRichard Deeming20-Sep-18 0:45 
GeneralRe: Accepting application/x-www-urlencode format data Pin
R191120-Sep-18 2:12
R191120-Sep-18 2:12 
QuestionMVC: Can a controller know its URL without being called? Pin
Foothill18-Sep-18 9:22
professionalFoothill18-Sep-18 9:22 
AnswerRe: MVC: Can a controller know its URL without being called? Pin
Richard Deeming18-Sep-18 10:49
mveRichard Deeming18-Sep-18 10:49 
GeneralRe: MVC: Can a controller know its URL without being called? Pin
Foothill18-Sep-18 11:45
professionalFoothill18-Sep-18 11:45 

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.