I am working with version 2011.3.1305.35 of
the RadGrid. I have a wide grid with 19 columns. There is an additional field I
need to add that contains comments, which by its self can be 1000 characters
long. If I add that column to the end of the grid most of the data is cut off.
What I want to do now is put that comments column in a details table so the
user can click the expand icon and view the comments. I think I have it set up
correctly however, there is code in the ItemCreated event that tries to run
when the expand icon is clicked. What is the best way to determine if the item
being created is part of the details table?
Here is how I have the set grid setup:
<
telerik:RadGrid
ID
=
"tGrid"
runat
=
"server"
AllowPaging
=
"True"
AllowCustomPaging
=
"true"
PageSize
=
"500"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
OnNeedDataSource
=
"tGrid_NeedDataSource"
AllowMultiRowSelection
=
"true"
OnItemCreated
=
"tGrid_ItemCreated"
OnDataBound
=
"tGrid_DataBound"
>
<
PagerStyle
AlwaysVisible
=
"True"
Position
=
"Top"
/>
<
MasterTableView
Width
=
"100%"
DataKeyNames
=
"schedID"
ClientDataKeyNames
=
"schedID"
>
<
Columns
> .... </
Columns
>
<
DetailTables
>
<
telerik:GridTableView
AdditionalDataFieldNames
=
"schedComments"
DataKeyNames
=
"SchedID"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"schedComments"
Display
=
"true"
UniqueName
=
"schedComments"
SortExpression
=
"schedComments"
>
<
HeaderStyle
Width
=
"100%"
></
HeaderStyle
>
<
ItemStyle
Wrap
=
"true"
/>
</
telerik:GridBoundColumn
>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
</
MasterTableView
>
</
telerik:RadGrid
>