
| <EditFormSettings EditFormType="Template" > |
| <FormTemplate> |
| <asp:Panel ID="Panel1" runat="server" DefaultButton="btnUpdate"> |
| ... |
| <asp:Button ID="btnTest" Text="Test" runat="server" CausesValidation="False" CommandName="InterimUpdate"></asp:Button> |
| </asp:Panel> |
| </FormTemplate> |
| </EditFormSettings> |
| protected void rg_ItemCommand(object source, Telerik.WebControls.GridCommandEventArgs e) |
| { |
| if (e.CommandName == "InterimUpdate") <== simple embeded command button see above |
| { |
| if (e.Item is GridEditFormItem && e.Item.IsInEditMode) <== Never gets past this on custom command |
| { |
| string s = ((RadComboBox)e.Item.FindControl("rcb1")).SelectedValue; |
| RadComboBox rcb = new RadComboBox(); |
| rcb = e.Item.FindControl("rcb2") as RadComboBox; |
| rcb.DataTextField = "Name"; |
| rcb.DataValueField = "ID"; |
| rcb.DataSource = getAllXXX(s); |
| rcb.DataBind(); |
| } |
| } |
| } |

protected void Rgrid_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e) { GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem; int PNameID = Convert.ToInt16(dataItem.GetDataKeyValue("PNameID")); try { Common ObjCommon = new Common(); DataSet ds = ObjCommon.DocumentsWithFields(PNameID); if (ds.Tables.Count > 0) { if (ds.Tables[0].Rows.Count > 0) { e.DetailTableView.Columns.Clear(); e.DetailTableView.DataSource= ds.Tables[0]; } } else { var PropertyDocs = (ObjCommon .DocumentsWithoutFields(PNameID)).ToList(); e.DetailTableView.DataSource = PropertyDocs; } } catch (Exception ex) { Response.Write(ex.Message); } }
above code return correct table structure but not binding to Gridtable view
<telerik:RadNumericTextBox ID="originalNumber" runat="server" Label="Number"
Type="Number" DataType="long" NumberFormat-DecimalDigits="0" Width="250px" >
<ClientEvents OnValueChanged="squareValue" />
<NumberFormat DecimalDigits="0"></NumberFormat>
</telerik:RadNumericTextBox>
<telerik:RadNumericTextBox ID="squaredNumber" runat="server" Label="number Squared"
Type="Number" DataType="long" NumberFormat-DecimalDigits="0" Width="250px">
<NumberFormat DecimalDigits="0"></NumberFormat>
</telerik:RadNumericTextBox><br />
<
script type="text/javascript">
function squareValue(sender, eventArgs) {
originalValue = parseInt(document.getElementById(
"originalNumber").value);
document.getElementById(
"squaredNumber").value = originalValue * originalValue;
}
</
script>
The value changes, but it never changes on screen.


Bullet list and chrome problem.
Screen shots proccess:
1.
http://i48.tinypic.com/zivms1.jpg
2.
http://i46.tinypic.com/9htavd.jpg
3.
http://i47.tinypic.com/2ezjsed.jpg
4.
http://i46.tinypic.com/a5lxf.jpg
How to prevent editor to add "font-size:0px" ?