Hi,
I try to use a Radmenu inside a RadGrid's GridTemplateColumn.
The Result is shown on the attached Picture.
The Menuitems should do a Postback and depending on the selected Menuitem do some Action for the cuttent Row.
Unfortunately I have no idea on how to this.
Can anyone give me a hint, or maybe a better solution to implement this scenario.
Thank you
Thomas
Here is my current code snippet:
I try to use a Radmenu inside a RadGrid's GridTemplateColumn.
The Result is shown on the attached Picture.
The Menuitems should do a Postback and depending on the selected Menuitem do some Action for the cuttent Row.
Unfortunately I have no idea on how to this.
Can anyone give me a hint, or maybe a better solution to implement this scenario.
Thank you
Thomas
Here is my current code snippet:
<
telerik:RadAjaxManager
ID
=
"raManager"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"rgOrganisationAnsprechperson"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgOrganisationAnsprechperson"
LoadingPanelID
=
"ralpLoading"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
id
=
"ralpLoading"
runat
=
"server"
Skin
=
"WebBlue"
></
telerik:RadAjaxLoadingPanel
>
<
telerik:RadGrid
ID
=
"rgOrganisationAnsprechperson"
DataSourceID
=
"odsOrganisationAnsprechperson"
runat
=
"server"
PageSize
=
"20"
AllowSorting
=
"True"
AllowMultiRowSelection
=
"False"
AllowPaging
=
"True"
ShowGroupPanel
=
"False"
AutoGenerateColumns
=
"false"
GridLines
=
"none"
onprerender
=
"rgOrganisationAnsprechperson_PreRender"
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
></
PagerStyle
>
<
MasterTableView
Width
=
"100%"
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldAlias
=
"Organisation"
FieldName
=
"Organisationsname"
FormatString
=
"{0:D}"
></
telerik:GridGroupByField
>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"co_id"
SortOrder
=
"Descending"
></
telerik:GridGroupByField
>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
Columns
>
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<
telerik:RadMenu
ID
=
"RadMenu1"
runat
=
"server"
EnableRoundedCorners
=
"true"
EnableShadows
=
"true"
ExpandAnimation-Type
=
"None"
CollapseAnimation-Type
=
"None"
ExpandDelay
=
"0"
CollapseDelay
=
"0"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Edit"
Selected
=
"false"
>
<
GroupSettings
ExpandDirection
=
"Right"
/>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Personen Daten"
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Text
=
"Einstellungen"
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Text
=
"Zugangsdaten"
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Text
=
"arbeitet nicht mehr bei Firma"
>
</
telerik:RadMenuItem
>
</
Items
>
</
telerik:RadMenuItem
>
</
Items
>
</
telerik:RadMenu
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"Name"
HeaderText
=
"Name"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Position"
HeaderText
=
"Position"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Admin"
HeaderText
=
"Admin"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Anzeigen"
HeaderText
=
"Anzeigen"
></
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
AllowGroupExpandCollapse
=
"True"
>
</
ClientSettings
>
</
telerik:RadGrid
>