body
{
font-family: Times New Roman !important;
font-size: 12pt !important;
background-image: url(policy_bg.jpg) !important;
background-repeat:repeat-y !important;
background-position:right !important
}
RadEditor1.CssFiles.Clear();
RadEditor1.CssFiles.Add(
"edit.css");
| <telerik:RadWindow runat="server" |
| Width="800px" Height="541px" VisibleStatusbar="false" |
| ID="winFileExplorer" Modal="true" Behaviors="Close" |
| Title="Select image"> |
| <ContentTemplate> |
| <div class="floatr" style="width:210px;"> |
| <fieldset> |
| <legend>Preview</legend> |
| <div class="c"><asp:Image ID="imgPreview" runat="server" style="margin:10px 0;max-width:180px;max-height:500px;" /></div> |
| </fieldset> |
| </div> |
| <telerik:RadFileExplorer ID="fileExplorer" runat="server" |
| Width="570" TreePaneWidth="150" |
| ExplorerMode="Default" VisibleControls="ContextMenus,Toolbar,Grid" DisplayUpFolderItem="true" |
| EnableOpenFile="true" EnableCreateNewFolder="true" |
| OnClientItemSelected="OnClientItemSelected" OnClientFileOpen="OnFileOpen"> |
| </telerik:RadFileExplorer> |
| </ContentTemplate> |
| </telerik:RadWindow> |

If you create a menu, you are given the ability to create separators which come across as class="rmSeparator" in the html, but if you link your menu to an xml datasource, you lose this ability... how do you add separators if you are linking to an xml datasource?
XML Example without separators below:
| <?xml version="1.0" encoding="utf-8" ?> |
| <Items Text=""> |
| <Item Text="Visitors" Url="" Level="Lvl1" > |
| <Item Text="Event Calendar" Url="#" Level="Lvl2" /> |
| <Item Text="City Road Map" Url="#" Level="Lvl2" /> |
| <Item Text="Contact Us" Url="#" Level="Lvl2" /> |
| <Item Text="Historic Preservation" Url="#" Level="Lvl2" /> |
| <Item Text="Interactive Maps" Url="#" Level="Lvl2" /> |
| <Item Text="Latest News" Url="#" Level="Lvl2" /> |
| <Item Text="Ocala Municipal Arts Commission" Url="#" Level="Lvl2" /> |
| <Item Text="Security & Hurricane Information" Url="#" Level="Lvl2" /> |
| </Item> ..... |
<
telerik:GridTemplateColumn HeaderText="Job No" DataField="JOB_NO">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "JOB_NO")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="cboJob" runat="server" Sort="Ascending" AppendDataBoundItems="true" EnableLoadOnDemand="true" Width="350px" Height="140px" DataValueField="JOB_NO" EmptyMessage="Select a Job" AutoPostBack="true" DataTextField="JOB_NO" MarkFirstMatch="true" AllowCustomText="false" DropDownWidth="300px"
OnItemDataBound="cboJob_ItemDataBound" HighlightTemplatedItems="true" >
<HeaderTemplate>
<table style="width:300px; text-align:left">
<tr>
<td style="width:100px;">Job No</td>
<td style="width:200px;">Part No</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width:300px; text-align:left">
<tr>
<td style="width:100px;"><%# DataBinder.Eval(Container.DataItem,"JOB_NO")%></td> <td style="width:300px;"><%# DataBinder.Eval(Container.DataItem,"JOBR_PART_NO")%></td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
//******In the C# code behind I have the following code in the ItemDataBound for the RadGrid:
if
(e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
GridEditFormItem editFormItem = (GridEditFormItem)e.Item;
TextBox txt = (TextBox)editFormItem.FindControl("CUST_ID");
GridEditableItem edititem = e.Item as GridEditableItem;
RadComboBox combobox = (RadComboBox)edititem.FindControl("cboJob");
DataTable dt = cData.getDataTable("SELECT DISTINCT JOB_NO, JOBR_PART_NO FROM JOB_REVISION WHERE CUST_ID = '" + txt.Text.ToString() + "' ORDER BY JOB_NO", "JOB_REVISION");
combobox.DataSource= dt;
combobox.DataTextField =
"JOB_NO";
combobox.DataValueField =
"JOB_NO";
combobox.DataBind();
combobox.SelectedValue =
DataBinder.Eval(e.Item.DataItem, "JOB_NO").ToString();
//*******I also have the following code for the combo:
protected void cboJob_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
{
e.Item.Text = ((D
ataRowView)e.Item.DataItem)["JOB_NO"].ToString();
e.Item.Value = ((
DataRowView)e.Item.DataItem)["JOB_NO"].ToString();
e.Item.DataBind();
}
In your Automatic Load On Demand demo page when user type text into combobox, only matching elements are listed AND letters that user typed are bolded on items. Is it possible to achieve that effect when not using Automatic Load On Demand but WCF load on demand?
I have more complex scenario with related combobox: I use second combo OnClientItemsRequesting event to add first combo's value to context and then WCF returns elements filtered by first combo value and typed text. It works great but it would be even better if I could apply bolding effect.
