<telerik:RadComboBox ID="cmbReminder_1" MarkFirstMatch="True" runat="server" Height="190px"
Width="100px" Skin="Default" AutoPostBack="False" HighlightTemplatedItems="True"
ShowToggleImage="True" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged1">
<ItemTemplate>
<table style="border-bottom: 1px dotted #EFEFEF; margin-bottom: 10px; font-size: 11px;"
width="60px">
<tr>
<td>
<img src='/Images/<%# DataBinder.Eval(Container, "Attributes['ImagePath']") %>' alt="" />
</td>
<td>
<%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>
</td>
</tr>
</table>
</ItemTemplate>
<Items>
<telerik:RadComboBoxItem ImagePath="EmailIcon_32x32p.png" DisplayName="Email" Text="Email" Value="1">
</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem ImagePath="TextIcon_32x32p.png" DisplayName="SMS" Text="SMS" Value="2">
</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem ImagePath="PhoneIcon_32x32p.png" DisplayName="Phone" Value="3"
Text="Phone"></telerik:RadComboBoxItem>
</Items>
</telerik:RadComboBox>
Code behind:
RadRotatorItem step3Item = (RadRotatorItem)this.RadRotatorHorizontal.Controls[2];
RadComboBox cmbTiming_2 = (RadComboBox)step3Item.FindControl("cmbTiming_2");
I am getting the correct control because when I step through the code, I examine the cmbTiming_2 and it contains the correct items.
Any help is appreciated
<script type="text/javascript"> function getValue() { var combo = <%=RadComboBox1.ClientID %>; alert('1'); var sel = combo.get_selectedItem(); } </script> <telerik:RadComboBox ID="RadComboBox1" runat="server"> <Items> <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="RadComboBoxItem1" /> <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" Value="RadComboBoxItem2" /> <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" Value="RadComboBoxItem3" /> </Items> </telerik:RadComboBox> <input id="Button1" type="button" value="button" onclick="getValue()" />rg.SelectedItems[0].OwnerTableView.DataKeyValues[rgScheduleList.SelectedItems[0].ItemIndex][
"SCHEDULE_ID"]
will get the value for the datakey on the grid, how about none data key item text? like name field on the grid?
protected void cboProblemCombo_PreRender(object sender, EventArgs evt){ cboProblemCombo.BackColor = System.Color.Blue; }.RadComboBox .rcbInputCell .rcbInput {background:none repeat scroll 0 0 transparent;border:0 none;outline:0 none;padding:2px 0 1px;vertical-align:middle;width:100%;}My RadGrid is setup to perform bulk edits, and that is all working well. So this works great:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) {
if (e.CommandName == "UpdateAll") {
SaveTableData(e);
}
I'm preforming the Update/Insert like this:
foreach (GridEditableItem editedItem in RadGrid1.EditItems) {
Hashtable newValues = new Hashtable();
//The GridTableView will fill the values from all editable columns in the hash
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
}
However, when i add Paging to the mix, then the updates/inserts of the data are lost. That is, if the user enters in all their data, and then forgets to Save their data and instead moves to the next page of the bulk edit table, then the data they entered is lost.
So I aded this function to try to fix that:
protected void RadGrid1_PageIndexChanged(object source, GridCommandEventArgs e) {
SaveTableData(e);
}
But this 'e' does not have the user's new data that they entered in.
Why does the 'e' not have the new values?