Hello Telerik Team,
i found a strange behavior in my RadGrid.
While GridEditMode.InPlace and GridCellSelectionMode.SingleCell both are active, i can not click in editable cells. I reproduced this bahavior in Firefox and IE 8 and higher.
To my Testpage: It is a single RadGrid with following parameters:
RadGrid1.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.SingleCell
RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace
Protected
Sub
getData(sender
As
Object
, e
As
Telerik.Web.UI.GridNeedDataSourceEventArgs)
Handles
RadGrid1.NeedDataSource
RadGrid1.DataSource = GetTable()
End
Sub
Function
GetTable()
As
DataTable
' Create new DataTable instance.
Dim
table
As
New
DataTable
' Create four typed columns in the DataTable.
table.Columns.Add(
"FELD1"
,
GetType
(
String
))
table.Columns.Add(
"FELD2"
,
GetType
(
String
))
table.Columns.Add(
"FELD3"
,
GetType
(
String
))
table.Columns.Add(
"FELD4"
,
GetType
(
String
))
' Add five rows with those columns filled in the DataTable.
table.Rows.Add(
"11"
,
"12"
,
"13"
,
"14"
)
table.Rows.Add(
"21"
,
"22"
,
"23"
,
"24"
)
table.Rows.Add(
"31"
,
"32"
,
"33"
,
"34"
)
table.Rows.Add(
"41"
,
"42"
,
"43"
,
"44"
)
table.Rows.Add(
"51"
,
"52"
,
"53"
,
"54"
)
Return
table
End
Function
Private
Sub
RadGrid1_PreRender(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
RadGrid1.PreRender
Dim
i
As
Integer
For
i = 0
To
RadGrid1.PageSize - 1
RadGrid1.EditIndexes.Add(i)
Next
i
RadGrid1.Rebind()
End
Sub
RadGrid1.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.SingleCell
" everything is working fine. But this setting is needed in the real page to execute js on Clientside in OnCellSelected event.
GridItemCreated(
object source, GridItemEventArgs e)
if
(e.Item is GridPagerItem)
{
GridPagerItem pagerItem = (GridPagerItem)e.Item;
RadComboBox PageSizeComboBox = (RadComboBox)pagerItem.FindControl("PageSizeComboBox");
// Create a new item for showing All
RadComboBoxItem item = new RadComboBoxItem("All", int.MaxValue.ToString());
item.Attributes.Add(
"ownerTableViewId", e.Item.OwnerTableView.ClientID);
PageSizeComboBox.Items.Add(item);
}
<
PagerStyle AlwaysVisible="true" />