I have a RadListView that I use to insert data into a SQL table. Below is a snippet of the Insert Item template
I have a text box with the ID ScheduleTextBox that is bound to an insert parameter Schedule
I need to be able to populate the text in this text box from another datasource.
How can I do this?????
Thanks for any help!
Dave
I have a text box with the ID ScheduleTextBox that is bound to an insert parameter Schedule
I need to be able to populate the text in this text box from another datasource.
How can I do this?????
Thanks for any help!
Dave
<
InsertItemTemplate
>
<
tr
class
=
"rlvIEdit"
>
<
td
colspan
=
"7"
>
<
table
cellspacing
=
"0"
class
=
"rlvEditTable"
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Officer_NameLabel2"
runat
=
"server"
AssociatedControlID
=
"rcbOfficer"
Text
=
"Officer_Name"
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"rcbOfficer"
runat
=
"server"
DataSourceID
=
"dsOfficer"
DataKeyField
=
"Rosterid"
DataTextField
=
"officer_name"
DataValueField
=
"officer_name"
AllowCustomText
=
"True"
Text='<%# Bind("Officer_Name") %>'>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"ScheduleLabel2"
runat
=
"server"
AssociatedControlID
=
"ScheduleTextBox"
Text
=
"Schedule"
></
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"ScheduleTextBox"
runat
=
"server"
CssClass
=
"rlvInput"
Text='<%# Bind("Schedule") %>' />
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"UnitLabel2"
runat
=
"server"
AssociatedControlID
=
"rcbIUnit"
Text
=
"Unit"
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"rcbIUnit"
runat
=
"server"
DataSourceID
=
"dsUnit"
DataKeyField
=
"Unitid"
DataTextField
=
"unit"
DataValueField
=
"unit"
AllowCustomText
=
"True"
Text='<%# Bind("unit") %>'>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"VehicleLabel2"
runat
=
"server"
AssociatedControlID
=
"rcbIVehicle"
Text
=
"Vehicle"
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"rcbIVehicle"
runat
=
"server"
DataSourceID
=
"dsVehicle"
DataKeyField
=
"vehicleid"
DataTextField
=
"vehiclenumber"
DataValueField
=
"vehiclenumber"
AllowCustomText
=
"True"
Text='<%# Bind("vehicle") %>'>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"HoursLabel2"
runat
=
"server"
AssociatedControlID
=
"HoursTextBox"
Text
=
"Hours"
></
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"HoursTextBox"
runat
=
"server"
CssClass
=
"rlvInput"
Text='<%# Bind("Hours") %>'/>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
>
<
asp:Button
ID
=
"PerformInsertButton"
runat
=
"server"
CommandName
=
"PerformInsert"
CssClass
=
"rlvBAdd"
Text
=
" "
ToolTip
=
"Insert"
/>
<
asp:Button
ID
=
"CancelButton"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
CssClass
=
"rlvBCancel"
Text
=
" "
ToolTip
=
"Cancel"
/>
</
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
</
InsertItemTemplate
>