Hello.
I am using some GridDropDownColumn and GridDropDownColumn to display, edit and insert data. This columns are half of the information I have to add, so I will perform a custom insert. The problem is the grid will not go in insert mode when I press the button in the CommandItemDisplay. Here is my code:
I am using some GridDropDownColumn and GridDropDownColumn to display, edit and insert data. This columns are half of the information I have to add, so I will perform a custom insert. The problem is the grid will not go in insert mode when I press the button in the CommandItemDisplay. Here is my code:
<telerik:RadGrid ID="FacturiGrid" runat="server" Width="100%" Skin="Web20" AutoGenerateColumns="False" |
GridLines="Horizontal" AllowAutomaticInserts="True" AllowAutomaticUpdates="true" |
DataSourceID="BillServiceDS" OnItemCommand="FacturiGrid_ItemCommand"> |
<MasterTableView EditMode="InPlace" CommandItemDisplay="Bottom" |
CommandItemSettings-AddNewRecordText="Adaugă" |
CommandItemSettings-AddNewRecordImageUrl="../../../Images/add.gif" |
ShowHeadersWhenNoRecords="true" DataSourceID="BillServiceDS" |
> |
<NoRecordsTemplate> |
<div>Adaugati detalii factura</div> |
</NoRecordsTemplate> |
<Columns> |
<telerik:GridDropDownColumn DataSourceID="ServiciiDS" |
DataField="ServiceId" ListTextField="Name" ListValueField="Id" |
HeaderText="Serviciu" DropDownControlType="RadComboBox" UniqueName="ServiciiDDC" /> |
<telerik:GridNumericColumn HeaderText="Cantitate" DataField="Units" |
UniqueName="CantiatateNC" NumericType="Number" /> |
<telerik:GridNumericColumn HeaderText="Preț unitar" DataField="UnitPrice" |
UniqueName="CantiatateNC" NumericType="Number" /> |
<telerik:GridCalculatedColumn HeaderText="Total" DataFields="Units, UnitPrice" |
UniqueName="TotalCC" Expression="{0}*{1}" /> |
</Columns> |
<CommandItemSettings AddNewRecordText="Adaugă" AddNewRecordImageUrl="../../../Images/add.gif"></CommandItemSettings> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
</MasterTableView> |
<ClientSettings> |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
<FilterMenu EnableTheming="True"> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</FilterMenu> |
</telerik:RadGrid> |