or
<
telerik:RadGrid
ID
=
"NotifyGrid"
runat
=
"server"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
GridLines
=
"Horizontal"
ShowStatusBar
=
"false"
ShowFooter
=
"false"
AllowPaging
=
"True"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
EnableEmbeddedSkins
=
"False"
Skin
=
"AlSkin"
EnableTheming
=
"False"
>
<
GroupingSettings
CaseSensitive
=
"False"
/>
<
ClientSettings
AllowColumnsReorder
=
"True"
ReorderColumnsOnClient
=
"True"
>
<
Resizing
AllowColumnResize
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
UseAllDataFields
=
"true"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
/>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridButtonColumn
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
ConfirmText
=
""
ConfirmTitle
=
""
ConfirmDialogType
=
"RadWindow"
UniqueName
=
"delete_notification"
ImageUrl
=
"Images/DeleteRedResized.png"
ShowSortIcon
=
"false"
SortExpression
=
""
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Top"
Width
=
"4%"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Top"
Width
=
"4%"
/>
</
telerik:GridButtonColumn
>
Hi,
Environment: VS 2008 SP1, RadControls for ASP.NET AJAX Q1 2010 NET35.
I have a Radgrid with 2 Independant Detail Tables. My questions are:
1) Is it possible to Hide/Show Detail Tables from Master Table Edit forms Link Button Onclick Events (LinkButton5 and LinkButton6 are in this page)?
2) In Initial Page load event, show Detail Table (Name="Detail") by default but hide Detail Table1 (Name="Detail1") .
3) Can the currently active (unhiden) Detail Table name be displayed in a Master Table label after link buttons onclick event as well as on initial page load event?
 
Below are my codes. But Onlclick events of Link Buttons are not working.
 
Thanks
gc_0620
______________ 
<%-- Beginning Block of Rad Grid --%>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
>
<%-- Beginning Block of Master Table --%>
<
MasterTableView
DataKeyNames
=
"PersonTableID"
Name
=
"Master"
Font-Size
=
"11px"
DataSourceID
=
"SqlDataSource3"
AllowFilteringByColumn
=
"true"
CommandItemDisplay
=
"Top"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<%-- Beginning Block of Detail Table --%>
<
DetailTables
>
<
telerik:GridTableView
runat
=
"server"
DataSourceID
=
"SqlDataSource4"
DataKeyNames
=
"JobPersonID"
ShowHeader
=
"true"
Width
=
"100%"
Name
=
"Detail"
AllowAutomaticDeletes
=
"true"
ClientDataKeyNames
=
"JobPersonID"
<ParentTableRelation>
<
telerik:GridRelationFields
DetailKeyField
=
"PersonId"
MasterKeyField
=
"PersonTableID"
/>
</
ParentTableRelation
>
<
Columns
>
'''
'''
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
FormCaptionStyle-CssClass
=
"form-controls"
>
<
FormCaptionStyle
CssClass
=
"form-controls"
></
FormCaptionStyle
>
<
FormTemplate
>
'''
'''
</
FormTemplate
>
</
EditFormSettings
>
</
telerik:GridTableView
>
</
DetailTables
>
<%-- Ending Block of Detail Table --%>
<%-- Beginning Block of Detail Table1 --%>
<
DetailTables
>
<
telerik:GridTableView
runat
=
"server"
DataSourceID
=
"SqlDataSource5"
DataKeyNames
=
"JobPersonID"
ShowHeader
=
"true"
Width
=
"100%"
Name
=
"Detail1"
AllowAutomaticDeletes
=
"true"
ClientDataKeyNames
=
"JobPerson_SecondaryID"
<ParentTableRelation>
<
telerik:GridRelationFields
DetailKeyField
=
"PersonId"
MasterKeyField
=
"PersonTableID"
/>
</
ParentTableRelation
>
<
Columns
>
'''
'''
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
FormCaptionStyle-CssClass
=
"form-controls"
>
<
FormCaptionStyle
CssClass
=
"form-controls"
></
FormCaptionStyle
>
<
FormTemplate
>
'''
'''
</
FormTemplate
>
</
EditFormSettings
>
</
telerik:GridTableView
>
</
DetailTables
>
<%-- Ending Block of Detail Table1 --%>
<
ExpandCollapseColumn
Visible
=
"True"
>
</
ExpandCollapseColumn
>
<
Columns
>
'''
'''
</
Columns
>
<%-- Beginning Block of Master Table Edit Forms --%>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
table
id
=
"Table2"
class
=
"form-controls"
cellspacing
=
"2"
cellpadding
=
"1"
width
=
"100%"
border
=
"0"
rules
=
"none"
style
=
"border-collapse: collapse;background:#DCDCDC;"
>
<
tr
>
<
td
>
Show Hide Detail Forms:
</
td
>
<
td
>
<
asp:LinkButton
ID
=
"LinkButton5"
onclick
=
"HideDetail_ShowDetail1_Click"
runat
=
"server"
>Hide Detail but Show Detail1</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"LinkButton5"
onclick
=
"HideDetail1_ShowDetail_Click"
runat
=
"server"
>Hide Detail1 but Show Detail</
asp:LinkButton
>
</
td
>
</
tr
>
</
table
>
</
FormTemplate
>
</
EditFormSettings
>
<%-- Ending Block of Master Table Edit Forms --%>
</
MasterTableView
>
<%-- Ending Block of Master Table --%>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
<%-- Ending Block of Rad Grid --%>
___________
protected void HideDetail_ShowDetail1_Click(object sender, System.EventArgs e)
{
RadGrid1.MasterTableView.DetailTables[0].Visible = false;
RadGrid1.MasterTableView.DetailTables[1].Visible = true;
}
protected void HideDetail1_ShowDetail_Click(object sender, System.EventArgs e)
{
RadGrid1.MasterTableView.DetailTables[1].Visible = false;
RadGrid1.MasterTableView.DetailTables[0].Visible = true;
}
onkeydown
event but this event does not return the values entered in the raddatepicker textbox (if date is manually entered ) also the Telerik in built Date validations are also not working when
onkeydown
method is used. We just want to bind a grid on Datedatepicked textbox enter key press event. Please help us in this.