Hi ALL,
On my web page i have RadContexMenu with two static value and after that bind from database. On same page i have one RadGrid.
When user click on any of the static value then i dont want to update RadGrid, but when user try to select any value which bind from database on ContextMenu then i have to update my RadGrid.
I had used AjaxLoadingPanel also, which would be affect only when user select any value which bind from database on ContexMenu.
Please help me.
Here i am defining my code.
On my web page i have RadContexMenu with two static value and after that bind from database. On same page i have one RadGrid.
When user click on any of the static value then i dont want to update RadGrid, but when user try to select any value which bind from database on ContextMenu then i have to update my RadGrid.
I had used AjaxLoadingPanel also, which would be affect only when user select any value which bind from database on ContexMenu.
Please help me.
Here i am defining my code.
<
telerik:RadAjaxManager
runat
=
"server"
ID
=
"RadAjaxManager1"
OnAjaxRequest
=
"RadAjaxManager1_AjaxRequest"
ClientEvents-OnRequestStart
=
"RequestStart"
ClientEvents-OnResponseEnd
=
"ResponseEnd"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"FavouritesMenu"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"FavouritesMenu"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"StatusBarLabel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadContextMenu
ID
=
"Menu"
runat
=
"server"
DefaultGroupSettings-OffsetX
=
"500"
Flow
=
"Vertical"
OnItemClick
=
"Menu_ItemClick"
Skin
=
"Office2007"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Add"
Value
=
"Add"
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Style
=
"left: 790px; top: 130px"
Text
=
"Remove"
Value
=
"Remove"
>
</
telerik:RadMenuItem
>
</
Items
>
<
ExpandAnimation
Type
=
"None"
/>
<
CollapseAnimation
Type
=
"None"
/>
</
telerik:RadContextMenu
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
enableajax
=
"true"
ShowGroupPanel
=
"True"
Width
=
"100%"
AllowSorting
=
"True"
AllowMultiRowSelection
=
"True"
OnCreateColumnEditor
=
"RadGrid1_CreateColumnEditor"
Height
=
"100%"
Skin
=
"Vista"
OnUpdateCommand
=
"RadGrid1_UpdateCommand"
OnDeleteCommand
=
"RadGrid1_DeleteCommand"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
ClientSettings-ClientEvents-OnRowSelecting
=
"RestrictSelect"
PageSize
=
"50"
AllowCustomPaging
=
"True"
AllowPaging
=
"true"
> </
telerik:RadGrid
>