Hi
I have ComboBox with multicolumns which is embeded in RadGrid ->Columns ->GridTemplateColumn -> EditItemTemplate.
Orginally it had one checkbox column and 3 databound coulmns from SqlDataSource. I had to add new column and it had to be TextBox. After that when I click 'Save' while inserting new item I get error:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Here's my code:
All data fields from SqlDataSource are provided from strored procedure, including the TextBox one - 'amount'
Please help
Thx
Konrad
I have ComboBox with multicolumns which is embeded in RadGrid ->Columns ->GridTemplateColumn -> EditItemTemplate.
Orginally it had one checkbox column and 3 databound coulmns from SqlDataSource. I had to add new column and it had to be TextBox. After that when I click 'Save' while inserting new item I get error:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Here's my code:
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
Height
=
"200px"
Width
=
"300px"
DropDownWidth
=
"520px"
EmptyMessage
=
"Select Item"
HighlightTemplatedItems
=
"true"
EnableLoadOnDemand
=
"True"
RadComboBoxImagePosition
=
"Right"
AllowCustomText
=
"true"
DataTextField
=
"hardware_no"
DataValueField
=
"id_comp"
SelectedValue='<%# Eval("id_comp") %>'
Text='<%# Eval("hardware_no") %>'
AutoPostBack="False"
DataSourceID="SqlDataSource1"
>
<
HeaderTemplate
>
<
table
style
=
"width: 480px"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
style
=
"width: 20px;"
>
</
td
>
<
td
style
=
"width: 35px;"
>
Amount</
td
>
<
td
style
=
"width: 100px;"
>
Hardware Nr</
td
>
<
td
style
=
"width: 160px;"
>
Department</
td
>
<
td
style
=
"width: 140px;"
>
Person</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
style
=
"width: 480px"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
style
=
"width: 20px;"
>
<
asp:CheckBox
runat
=
"server"
ID
=
"chk1"
Checked
=
"false"
/>
</
td
>
<
td
style
=
"width: 35px;"
>
<
asp:TextBox
ID
=
"TextBoxAmount"
runat
=
"server"
Text='<%# DataBinder.Eval(Container.DataItem, "amount") %>' Width="25" ></
asp:TextBox
>
</
td
>
<
td
style
=
"width: 100px;"
>
<%# DataBinder.Eval(Container.DataItem, "no_h")%>
</
td
>
<
td
style
=
"width: 160px;"
>
<%# DataBinder.Eval(Container.DataItem, "dept")%>
</
td
>
<
td
style
=
"width: 140px;"
>
<%# DataBinder.Eval(Container.DataItem, "person")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
All data fields from SqlDataSource are provided from strored procedure, including the TextBox one - 'amount'
Please help
Thx
Konrad