<
script
type
=
"text/javascript"
language
=
"javascript"
>
function UpdateAllChildren(nodes, checked) {
var i;
for (i = 0; i <
nodes.get_count
(); iif (checkednodes.getNode(icheck();
}
elsenodes.getNode(iset_checked(falseif (nodes.getNodei).get_nodesget_count() > 0) {
UpdateAllChildren(nodes.getNode(i).get_nodes(), checked);
}
}
}
function clientNodeChecked(sender, eventArgs) {
var childNodes = eventArgs.get_node().get_nodes();
var isChecked = eventArgs.get_node().get_checked();
UpdateAllChildren(childNodes, isChecked);
}
</
script
>
Hello,
We need to implement keyboard navigation for RadTreeView. I understand that RadTreeView includes full keyboard navigation support. I looked at this example:
http://www.telerik.com/help/aspnet/treeview/tree_keyboard%20support.html
which is a good start but this is what we need:
Hot key support should work with <Alt> <Ctrl> <Letter>
e.g., <alt><ctr> A
When a user presses the above key combination,
1. navigate the user to a particular child node in a tree (it might be several level deep in the tree) – select node
2. Expand the parent nodes so the selected node is visible to user
3. Simulate a node click event, so that data in other controls on the page might be changed in the callback
We are using ASP.Net Ajax and vb.net
The RadTreeView is populated server-side.
Please let me know if the above is possible and a working example will be great.
Thanks,
<
telerik:AjaxSetting
AjaxControlID
=
"RadTabStrip1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadTabStrip1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"multiPage1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"multiPage1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"multiPage1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
c.defaultView.getComputedStyle(a, null) is null
(function(a,b){function ci(a){return d...a+"px")}}),a.jQuery=a.$=d})(window);
Hi,
The ItemCommand on my RadGrid is not firing. Can someone point me in the right directions?
I am using a master page with the following telerik controls:
<telerik:RadScriptManager ID="DefaultMasterScriptManager" runat="server" EnableHistory="True">
</telerik:RadScriptManager>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server" EnablePageMethods="true"
meta:resourcekey="RadAjaxManagerResource1" />
<telerik:RadAjaxLoadingPanel ID="DefaultLoadingPanel" runat="server" Skin="Default"
Transparency="-100" meta:resourcekey="DefaultLoadingPanelResource1">
</telerik:RadAjaxLoadingPanel>
and the following RadGrid control in a user control. With exception of the buttons the other grid columns are created dynamically as my grid is generic grid that serves many other user controls:
<
telerik:RadGrid ID="EventItemsGrid"
runat="server"
DataSourceID="EventItemsDataSource"
AllowAutomaticInserts="True"
AllowAutomaticUpdates="True"
AllowAutomaticDeletes="True"
AllowPaging="True"
EnableHeaderContextMenu="False"
AllowMultiRowSelection="false"
meta:resourcekey="LinkedEventsGridResource1"
AutoGenerateColumns="false"
AutoGenerateEditColumn="false"
AutoGenerateDeleteColumn="false"
OnItemCommand="EventItemsGrid_ItemCommand"
OnItemCreated="EventItemsGrid_ItemCreated"
OnUpdateCommand="EventItemsGrid_UpdateCommand"
OnItemDataBound="EventItemsGrid_ItemDataBound"
PageSize="5" width="100%" height="300px">
<headercontextmenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</headercontextmenu>
<clientsettings EnablePostBackonRowClick="true">
<Selecting AllowRowSelect="true"/>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" />
</clientsettings>
<sortingsettings sortedbackcolor="White" />
<pagerstyle alwaysvisible="true" mode="NextPrevAndNumeric" position="Bottom" wrap="false" />
<filtermenu>
<CollapseAnimation Type="OutQuint" Duration="50"></CollapseAnimation>
</filtermenu>
<groupingsettings showungroupbutton="true" />
<mastertableview datakeynames="EventId" clientdatakeynames="EventId" datasourceid="EventItemsDataSource" commanditemdisplay="Bottom" tablelayout="Fixed" grouploadmode="Client" gridlines="None">
<Columns>
<telerik:GridButtonColumn UniqueName="DeleteCommandColumn" ButtonType="ImageButton" HeaderText="Remove" Text="Remove" CommandName="Delete" ConfirmText="Are you sure you want to remove [{0}] from the [{1}] role?" ConfirmTitle="Remove Confirmation" ConfirmDialogType="RadWindow" meta:resourcekey="DeleteColumnResource1">
<HeaderStyle Width="60px" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridButtonColumn>
<telerik:GridButtonColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" HeaderText="Edit" Text="Edit" CommandName="Select" meta:resourcekey="GridEditButtonImageResource1" ImageUrl="../Resources/WebResource.gif">
<HeaderStyle Width="60px" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridButtonColumn>
<telerik:GridButtonColumn UniqueName="ShowCommandColumn" ButtonType="LinkButton" HeaderText="" Text="Show Details" CommandName="Select" visible="false" meta:resourcekey="GridViewDetailResource1">
<HeaderStyle Width="100px" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridButtonColumn>
</Columns>
<CommandItemTemplate>
<table style="width:100%; text-align:right;">
<tr><td><asp:LinkButton runat="server" ID="lnkAddNewRecord" Text="Add New Record"></asp:LinkButton></td></tr>
</table>
</CommandItemTemplate>
<PagerStyle AlwaysVisible="True"></PagerStyle>
</mastertableview>
</telerik:RadGrid>
Thank you in advance!
Masterdom5