
RadGrid1.ClientSettings.EnablePostBackOnRowClick = True
RadGrid1.ClientSettings.ClientEvents.OnRowClick = "On_Row_Click"
AddHandler RadGrid1.ItemCommand, AddressOf RadGrid1_ItemCommand
function On_Row_Click(sender, eventArgs) {
__doPostBack(sender.ClientID, "RowClicked:" + eventArgs.get_itemIndexHierarchical());
}
When a row is clicked, it runs the __doPostBack command above and I catch the postback on the server side in my code behind:
Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs)
'Client-side event is caught here !!!
End Sub
Hello,
I have been searching for any example of what I'm trying to achieve, to no avail.
Is it possible to do the following:
I have tried to do this, but I can't seem to persist the newly created zones and docks. How do I accomplish this?
Thanks in advance for any help.
RadGrid1.ClientSettings.EnablePostBackOnRowClick = True
RadGrid1.ClientSettings.ClientEvents.OnRowClick = "On_Row_Click"
AddHandler RadGrid1.ItemCommand, AddressOf RadGrid1_ItemCommand
function On_Row_Click(sender, eventArgs) {
__doPostBack(sender.ClientID, "RowClicked:" + eventArgs.get_itemIndexHierarchical());
}
When a row is clicked, it runs the __doPostBack command above and I catch the postback on the server side in my code behind:
Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs)
'Client-side event is caught here !!!
End Sub
<telerik:RadDockLayout runat="server" ID="[DUMMYID-1]"> <telerik:RadDockZone runat="server" ID="[DUMMYID-2]" Orientation="vertical" Skin="Vista" Width="99.7%"> <telerik:RadDock runat="server" ID="[DUMMYID-3]" Title="More" Style="min-height: 0px; margin: 0px auto; visibility: hidden;" Collapsed="true" DefaultCommands="ExpandCollapse" Skin="Vista" EnableDrag="false" DockHandle="None" Width="99.5%" BorderStyle="None"> <ContentTemplate> ...... [some code here]</ContentTemplate></telerik:RadDock> </telerik:RadDockZone>
EnableViewState="true" StoreLayoutInViewState="true"
<rada:radajaxmanager id="RadAjaxManager1" runat="server">
<AjaxSettings>
<rada:AjaxSetting AjaxControlID="cboCategory">
<UpdatedControls>
<rada:AjaxUpdatedControl ControlID="cboOffice"/></UpdatedControls> its my old ajaxcontrol code
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="cboCategory">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="cboOffice"/>
</UpdatedControls>
so that gives error so please tell me the solution for that
In a ContextMenu how do I make this:
- Show only "Group" option when the column is ungrouped (not for all the column, just for the column that is ungrouped).
- Show only "Ungroup" option when the column is grouped.
I tried this:
But this hides both (group/ungroup options)void HeaderContextMenu_GroupsChanging(object sender, GridGroupsChangingEventArgs e){ if (e.Action == GridGroupsChangingAction.Group) this.MasterTableView.GetColumn(e.Expression.GroupByFields[0].FieldName).Groupable = ...;
else if (e.Action == GridGroupsChangingAction.Ungroup) this.MasterTableView.GetColumnSafe(e.Expression.GroupByFields[0].FieldName).Groupable = ...;}