Hi,
I am having an issue that I hope you can help me out with. Perhaps I am using item template and edit item template wrong. I have a grid that contains an <itemtemplate> and an <edititemtemplate>. I was under the assumption that when my grid loads up in view mode, it would display what's in the <itemtemplate>. Then when I go to edit mode, it would display the items in <edititemtemplate>. However I am seeing that it's using <itemtemplate> in both cases. Is this how it's supposed to work? My grid code is below: (keep in mind some custom controls are in the grid and i can tell that it's using <itemtemplate> in view and edit mode because of the LabelText "item temp column".
I am having an issue that I hope you can help me out with. Perhaps I am using item template and edit item template wrong. I have a grid that contains an <itemtemplate> and an <edititemtemplate>. I was under the assumption that when my grid loads up in view mode, it would display what's in the <itemtemplate>. Then when I go to edit mode, it would display the items in <edititemtemplate>. However I am seeing that it's using <itemtemplate> in both cases. Is this how it's supposed to work? My grid code is below: (keep in mind some custom controls are in the grid and i can tell that it's using <itemtemplate> in view and edit mode because of the LabelText "item temp column".
<
wasp:WLPGrid
ID
=
"GroupGrid"
EditMode
=
"InPlace"
runat
=
"server"
GridLines
=
"None"
AutoGenerateColumns
=
"False"
Width
=
"100%"
AutoInsertOnAdd
=
"false"
AllowMultiRowEdit
=
"true"
skin
=
""
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
CommandItemDisplay
=
"Top"
DataKeyNames
=
"Key"
Width
=
"100%"
>
<
CommandItemTemplate
></
CommandItemTemplate
>
<
Columns
>
<
wasp:GridTemplateControl
UniqueName
=
"HeaderColumns"
>
<
ItemTemplate
>
<
table
width
=
"100%"
>
<
tr
>
<
td
colspan
=
"2"
>
<
wasp:CheckBoxControl
ID
=
"IsGroupSelected"
LabelText
=
"Selected"
runat
=
"server"
ResourceName
=
"IsGroupSelected"
Value='<%# Bind("IsGroupSelected") %>' ReadOnly="true" />
</
td
>
</
tr
>
<
tr
>
<
td
>
<
wasp:TextBoxControl
ID
=
"EnglishDesc"
LabelText
=
"item temp column"
runat
=
"server"
ResourceName
=
"EnglishDesc"
Value='<%# Bind("EnglishDesc") %>' ReadOnly="true" />
</
td
>
<
td
>
<
wasp:TextBoxControl
ID
=
"FrenchDesc"
LabelText
=
"French Desc:"
runat
=
"server"
ResourceName
=
"FrenchDesc"
Value='<%# Bind("FrenchDesc") %>' ReadOnly="true" />
</
td
>
</
tr
>
<
tr
>
<
td
>
<
wasp:ComboBoxControl
ID
=
"DatabaseSecurityRoleId"
LabelText
=
"Database Role"
runat
=
"server"
Type
=
"DatabaseSecurityRoleId"
ondatabinding
=
"PopulateCombo"
ResourceName
=
"DatabaseSecurityRoleId"
Value='<%# Bind("DatabaseSecurityRoleId") %>' ReadOnly="true"></
wasp:ComboBoxControl
>
</
td
>
<
td
>
<
wasp:ComboBoxControl
ID
=
"GuiSecurityRoleId"
LabelText
=
"GUI Role"
runat
=
"server"
Type
=
"GuiSecurityRoleId"
ondatabinding
=
"PopulateCombo"
ResourceName
=
"GuiSecurityRoleId"
Value='<%# Bind("GuiSecurityRoleId") %>' ReadOnly="true"></
wasp:ComboBoxControl
>
</
td
>
</
tr
>
</
table
>
<
hr
/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
table
width
=
"100%"
>
<
tr
>
<
td
>
<
wasp:CheckBoxControl
ID
=
"IsGroupSelected"
LabelText
=
"Selected"
runat
=
"server"
ResourceName
=
"IsGroupSelected"
Value='<%# Bind("IsGroupSelected") %>' ReadOnly="false" />
</
td
>
</
tr
>
<
tr
>
<
td
>
<
wasp:TextBoxControl
ID
=
"EnglishDesc"
LabelText
=
"edit item column"
runat
=
"server"
ResourceName
=
"EnglishDesc"
Value='<%# Bind("EnglishDesc") %>' ReadOnly="true" />
</
td
>
<
td
>
<
wasp:TextBoxControl
ID
=
"FrenchDesc"
LabelText
=
"French Desc:"
runat
=
"server"
ResourceName
=
"FrenchDesc"
Value='<%# Bind("FrenchDesc") %>' ReadOnly="true" />
</
td
>
</
tr
>
<
tr
>
<
td
>
<
wasp:ComboBoxControl
ID
=
"DatabaseSecurityRoleId"
LabelText
=
"Database Role"
runat
=
"server"
Type
=
"DatabaseSecurityRoleId"
ondatabinding
=
"PopulateCombo"
ResourceName
=
"DatabaseSecurityRoleId"
Value='<%# Bind("DatabaseSecurityRoleId") %>' ReadOnly="true"></
wasp:ComboBoxControl
>
</
td
>
<
td
>
<
wasp:ComboBoxControl
ID
=
"GuiSecurityRoleId"
LabelText
=
"GUI Role"
runat
=
"server"
Type
=
"GuiSecurityRoleId"
ondatabinding
=
"PopulateCombo"
ResourceName
=
"GuiSecurityRoleId"
Value='<%# Bind("GuiSecurityRoleId") %>' ReadOnly="true"></
wasp:ComboBoxControl
>
</
td
>
</
tr
>
</
table
>
<
hr
/>
</
EditItemTemplate
>
</
wasp:GridTemplateControl
>
</
Columns
>
</
MasterTableView
>