<
telerik:RadODataDataSource
runat
=
"server"
ID
=
"RadODataDataSource1"
>
<
Transport
>
<
Read
Url
=
"http://sharepoint/_vti_bin/ListData.svc/"
DataType
=
"XML"
/>
</
Transport
>
<
Schema
>
<
telerik:DataModel
ModelID
=
"Steuerkennzeichen"
Set
=
"Steuerkennzeichen"
>
<
telerik:DataModelField
FieldName
=
"Titel"
/>
<
telerik:DataModelField
FieldName
=
"Display_Text"
/>
</
telerik:DataModel
>
</
Schema
>
</
telerik:RadODataDataSource
>
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
EnableLoadOnDemand
=
"true"
ODataDataSourceID
=
"RadODataDataSource1"
DataModelID
=
"Steuerkennzeichen"
DataTextField
=
"Display_Text"
DataValueField
=
"Titel"
ShowMoreResultsBox
=
"true"
ItemsPerRequest
=
"4"
>
</
telerik:RadComboBox
>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
standalone
=
"yes"
?>
<
feed
xml:base
=
"http://sharepoint/_vti_bin/ListData.svc/"
xmlns:d
=
"http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns
=
"http://www.w3.org/2005/Atom"
>
<
title
type
=
"text"
>Steuerkennzeichen</
title
>
<
updated
>2012-12-20T08:34:35Z</
updated
>
<
link
rel
=
"self"
title
=
"Steuerkennzeichen"
href
=
"Steuerkennzeichen"
/>
<
entry
m:etag
=
"W/"1""
>
<
title
type
=
"text"
>19%</
title
>
<
updated
>2012-11-07T16:45:48+01:00</
updated
>
<
author
>
<
name
/>
</
author
>
<
link
rel
=
"edit"
title
=
"SteuerkennzeichenItem"
href
=
"Steuerkennzeichen(1)"
/>
<
category
term
=
"Microsoft.SharePoint.DataService.SteuerkennzeichenItem"
scheme
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
/>
<
content
type
=
"application/xml"
>
<
m:properties
>
<
d:Steuerkennzeichen
>50</
d:Steuerkennzeichen
>
<
d:Display_Text
>50 / 19%</
d:Display_Text
>
</
m:properties
>
</
content
>
</
entry
>
<
entry
m:etag
=
"W/"1""
>
<
title
type
=
"text"
>7%</
title
>
<
updated
>2012-11-07T16:45:57+01:00</
updated
>
<
author
>
<
name
/>
</
author
>
<
link
rel
=
"edit"
title
=
"SteuerkennzeichenItem"
href
=
"Steuerkennzeichen(2)"
/>
<
category
term
=
"Microsoft.SharePoint.DataService.SteuerkennzeichenItem"
scheme
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
/>
<
content
type
=
"application/xml"
>
<
m:properties
>
<
d:Steuerkennzeichen
>51</
d:Steuerkennzeichen
>
<
d:Display_Text
>51 / 7%</
d:Display_Text
>
</
m:properties
>
</
content
>
</
entry
>
<
entry
m:etag
=
"W/"1""
>
<
title
type
=
"text"
>0</
title
>
<
updated
>2012-11-07T16:46:07+01:00</
updated
>
<
author
>
<
name
/>
</
author
>
<
link
rel
=
"edit"
title
=
"SteuerkennzeichenItem"
href
=
"Steuerkennzeichen(3)"
/>
<
category
term
=
"Microsoft.SharePoint.DataService.SteuerkennzeichenItem"
scheme
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
/>
<
content
type
=
"application/xml"
>
<
m:properties
>
<
d:Steuerkennzeichen
>0</
d:Steuerkennzeichen
>
<
d:Display_Text
>0 / 0</
d:Display_Text
>
</
m:properties
>
</
content
>
</
entry
>
</
feed
>
<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" ?