| <tr> |
| <td class="Label">Body</td> |
| <td><telerik:RadTextBox ID="txtBody" Height="200" Width="500px" runat="server" Skin="Office2007" CssClass="InputBox" TextMode="MultiLine" /></td> |
| </tr> |
| <tr> |
| <td class="Label">Body</td> |
| <td> |
| <telerik:RadEditor ID="RadEdit01" runat="server" Width="500px" Height="300" Skin="Office2007" AutoResizeHeight="true"> |
| <Tools> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="Bold" /> |
| <telerik:EditorTool Name="Italic" /> |
| <telerik:EditorTool Name="Underline" /> |
| <telerik:EditorTool Name="Cut" /> |
| <telerik:EditorTool Name="Copy" /> |
| <telerik:EditorTool Name="Paste" /> |
| <telerik:EditorTool Name="FontName" /> |
| <telerik:EditorTool Name="RealFontSize" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="InsertTable" /> |
| <telerik:EditorTool Name="InsertImage" /> |
| <telerik:EditorTool Name="LinkManager" /> |
| <telerik:EditorTool Name="Unlink" /> |
| <telerik:EditorTool Name="InsertOrderedList" /> |
| <telerik:EditorTool Name="InsertUnorderedList" /> |
| </telerik:EditorToolGroup> |
| </Tools> |
| </telerik:RadEditor> |
| </td> |
| </tr> |

<telerik:RadComboBox ID="RadComboBoxDispenseQ" runat="server" Height="170px" Width="100%"
EnableLoadOnDemand="true" Style="margin: 0 auto 0 0px; display: block !important;"
EmptyMessage="Select Dispenseq" AllowCustomText="false" ToolTip="Select Dispense"
ExpandAnimation-Type="InCubic" Skin="Hay" ZIndex="10000000" LoadingMessage="LOADING"
BackColor="#EDFBE1" DropDownWidth="200"
>
</telerik:RadComboBox>
I am binding it in pageload
if (!IsPostBack)
{
FillDispenseQ();
}
private void FillDispenseQ()
{
string selectDispenseQ = // my query
DataTable dtDispenseQ = SqlHelper.ExecuteDataset(new Connection().GetCon, CommandType.Text, selectDispenseQ).Tables[0];
RadComboBoxDispenseQ.DataSource = dtDispenseQ;
RadComboBoxDispenseQ.DataValueField=
"SS_CODE";
RadComboBoxDispenseQ.DataTextField =
"DISPENSE";
RadComboBoxDispenseQ.DataBind();
}
It always shows first item intead of emty message on page load.How can i set the empty message?
Plz help
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResizeTest.aspx.cs" Inherits="CMS.Views.Tests.ResizeTest" %> |
| <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| <style type="text/css"> |
| html, body {margin:0px; padding:0px;} |
| .Header{ background:#cc0000;} |
| </style> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="smDefault" runat="server" /> |
| <telerik:RadSplitter ID="rs1stLevel" Runat="server" Width="100%" Height="100%" Orientation="Horizontal" |
| BorderStyle="None" PanesBorderSize="0"> |
| <telerik:RadPane ID="rpHeader" runat="server" Height="50" Scrolling="None" CssClass="Header"> |
| header pane |
| </telerik:RadPane> |
| <telerik:RadPane ID="rpMain" runat="server" Scrolling="None"> |
| <telerik:RadSplitter ID="rs2ndLevel" runat="server" Width="100%" Height="100%" Orientation="Vertical" |
| BorderStyle="None" PanesBorderSize="0"> |
| <telerik:RadPane ID="rpNavigate" runat="server" Width="200" Scrolling="Both"> |
| navigate pane |
| </telerik:RadPane> |
| <telerik:RadSplitBar ID="rsbNavigate_Content" runat="server" CollapseMode="Forward" /> |
| <telerik:RadPane ID="rpContent" runat="server" Scrolling="None"> |
| <telerik:RadSplitter ID="rs3rdLevel" runat="server" Width="100%" Height="100%" |
| Orientation="Horizontal" BorderStyle="None" PanesBorderSize="0"> |
| <telerik:RadPane ID="rpSummary" runat="server" Height="100" Scrolling="Both"> |
| summary pane |
| </telerik:RadPane> |
| <telerik:RadSplitBar ID="rsbSummary_Details" runat="server" CollapseMode="Forward" /> |
| <telerik:RadPane ID="rpDetails" runat="server" Width="200" Scrolling="Both"> |
| details pane |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </form> |
| </body> |
| </html> |
Hi All,
Hoping that someone can help:
I have a RadListView and within the RadListView in the item template, I have a RadRating component. This I have bound to a Linq result set and this all works perfectly. To prevent the entire page posting back when rating each RadRating control, I put the list view in an RadXmlHttpPanel and performed the database submission in the RadXmlHttpPanel_ServiceRequest event.
This all works great but then it returns, the error:
XmlHttpPanel Callback Loading error:
Exception=Script control 'ResponseRadRating' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
As mentioned in other posts, I have tried setting the EnableClientScriptEvaluation to "true" on the RadXmlHttpPanel and RegisterWithScriptManager to "false" on the RadRating controls that are in the Item template of the RadListView control. Once I have set these up, the RadXmlHttpPanel_ServiceRequest event no longer fires.
Does you have any suggestions?