public override void ItemAdded(SPItemEventProperties properties){ SPListItem postItem = properties.ListItem;
string body = postItem["Body"]; //This returns all markup - we only want the user entered text from radeditor}<script type="text/javascript">
function IndexChanging(sender, eventArgs) {
</script>
<telerik:RadComboBox runat="server" AutoPostBack="true" ID="RadComboBox1" Height="190px" Width="420px"
MarkFirstMatch="true" EnableLoadOnDemand="true"
HighlightTemplatedItems="true" OnClientSelectedIndexChanging="IndexChanging"
OnItemDataBound="RadComboBox1_ItemDataBound"
Label="Grid-like multi-column:"
OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
<HeaderTemplate>
<ul>
<li class="col1">Contact Name</li>
<li class="col2">City</li>
<li class="col3">Title</li>
</ul>
</HeaderTemplate>
<ItemTemplate>
<ul>
<li class="col1">
<%
# DataBinder.Eval(Container.DataItem, "ContactName")%></li>
<li class="col2">
<%
# DataBinder.Eval(Container.DataItem, "City") %></li>
<li class="col3">
<%
# DataBinder.Eval(Container.DataItem, "ContactTitle") %></li>
</ul>
</ItemTemplate>
<FooterTemplate>
A total of
<asp:literal runat="server" id="RadComboItemsCount" />
items
</FooterTemplate>
</telerik:RadComboBox
thanks
J-Francois
Dim rs As SqlDataReader = SqlHelper.ExecuteReader(GetConnectionString("mv4Conn", "mvdata", ConfigurationManager.AppSettings("CircViewDB")), Data.CommandType.Text, sbFilter.ToString) Me.RadGrid1.DataSource = rsUsing reader As SqlDataReader = getReader() ddlCustomer.DataSource = readerEnd Using<telerik:GridTemplateColumn Datafield="customer_cd" HeaderStyle-Width="20%" HeaderText="Customer" ItemStyle-HorizontalAlign="Center" SortExpression="end_dt" ItemStyle-VerticalAlign="Middle" UniqueName="customer_cd"> <ItemTemplate> <table> <colgroup> <col /> </colgroup> <tr> <td> <asp:HyperLink ID="hlCustomerCd" runat="server" ImageUrl='<%# string.Format("icons/{0}.gif",Eval("customer_cd")) %>' NavigateUrl='<%# string.Format("customer.aspx?org_cd={0}&cust_id={1}", org_cd, Eval("customer_id")) %>' Text='<%# Eval("customer_nm").ToString() %>' /> <br /> <asp:Label ID="lblCustomerCd" runat="server" Text='<%# Eval("customer_nm").ToString() %>' Font-Size="X-Small" /> <br /> <asp:HyperLink ID="hlAgreementNo" runat="server" NavigateUrl=' <%# string.Format("agreement.aspx?org_cd={0}&cust_id={1}&agmt_id={2}", org_cd, Eval("customer_id"), Eval("agreement_id"))%>' Text='<%# "Agreement:" + Eval("customer_purchase_order_no") %>' ForeColor="#2dabc1" /> </td> </tr> </table> </ItemTemplate></telerik:GridTemplateColumn>protected void rgSite_PreRender(object sender, EventArgs e){ //The Row Index is the Row above the bottom row, walk up the Grid for (int rowIndex = rgSite.Items.Count - 2; rowIndex >= 0; rowIndex += -1) { //The Current Row is the row index GridDataItem row = rgSite.Items[rowIndex]; //The Previous Row is one below it GridDataItem previousRow = rgSite.Items[rowIndex + 1]; //Grab the ItemTemplate Text values from the Hyperlink of the current and previous row and compare them. if ((row["customer_cd"].FindControl("hlCustomerCd") as HyperLink).Text == (previousRow["customer_cd"].FindControl("hlCustomerCd") as HyperLink).Text) { //The Top Row Absorbs the previous Rowspan row["customer_cd"].RowSpan = previousRow["customer_cd"].RowSpan < 2 ? 2 : previousRow["customer_cd"].RowSpan + 1; //The previous row then goes away. previousRow["customer_cd"].Visible = false; } }}