I have a RadGrid and a Panel which has the visibility = false (as default).
I need to click a Row or a button to send that Rows ID to that panel and make that Panel visible in server side
I need to click a Row or a button to send that Rows ID to that panel and make that Panel visible in server side
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
/>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function RowDblClick(sender, eventArgs) {
//alert("Chosen Row ID: " + eventArgs.getDataKeyValue("ID"));
}
</
script
>
</
telerik:RadCodeBlock
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AllowPaging
=
"True"
Width
=
"97%"
CellSpacing
=
"0"
GridLines
=
"None"
OnSelectedIndexChanged
=
"RadGrid1_SelectedIndexChanged"
>
<
PagerStyle
Mode
=
"NumericPages"
></
PagerStyle
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataKeyNames
=
"ID"
ClientDataKeyNames
=
"ID"
Width
=
"100%"
CommandItemDisplay
=
"Top"
PageSize
=
"5"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ID"
HeaderText
=
"ID"
SortExpression
=
"ID"
UniqueName
=
"ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"TesisatNo"
HeaderText
=
"Tesisat No"
SortExpression
=
"TesisatNo"
UniqueName
=
"TesisatNo"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"true"
></
Selecting
>
<
ClientEvents
OnRowDblClick
=
"RowDblClick"
></
ClientEvents
>
</
ClientSettings
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
<
asp:Panel
ID
=
"PanelDetails"
runat
=
"server"
Visible
=
"false"
>
THIS BECOMES VISIBLE ON DOUBLE CLICK OR ON BUTTON CLICK
ALSO THE SELECTED ROW ID MUST BE RECEIVED HERE
</
asp:Panel
>
</
form
>