In Opera (9.63) the user can select (and copy) the nodes text. In Firefox 3.0.8 it seems that you cant select the text at all. And in IE 7.0 the user must (start) select from the left outside the node. We are using the RadTreeView in a forum and the users need to be able to copy text. Any solutions?
Regards
Jan
<telerik:RadGrid ID="RadGrid1" Width="100%"
AllowMultiRowSelection="true" AllowFilteringByColumn="true"
AutoGenerateColumns="false" CellSpacing="0"
ClientSettings-Scrolling-ScrollHeight="40%"
ClientSettings-Scrolling-AllowScroll="true" EnableLinqExpressions="false"
ClientSettings-Scrolling-UseStaticHeaders="true"
AllowSorting="True" runat="server">
<GroupingSettings CaseSensitive="false" />
<MasterTableView TableLayout="Fixed" DataKeyNames="KEYID" ClientDataKeyNames="KEYID" >
<Columns>
<telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="3%" ItemStyle-Width="3%" />
<telerik:GridNumericColumn Aggregate="Count" DataField="KEYID" HeaderText="KEYID" SortExpression="KEYID"
UniqueName="KEYID" />
<telerik:GridBoundColumn HeaderText="Employees" DataField="Name" UniqueName="Name" ShowFilterIcon="false"
HeaderStyle-Width="13%" ItemStyle-Width="13%" SortExpression="Name" AllowFiltering="true"
AutoPostBackOnFilter="true" FilterControlWidth="80" />
<telerik:GridBoundColumn HeaderText="Pay Period" DataField="Description" UniqueName="Description" ShowFilterIcon="false"
SortExpression="Description" HeaderStyle-Width="13%" ItemStyle-Width="13%">
<FilterTemplate>
<telerik:RadComboBox ID="RadComboBoxPP" CausesValidation="false" DataSourceID="SqlDataSourcePP" DataTextField="Code" Width="100"
DataValueField="Code" Height="100px" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectedIndexChanged"
SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Description").CurrentFilterValue %>'
runat="server">
<Items>
<telerik:RadComboBoxItem Text="All" />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function SelectedIndexChanged(sender,args) {
var tableView=$find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
sender.value= args.get_item().get_value();
tableView.filter(
"Description",args.get_item().get_value(),"EqualTo");
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Department" HeaderStyle-Width="18%" ItemStyle-Width="18%" DataField="Department" UniqueName="Department" ShowFilterIcon="false"
SortExpression="Department" >
<FilterTemplate>
<telerik:RadComboBox ID="RadComboBoxDep" CausesValidation="false" DataSourceID="SqlDataSourceDepartment" DataTextField="Department" width="150"
DataValueField="Department" Height="100px" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectedIndexChanged2"
SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Department").CurrentFilterValue %>'
runat="server">
<Items>
<telerik:RadComboBoxItem Text="All" />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
<script type="text/javascript">
function SelectedIndexChanged2(sender,args) {
var tableView=$find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
sender.value= args.get_item().get_value();
tableView.filter(
"Department",args.get_item().get_value(),"EqualTo");
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
</telerik:GridBoundColumn>
<telerik:GridDateTimeColumn ReadOnly="true" DataField="Paydate" HeaderText="Pay Date" DataFormatString="{0:d}" HeaderStyle-Width="13%" ItemStyle-Width="13%" DataType="System.DateTime" UniqueName="PayDate" AllowFiltering="true" SortExpression="PayDate" FilterControlWidth="90"> </telerik:GridDateTimeColumn>
<telerik:GridBoundColumn AllowFiltering="false" HeaderText="Start Date" HeaderStyle-Width="10%" ItemStyle-Width="10%" DataFormatString="{0:d}" DataField="PayDateFrom" UniqueName="PayDateFrom" DataType="System.DateTime" ShowFilterIcon="false"
SortExpression="PayDateFrom" />
<telerik:GridBoundColumn HeaderText="End Date" DataField="Paydateto" HeaderStyle-Width="10%" ItemStyle-Width="10%" DataFormatString="{0:d}" UniqueName="Paydateto" DataType="System.DateTime" ShowFilterIcon="false" AllowFiltering="false"
SortExpression="Paydateto" />
<telerik:GridBoundColumn HeaderText="Hire/Rehire" HeaderStyle-Width="10%" ItemStyle-Width="10%" DataField="EMPDOH" UniqueName="EMPDOH" DataFormatString="{0:d}" DataType="System.DateTime" ShowFilterIcon="false" AllowFiltering="false"
SortExpression="EMPDOH" />
<telerik:GridBoundColumn HeaderStyle-Width="2%" ItemStyle-Width="1%" DataField="hdismass" UniqueName="hdismass" HeaderText="hdismass" AllowFiltering="false"
/>
<telerik:GridBoundColumn HeaderStyle-Width="2%" HeaderText="hds" ItemStyle-Width="1%" DataField="hds" UniqueName="hds" AllowFiltering="false"
/>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
<Selecting AllowRowSelect="true" />
<Resizing EnableRealTimeResize="True" ResizeGridOnColumnResize="false" AllowColumnResize="true">
</Resizing>
<ClientEvents OnRowSelecting="rowselecting" />
</ClientSettings>
</telerik:RadGrid>
</td>
</tr>
</table>
</div>
<asp:SqlDataSource runat="server" ID="SqlDataSourceGrid"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourcePP" runat="server"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceUsers" runat="server"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceDepartment" runat="server"></asp:SqlDataSource>
and here is the codebehind function
Protected
Sub BindGrid2()
If Not IsPostBack Then
SqlDataSourceUsers.ConnectionString = ConfigurationManager.AppSettings.Item(
"ConnectString")
SqlDataSourceUsers.SelectCommand =
"select PrimaryKey, UserID From Security_Users Where PrimaryKey <> 1"
SqlDataSourceUsers.SelectCommandType = SqlDataSourceCommandType.Text
End If
SqlDataSourcePP.ConnectionString = ConfigurationManager.AppSettings.Item(
"ConnectString")
SqlDataSourcePP.SelectCommand =
"Select distinct Code From CT_Payperiods"
SqlDataSourcePP.SelectCommandType = SqlDataSourceCommandType.Text
SqlDataSourceDepartment.ConnectionString = ConfigurationManager.AppSettings.Item(
"ConnectString")
SqlDataSourceDepartment.SelectCommand =
"select DISTINCT Description as Department from CT_Departments WHERE GROUPID >= 0 "
SqlDataSourceDepartment.SelectCommandType = SqlDataSourceCommandType.Text
If isSelIndex = False Then BindFilters()
SqlDataSourceGrid.ConnectionString = ConfigurationManager.AppSettings.Item(
"ConnectString")
SqlDataSourceGrid.SelectCommand =
"Pr_GetPayEmployee"
SqlDataSourceGrid.SelectCommandType = SqlDataSourceCommandType.StoredProcedure
SqlDataSourceGrid.SelectParameters.Clear()
If radioGD.Items(1).Selected = True Then
SqlDataSourceGrid.SelectParameters.Add(
"mGrpKey", cmbGroup.Items(cmbGroup.SelectedIndex).Value)
Else
SqlDataSourceGrid.SelectParameters.Add(
"mGrpKey", -1)
End If
SqlDataSourceGrid.SelectParameters.Add(
"mDeptKey", -1)
SqlDataSourceGrid.SelectParameters.Add(
"mEmpKey ", -1)
'SqlDataSourceGrid.SelectParameters.Add("PayDate", "")
SqlDataSourceGrid.SelectParameters.Add(
"bRequired", 0)
SqlDataSourceGrid.SelectParameters.Add(
"PayPeriod", -1)
SqlDataSourceGrid.SelectParameters.Add(
"PRKEY", -1)
RadGrid1.DataSourceID =
"SqlDataSourceGrid"
End Sub
| <div id="ctl00_ContentPlaceHolder2_RadSplitterMain" style="height:400px;"><!-- 2010.1.511.40 --><table id="RAD_SPLITTER_ctl00_ContentPlaceHolder2_RadSplitterMain" class="RadSplitter RadSplitter_Default" cellpadding="0" cellspacing="0" style="width:1px;height:1px;border-left-width:1px;border-top-width:1px;"> |
| <telerik:RadGrid ID="MessageGrid" runat="server" ShowStatusBar="true" EnableViewState="false" AllowSorting="true" AllowMultiRowSelection="true" AllowCustomPaging="true" AllowPaging="True" AutoGenerateColumns="False" GridLines="None" OnPageSizeChanged="MessageGrid_PageSizeChanged" OnNeedDataSource="MessageGrid_NeedDataSource" > |
| <MasterTableView ClientDataKeyNames="Id, ReferenceId"> |
| </MasterTableView> |
| <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true"> |
| <Resizing AllowColumnResize="true" /> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" /> |
| <ClientEvents OnRowSelected="MessageGrid_OnRowSelected" OnRowDblClick="MessageGrid_OnDblClick" OnGridCreated="MessaegGrid_Created" /> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="MessageGrid"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="MessageGrid" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
