or
Team,
I've 3 RadComboBox inside RadListview. I just want to get the selectedIndex of the each Radcombobox items lying inside the RadListView.
Aready am using RadListView_ItemDataBound event for databing.
What way I can retrieve the SelectedIndex?
//Thanks....
<
httpModules
>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
/>
<
add
name
=
"RadCompression"
type
=
"Telerik.Web.UI.RadCompression"
/>
</
httpModules
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
>
<
remove
name
=
"RadUploadModule"
/>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"RadCompression"
/>
<
add
name
=
"RadCompression"
type
=
"Telerik.Web.UI.RadCompression"
preCondition
=
"integratedMode"
/>
</
modules
>
<
httpModules
>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
/>
</
httpModules
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
>
<
remove
name
=
"RadUploadModule"
/>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"RadCompression"
/>
</
modules
>
<telerik:RadDateTimePicker ID="picker1" runat="server" SelectedDate="<%#((DateTime)((DataRowView)Container.DataItem)[1])%>" > |
<DateInput DateFormat="d.M.yyyy H:mm" DisplayDateFormat="d.M.yyyy H:mm" /> |
<TimeView StartTime="10:0:0" EndTime="21:01:00" Interval="0:15:0" Columns="7" TimeFormat="HH:mm" Culture="cs-CZ" /> |
</telerik:RadDateTimePicker> |
<asp:CustomValidator ID="custValCasVykopu" runat="server" ControlToValidate="picker1" Display="dynamic" Text="Enter correct date and time" OnServerValidate="custValCasVykopu_Validate" /> |
protected void custValCasVykopu_Validate(object source, ServerValidateEventArgs args) |
{ |
string txtCasVykopu = args.Value; |
DateTime casVykopu; |
if (DateTime.TryParse(txtCasVykopu, out casVykopu)) |
{ |
args.IsValid = true; |
} |
else |
{ |
args.IsValid = false; |
} |
} |
<
telerik:RadAjaxPanel
ID
=
"SSS"
runat
=
"server"
>
<
table
border
=
"0"
cellpadding
=
"0"
cellspacing
=
"0"
width
=
"700px"
>
<
tr
>
<
td
width
=
"120"
>
<
asp:Label
ID
=
"CyclLabel"
runat
=
"server"
SkinID
=
"FieldLabel"
Text
=
"Cycle:"
></
asp:Label
>
</
td
>
<
td
width
=
"250"
>
<
telerik:RadComboBox
ID
=
"CycleRadComboBox"
runat
=
"server"
Enabled
=
"true"
Width
=
"215px"
AutoPostBack
=
"true"
OnSelectedIndexChanged
=
"CycleRadComboBox_SelectedIndexChanged"
>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Select Cycle"
Value
=
""
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"BVT"
Value
=
"BVT"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"GQL"
Value
=
"GQL"
/>
</
Items
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
telerik:RadComboBox
>
</
td
>
<
td
width
=
"100"
>
<
asp:Label
ID
=
"StatusLabel"
runat
=
"server"
SkinID
=
"FieldLabel"
Text
=
"Status:"
></
asp:Label
>
</
td
>
<
td
width
=
"*"
>
<
telerik:RadComboBox
ID
=
"StatusRadComboBox"
runat
=
"server"
Enabled
=
"false"
Width
=
"215px"
AutoPostBack
=
"true"
OnSelectedIndexChanged
=
"StatusRadComboBox_SelectedIndexChanged"
>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Select Status"
Value
=
""
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Passed"
Value
=
"Passed"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Failed"
Value
=
"Failed"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Passed with known issues"
Value
=
"Passed with known issues"
/>
</
Items
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
style
=
"height:55px;"
>
<
td
valign
=
"top"
width
=
"120"
>
<
div
style
=
"margin-top:9px;"
>
<
asp:Label
ID
=
"CmntLabel"
runat
=
"server"
SkinID
=
"FieldLabel"
Text
=
"Comment:"
></
asp:Label
>
</
div
>
</
td
>
<
td
colspan
=
"3"
width
=
"*"
>
<
telerik:RadTextBox
ID
=
"CommentRadTextBox"
runat
=
"server"
Width
=
"560px"
TextMode
=
"MultiLine"
Rows
=
"2"
></
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
style
=
"height:50px;"
>
<
td
colspan
=
"4"
>
<
asp:Button
ID
=
"SubmitButton"
runat
=
"server"
SkinID
=
"ImageAndTextButton"
OnClick
=
"SubmitButton_Click"
Text
=
"Submit"
/>
</
td
>
</
tr
>
</
table
>
<
asp:Label
ID
=
"CommentTextLabel"
runat
=
"server"
Text
=
""
></
asp:Label
>
</
telerik:RadAjaxPanel
>
protected void Page_Load(object sender, EventArgs e)
{
}
protected void SubmitButton_Click(object sender, EventArgs e)
{
CommentTextLabel.Text = CommentRadTextBox.Text;
}
protected void CycleRadComboBox_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
if (!Convert.ToString(e.Value).Equals(string.Empty))
StatusRadComboBox.Enabled = true;
else
{
StatusRadComboBox.Enabled = false;
CommentRadTextBox.Enabled = false;
}
}
protected void StatusRadComboBox_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
if (!Convert.ToString(e.Value).Equals(string.Empty))
CommentRadTextBox.Enabled = true;
else CommentRadTextBox.Enabled = false;
}