I have a treelist with a checkbox for selection. However, my list is long so I added pagination. I help the user by pre-selecting a node and I need to display the page that exposes the first selected node. How do I do this?
|
<TelerikTreeList @ref=@TreeListRef
Class="gsi-padding-0"
Data="@UserGroups"
SelectedItems="@SelectedGroups"
IdField="Id"
Pageable=true
PageSize="10"
ParentIdField="ParentId"
SelectionMode="TreeListSelectionMode.Single"
OnRowRender="@HandleRowRender"
SelectedItemsChanged="@((IEnumerable<Gsi.Customer.Models.Group> m) => OnGroupSelected(m))">
<TreeListColumns>
<TreeListCheckboxColumn SelectAll="false"
SelectChildren="false"
CheckBoxOnlySelection="true"
Width="64px" />
<TreeListColumn Field="Name" Title="Name" Expandable="true">
<Template>
@{
var item = context as Gsi.Customer.Models.Group;
<img height="32" width="32" src="@item.ImageUrl" />
@item.Name
}
</Template>
</TreeListColumn>
</TreeListColumns>
</TelerikTreeList>